diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2021-03-06 05:24:55 +0000 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2021-03-09 19:43:45 +0000 |
commit | 8205c1a90a4e0c8d4578eb83fcdf7baa9f276ac6 (patch) | |
tree | f278cba1ef8129c020ceb2601d958dda2b8b9643 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 1f55fa0b99e0755c96bfd5cd0cdbe9cbc26fe2db (diff) | |
download | llvm-8205c1a90a4e0c8d4578eb83fcdf7baa9f276ac6.zip llvm-8205c1a90a4e0c8d4578eb83fcdf7baa9f276ac6.tar.gz llvm-8205c1a90a4e0c8d4578eb83fcdf7baa9f276ac6.tar.bz2 |
Rework LLVM Dialect LoopOptions attribute
Instead of storing an array of LoopOpt attributes, which were just
wrapping std::pair<enum, int> anyway, we can have an attribute storing
a sorted ArrayRef<std::pair<enum, int>> as a single unit. This improves
here the textual format and the general API. Note that we're limiting
the options to fit into an int64_t by design, but this isn't a new
constraint.
Building the LoopOptions attribute is likely worth a specific builder
for efficient reason, that'll be the subject of a future patch.
Differential Revision: https://reviews.llvm.org/D98105
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions