[PATCH] D153774: [ARM] Generate out-of-line jump tables for XO without 32-bit branch

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 26 11:12:32 PDT 2023


efriedma added a comment.

I'd prefer if the Thumb1 and Thumb2 codepaths work as close to the same way as possible; this looks significantly different.  (Thumb2 execute-only has basically the same issues as Thumb1 execute-only, as far as I can tell; we only get away with "loading" from the text segment if we can form tbb/tbh.)

(Do we care about execute-only PIC?)



================
Comment at: llvm/lib/Target/ARM/ARMISelLowering.cpp:3498
+  // execute-only it must be placed out-of-line.
+  if (Subtarget->genExecuteOnly() && !Subtarget->hasV8MBaselineOps())
+    return MachineJumpTableInfo::EK_BlockAddress;
----------------
What relevant instructions does v8m.base have?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153774/new/

https://reviews.llvm.org/D153774



More information about the llvm-commits mailing list