[llvm] [CodeGen] Add generic INIT_UNDEF pseudo (PR #106744)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 30 11:37:12 PDT 2024


================
@@ -1254,6 +1254,13 @@ def IMPLICIT_DEF : StandardPseudoInstruction {
   let isAsCheapAsAMove = true;
   let isMeta = true;
 }
+def INIT_UNDEF : StandardPseudoInstruction {
+  let OutOperandList = (outs unknown:$dst);
+  let InOperandList = (ins);
+  let AsmString = "";
+  let hasSideEffects = false;
+  let Size = 0;
----------------
nikic wrote:

I'm also wondering whether we could directly reuse IMPLICIT_DEF, as it's basically the same thing. We normally remove IMPLICIT_DEF and replace it with undef flags, but it would probably be fine to reintroduce it afterwards?

https://github.com/llvm/llvm-project/pull/106744


More information about the llvm-commits mailing list