[AttrBuilder] Add string attribute getter (NFC)
authorNikita Popov <npopov@redhat.com>
Tue, 18 Jan 2022 11:12:22 +0000 (12:12 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 18 Jan 2022 11:20:30 +0000 (12:20 +0100)
commit541322540ea0e9e33dbe84db4a28ad4872a6a4cb
tree05fc2982f0efffb504c23c56d73215d9739eb786
parent1b09d0c42b42be219dd0984e0714d68b4a36cd3e
[AttrBuilder] Add string attribute getter (NFC)

This avoids the need to scan through td_attrs() in AutoUpgrade,
decoupling it from AttrBuilder implementation details.
llvm/include/llvm/IR/Attributes.h
llvm/lib/IR/Attributes.cpp
llvm/lib/IR/AutoUpgrade.cpp