[PATCH] D63845: [WIP] Create a clang attribute that lets users specify LLVM attributes

William Moses via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 26 14:34:30 PDT 2019


wsmoses created this revision.
wsmoses added a reviewer: jdoerfert.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This (work in progress) diff adds three new attributes to clang (__attribute__((LLVMFN(string))), __attribute__((LLVMARG(paramidx, string))), __attribute__((LLVMRET(paramidx, string))) ) for passing attributes down to LLVM.

This is useful for allowing users, tools, or test cases to specify LLVM attributes that may not have a representation in clang.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D63845

Files:
  clang/include/clang/Basic/Attr.td
  clang/lib/CodeGen/CodeGenFunction.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/utils/TableGen/ClangAttrEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63845.206748.patch
Type: text/x-patch
Size: 6865 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190626/79e25c72/attachment.bin>


More information about the cfe-commits mailing list