diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-07-08 22:40:56 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-07-09 17:48:09 +0200 |
commit | 42cc7f3c524a0ede6b903486c588003fe12d9293 (patch) | |
tree | 8bb4ac9e631a19392105aed0500d3921b556bdd2 /llvm/lib/IR/Module.cpp | |
parent | 97c675d3d43fe02a0ff0a8350d79344c845758af (diff) | |
download | llvm-42cc7f3c524a0ede6b903486c588003fe12d9293.zip llvm-42cc7f3c524a0ede6b903486c588003fe12d9293.tar.gz llvm-42cc7f3c524a0ede6b903486c588003fe12d9293.tar.bz2 |
[AttrBuilder] Make handling of type attributes more generic (NFCI)
While working on the elementtype attribute, I felt that the type
attribute handling in AttrBuilder is overly repetitive. This patch
converts the separate Type* members into an std::array<Type*>, so
that all type attribute kinds can be handled generically.
There's more room for improvement here (especially when it comes to
converting the AttrBuilder to an Attribute), but this seems like a
good starting point.
Differential Revision: https://reviews.llvm.org/D105658
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions