llvm::SDPatternMatch::sd_context_match

Match SDNode N (result 0) against pattern P under context Ctx.

Synopsis

Declared in <llvm/CodeGen/SDPatternMatch.h>

template<
    typename Pattern,
    typename MatchContext>
[[nodiscard]]
bool
sd_context_match(
    SDNode* N,
    MatchContext const& Ctx,
    Pattern&& P);

Return Value

True if the pattern matches.

NOTE

The return value should not be discarded.

Parameters

NameDescription
NNode to match as SDValue(N, 0).
CtxMatch context controlling opcode and operand interpretation.
PPattern object providing match().