[IR] Add AttributeSet to hide AttributeSetNode* again, NFC
authorReid Kleckner <rnk@google.com>
Wed, 12 Apr 2017 00:38:00 +0000 (00:38 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 12 Apr 2017 00:38:00 +0000 (00:38 +0000)
commitc2cb5600450b8c4e5fdd915bd8c848319c5e57e1
tree621b8f69c41b1b0aead20855cdede8ddd54eae70
parentbdbdd229375f1b7c112bb5ecef8aeb603ad8d07f
[IR] Add AttributeSet to hide AttributeSetNode* again, NFC

Summary:
For now, it just wraps AttributeSetNode*. Eventually, it will hold
AvailableAttrs as an inline bitset, and adding and removing enum
attributes will be super cheap.

This sinks AttributeSetNode back down to lib/IR/AttributeImpl.h.

Reviewers: pete, chandlerc

Subscribers: llvm-commits, jfb

Differential Revision: https://reviews.llvm.org/D31940

llvm-svn: 300014
14 files changed:
clang/lib/CodeGen/CodeGenModule.cpp
llvm/include/llvm/IR/AttributeSetNode.h [deleted file]
llvm/include/llvm/IR/Attributes.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/AsmParser/LLParser.h
llvm/lib/IR/AsmWriter.cpp
llvm/lib/IR/AttributeImpl.h
llvm/lib/IR/Attributes.cpp
llvm/lib/IR/Core.cpp
llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp
llvm/lib/Transforms/IPO/MergeFunctions.cpp
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/lib/Transforms/Utils/CloneFunction.cpp