[PATCH] D75044: [AArch64] __builtin_extract_return_addr for PAuth.

Momchil Velikov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 7 08:07:16 PDT 2020


chill added a comment.

Needs a test in `clang/test` that `__builtin_extract_return_address` is translated to `llvm.extractreturnaddress`.

What if LLVM IR contains a call to `llvm.extractreturnaddress`, but the target is not AArch64?



================
Comment at: llvm/include/llvm/CodeGen/ISDOpcodes.h:74
     /// the parent's frame or return address, and so on.
-    FRAMEADDR, RETURNADDR, ADDROFRETURNADDR, SPONENTRY,
+    FRAMEADDR, RETURNADDR, ADDROFRETURNADDR, EXTRACTRETURNADDR, SPONENTRY,
 
----------------
Needs a comment about `EXTRACTRETURNADDR`. And also a slightly different grouping, so the non-commented/undocumented things stand out.


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

https://reviews.llvm.org/D75044





More information about the cfe-commits mailing list