[llvm] [RISCV][GISel] Instruction selection for G_JUMP_TABLE and G_BRJT. (PR #71987)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 10 13:41:30 PST 2023


================
@@ -405,6 +410,49 @@ bool RISCVInstructionSelector::select(MachineInstr &MI) {
     MI.eraseFromParent();
     return constrainSelectedInstRegOperands(*Bcc, TII, TRI, RBI);
   }
+  case TargetOpcode::G_BRJT: {
+    unsigned EntrySize =
----------------
topperc wrote:

In the long term, it probably makes sense to move this to a lowering action on the legalizer.

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


More information about the llvm-commits mailing list