class RegOrConstant
Declaration
class RegOrConstant { /* full declaration omitted */ };
Description
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,
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:351
Member Variables
- private int64_t Cst
- private llvm::Register Reg
- private bool IsReg
Method Overview
- public RegOrConstant(llvm::Register Reg)
- public RegOrConstant(int64_t Cst)
- public int64_t getCst() const
- public llvm::Register getReg() const
- public bool isCst() const
- public bool isReg() const
Methods
¶RegOrConstant(llvm::Register Reg)
RegOrConstant(llvm::Register Reg)
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:357
Parameters
- llvm::Register Reg
¶RegOrConstant(int64_t Cst)
RegOrConstant(int64_t Cst)
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:358
Parameters
- int64_t Cst
¶int64_t getCst() const
int64_t getCst() const
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:365
¶llvm::Register getReg() const
llvm::Register getReg() const
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:361
¶bool isCst() const
bool isCst() const
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:360
¶bool isReg() const
bool isReg() const
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:359