Matcher that requires a register to have exactly one use.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/MIPatternMatch.h>

template<typename SubPatternT>
struct OneUse_match;

Description

TODO: Extend for N use.

Member Functions

Name

Description

OneUse_match [constructor]

Construct a one‐use matcher around SP.

match

Match Reg if it has one use and SubPat matches.

Data Members

Name

Description

SubPat

Nested sub‐pattern applied after the use‐count check.

Non-Member Functions

Name

Description

m_OneUse

Matches SP only when the register has exactly one use.

Created with MrDocs