LLVM: llvm::RegOrConstant Class Reference (original) (raw)
Represents a value which can be a Register or a constant. More...
#include "[llvm/CodeGen/GlobalISel/Utils.h](CodeGen%5F2GlobalISel%5F2Utils%5F8h%5Fsource.html)"
| 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,
See also
Definition at line 404 of file Utils.h.
| llvm::RegOrConstant::RegOrConstant ( Register Reg) | inlineexplicit |
|---|
◆ RegOrConstant() [2/2]
| llvm::RegOrConstant::RegOrConstant ( int64_t Cst) | inlineexplicit |
|---|
◆ getCst()
| int64_t llvm::RegOrConstant::getCst ( ) const | inline |
|---|
◆ getReg()
| Register llvm::RegOrConstant::getReg ( ) const | inline |
|---|
◆ isCst()
| bool llvm::RegOrConstant::isCst ( ) const | inline |
|---|
◆ isReg()
| bool llvm::RegOrConstant::isReg ( ) const | inline |
|---|
The documentation for this class was generated from the following file:
- include/llvm/CodeGen/GlobalISel/Utils.h