[llvm] [CodeGen] [ARM] Make RISC-V Init Undef Pass Target Independent and add support for the ARM Architecture. (PR #77770)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 30 06:07:29 PST 2024


================
@@ -2223,6 +2223,25 @@ class TargetInstrInfo : public MCInstrInfo {
     llvm_unreachable("unknown number of operands necessary");
   }
 
+  virtual unsigned getUndefInitOpcode(unsigned RegClassID) const {
+    (void)RegClassID;
+
+    llvm_unreachable("Unexpected register class.");
+  }
+
+  virtual const TargetRegisterClass *
----------------
ostannard wrote:

`getVRLargestSuperClass`, `isVectorRegClass` and `getNoRegisterValue` are properties of registers or register classes, not instructions, so they should be in `TargetRegisterInfo`.

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


More information about the llvm-commits mailing list