ΒΆbool isConstantOrConstantVector(
const llvm::MachineInstr& MI,
const llvm::MachineRegisterInfo& MRI,
bool AllowFP = true,
bool AllowOpaqueConstants = true)
bool isConstantOrConstantVector(
const llvm::MachineInstr& MI,
const llvm::MachineRegisterInfo& MRI,
bool AllowFP = true,
bool AllowOpaqueConstants = true)
Description
Return true if the specified instruction is known to be a constant, or a vector of constants. If \p AllowFP is true, this will consider G_FCONSTANT in addition to G_CONSTANT. If \p AllowOpaqueConstants is true, constant-like instructions such as G_GLOBAL_VALUE will also be considered.
Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:429
Parameters
- const llvm::MachineInstr& MI
- const llvm::MachineRegisterInfo& MRI
- bool AllowFP = true
- bool AllowOpaqueConstants = true