isConstantOrConstantVector overloads
Synopses
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
Determines if MI defines a constant integer or a build vector of constant integers. Treats undef values as constants.
bool
isConstantOrConstantVector(
MachineInstr& MI,
MachineRegisterInfo const& MRI);
Return true if the specified instruction is known to be a constant, or a vector of constants.
bool
isConstantOrConstantVector(
MachineInstr const& MI,
MachineRegisterInfo const& MRI,
bool AllowFP = true,
bool AllowOpaqueConstants = true);
Return Value
-
True if
MIdefines a constant or build vector of constants. -
True if
MIis a constant or vector of constants.
Parameters
Name |
Description |
MI |
Instruction to inspect. |
MRI |
Register information for the function. |
AllowFP |
Whether floating‐point constants are accepted. |
AllowOpaqueConstants |
Whether opaque constants like globals count. |
Created with MrDocs