Return true if the value is a constant 0 integer or a null splat.
Synopsis
Declared in <llvm/CodeGen/GlobalISel/Utils.h>
bool
isNullOrNullSplat(
MachineInstr const& MI,
MachineRegisterInfo const& MRI,
bool AllowUndefs = false);
Description
Accepts a splatted vector of a constant 0 integer (with no undefs if AllowUndefs is false). This will handle G_BUILD_VECTOR and G_BUILD_VECTOR_TRUNC as truncation is not an issue for null values.
Return Value
True if the value is a null constant or null splat.
Parameters
Name |
Description |
MI |
Instruction defining the value to test. |
MRI |
Register information for the function. |
AllowUndefs |
Whether undef elements are permitted in a splat. |
Created with MrDocs