llvm::SDPatternMatch::sd_match

Match SDValue N against pattern P using a BasicMatchContext for DAG.

Synopsis

Declared in <llvm/CodeGen/SDPatternMatch.h>

template<typename Pattern>
[[nodiscard]]
bool
sd_match(
    SDValue N,
    SelectionDAG const* DAG,
    Pattern&& P);

Return Value

True if the pattern matches.

NOTE

The return value should not be discarded.

Parameters

NameDescription
NValue to match.
DAGSelectionDAG used to build the match context, or null.
PPattern object providing match().