[Attributes] Make type attribute handling more generic (NFCI)
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 10 Jul 2021 16:36:00 +0000 (18:36 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 12 Jul 2021 18:49:38 +0000 (20:49 +0200)
commit5d1464cbfe907ba2e75fb97386164c1d30151f95
tree85768b9a608a2f5f632126d30a61d793ade0309f
parent6ebbf755b61539788919163853446e73fcff74c2
[Attributes] Make type attribute handling more generic (NFCI)

Followup to D105658 to make AttrBuilder automatically work with
new type attributes. TableGen is tweaked to emit First/LastTypeAttr
markers, based on which we can handle type attributes
programmatically.

Differential Revision: https://reviews.llvm.org/D105763
llvm/include/llvm/IR/Attributes.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/IR/Attributes.cpp
llvm/utils/TableGen/Attributes.cpp