llvm::SDPatternMatch::sd_match

Match SDNode N against pattern P without a SelectionDAG.

Synopsis

Declared in <llvm/CodeGen/SDPatternMatch.h>

template<typename Pattern>
[[nodiscard]]
bool
sd_match(
    SDNode* N,
    Pattern&& P);

Return Value

True if the pattern matches.

NOTE

The return value should not be discarded.

Parameters

NameDescription
NNode to match.
PPattern object providing match().