[AttrBuilder] Make handling of int attribtues more generifc (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 3 Oct 2021 20:23:05 +0000 (22:23 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 3 Oct 2021 21:42:28 +0000 (23:42 +0200)
commit5ddf49b9066811ae8d71beae62015b9e6c81ff26
tree2a2fc89eb75c38bfc8faca487eed1f9db2e00fe1
parentdec2257f354d39dbd8232e6bd1a417d91c4f14a2
[AttrBuilder] Make handling of int attribtues more generifc (NFC)

This is basically the same change as 42cc7f3c524a0ede6b903486c588003fe12d9293
but for integer attributes. Rather than treating each attribute
individually, handle them all the same way. The only thing that
needs to be done per attribute is specify how get/add convert
from/to the raw representation.
llvm/include/llvm/IR/Attributes.h
llvm/lib/IR/Attributes.cpp