[PATCH] D98295: [Clang] Add addrsig attribute to mark global functions/variables as address significant.

Zequan Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 9 14:44:49 PST 2021


zequanwu created this revision.
zequanwu added reviewers: pcc, aaron.ballman, rnk, rsmith.
Herald added subscribers: dexonsmith, jdoerfert, hiraditya.
zequanwu requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

Functions or variables with this attribute will not have local_unnamed_addr/unnamed_addr in IR. So, they will show up in address-significant table.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98295

Files:
  clang/include/clang/Basic/Attr.td
  clang/include/clang/Basic/AttrDocs.td
  clang/lib/CodeGen/CodeGenModule.cpp
  clang/test/CodeGenCXX/attr-addrsig.cpp
  clang/test/Misc/pragma-attribute-supported-attributes-list.test
  clang/test/Sema/attr-addrsig.c
  llvm/include/llvm/IR/GlobalValue.h
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/lib/IR/AsmWriter.cpp
  llvm/lib/IR/Core.cpp
  llvm/lib/Transforms/IPO/GlobalOpt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98295.329472.patch
Type: text/x-patch
Size: 9014 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210309/1b81686b/attachment.bin>


More information about the llvm-commits mailing list