LLVM 20.0.0git
|
Represents a value which can be a Register or a constant. More...
#include "llvm/CodeGen/GlobalISel/Utils.h"
Public Member Functions | |
RegOrConstant (Register Reg) | |
RegOrConstant (int64_t Cst) | |
bool | isReg () const |
bool | isCst () const |
Register | getReg () const |
int64_t | getCst () const |
Represents a value which can be a Register or a constant.
This is useful in situations where an instruction may have an interesting register operand or interesting constant operand. For a concrete example,
|
inlineexplicit |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |