Try to match Reg as an integer constant of type ConstT.
Synopsis
Declared in <llvm/CodeGen/GlobalISel/MIPatternMatch.h>
template<typename ConstT>
std::optional<ConstT>
matchConstant(
Register Reg,
MachineRegisterInfo const& MRI);
Specializations
Name |
Description |
Match |
|
Match |
Return Value
The constant value, or nullopt if matching fails.
Parameters
Name |
Description |
Reg |
Register that may hold an integer constant. |
MRI |
Register info used to inspect constants. |
Created with MrDocs