[PATCH] D71129: [ARM][CMSE] Implement CMSE attributes

Momchil Velikov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 2 02:08:46 PDT 2020


chill marked 4 inline comments as done.
chill added inline comments.


================
Comment at: clang/lib/CodeGen/CGCall.cpp:1882
+  if (FI.isCmseNSCall())
+    FuncAttrs.addAttribute("cmse_nonsecure_call");
+
----------------
snidertm wrote:
> Just curious … Does the LLVM backend have a way to extract a StringRef attribute from a CallInst? I know that you can do that with hasFnAttribute(), but I don't see anything for CallInst objects
    CallInst *CI = ... ;
   ... = CI->getAttributes().hasFnAttribute("cmse_nonsecure_call"))


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71129





More information about the cfe-commits mailing list