llvm::PatternMatch::m_Br

m_Br overloads

Synopses

Declared in <llvm/IR/PatternMatch.h>

Matches a conditional branch, binding true and false successors.

template<typename Cond_t>
brc_match<Cond_t, match_bind<BasicBlock>, match_bind<BasicBlock>>
m_Br(
    Cond_t const& C,
    BasicBlock*& T,
    BasicBlock*& F);
» more...

Matches a conditional branch with custom successor matchers.

template<
    typename Cond_t,
    typename TrueBlock_t,
    typename FalseBlock_t>
brc_match<Cond_t, TrueBlock_t, FalseBlock_t>
m_Br(
    Cond_t const& C,
    TrueBlock_t const& T,
    FalseBlock_t const& F);
» more...

Return Value

  • A matcher for a conditional branch, binding true and false successors.
  • A matcher for a conditional branch with custom successor matchers.

Parameters

NameDescription
CCondition matcher.
TTrue successor to capture.
FFalse successor to capture.