[llvm] [SystemZ] Add check for INIT_UNDEF in getInstSizeInBytes (PR #134661)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 7 07:58:57 PDT 2025
================
@@ -1409,6 +1409,7 @@ class MachineInstr
}
bool isKill() const { return getOpcode() == TargetOpcode::KILL; }
bool isImplicitDef() const { return getOpcode()==TargetOpcode::IMPLICIT_DEF; }
+ bool isInitUndef() const { return getOpcode() == TargetOpcode::INIT_UNDEF; }
----------------
nikic wrote:
I don't think this is common enough to warrant a dedicated accessor.
https://github.com/llvm/llvm-project/pull/134661
More information about the llvm-commits
mailing list