[llvm] [Xtensa] Lower GlobalAddress/BlockAddress/JumpTable (PR #95256)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 08:25:26 PDT 2024


================
@@ -42,6 +43,17 @@ getModifierVariantKind(XtensaCP::XtensaCPModifier Modifier) {
 }
 
 void XtensaAsmPrinter::emitInstruction(const MachineInstr *MI) {
+  unsigned Opc = MI->getOpcode();
+
+  switch (Opc) {
+  case Xtensa::BR_JT: {
+    EmitToStreamer(
+        *OutStreamer,
+        MCInstBuilder(Xtensa::JX).addReg(MI->getOperand(0).getReg()));
+    return;
+  }
----------------
arsenm wrote:

Needs a default?

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


More information about the llvm-commits mailing list