[PATCH] D65656: AArch64: support @llvm.{return,frame}address in GlobalISel

Tim Northover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 5 07:21:26 PDT 2019


t.p.northover marked an inline comment as done.
t.p.northover added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp:4025
+  case Intrinsic::frameaddress:
+  case Intrinsic::returnaddress: {
+    MachineFunction &MF = *I.getParent()->getParent();
----------------
aemerson wrote:
> arsenm wrote:
> > Should backends be directly consuming intrinsics like this? I would expect these to be lowered earlier, and select to never deal with a generic intrinsic
> What else could these be lowered to?
You could probably just about expand everything in terms of `@llvm.frameaddress(i32 0)`, but it would be pretty target-specific and not terribly efficient for `@llvm.returnaddress(i32 0)`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D65656





More information about the llvm-commits mailing list