Represents a value which can be a Register or a constant.
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
class RegOrConstant;
This is useful in situations where an instruction may have an interesting register operand or interesting constant operand. For a concrete example,
| Name | Description |
|---|---|
RegOrConstant [constructor] | Constructors |
getCst | Return the held constant; asserts if this holds a register. |
getReg | Return the held register; asserts if this holds a constant. |
isCst | Return true if this holds a constant. |
isReg | Return true if this holds a register. |
| Name | Description |
|---|---|
getVectorSplat | Examples: |
getVectorSplat.