[llvm] [RISCV][GlobalISel] Select G_GLOBAL_VALUE for medlow code model (PR #68380)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 15 10:11:57 PDT 2023


================
@@ -2032,6 +2032,28 @@ def : Pat<(binop_allwusers<add> GPR:$rs1, (AddiPair:$rs2)),
                  (AddiPairImmSmall AddiPair:$rs2))>;
 }
 
+//===----------------------------------------------------------------------===//
+// GlobalISel generic instruction definitions
+/* /===----------------------------------------------------------------------===//
+
+class RISCVGenericInstruction : GenericInstruction {
+  let Namespace = "RISCV";
+}
+
+def G_ADD_LO : RISCVGenericInstruction {
----------------
michaelmaitland wrote:

> I abandoned using these generic instructions

These look to be part of the overall diff still. Do you plan on removing the changes in this file if you are not going to use them?

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


More information about the llvm-commits mailing list