[llvm] [RISCV][GISEL] Legalize G_VAARG through expansion. (PR #73065)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 21:05:37 PST 2023


================
@@ -7868,6 +7870,63 @@ LegalizerHelper::lowerVectorReduction(MachineInstr &MI) {
   return UnableToLegalize;
 }
 
+static Type *getTypeForLLT(LLT Ty, LLVMContext &C);
+
+LegalizerHelper::LegalizeResult LegalizerHelper::lowerVAArg(MachineInstr &MI) {
+  Observer.changingInstr(MI);
----------------
arsenm wrote:

You don't change the instruction, you create new ones and erase the original 

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


More information about the llvm-commits mailing list