[all-commits] [llvm/llvm-project] 5ddf49: [AttrBuilder] Make handling of int attribtues more...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Oct 3 14:42:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ddf49b9066811ae8d71beae62015b9e6c81ff26
      https://github.com/llvm/llvm-project/commit/5ddf49b9066811ae8d71beae62015b9e6c81ff26
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-10-03 (Sun, 03 Oct 2021)

  Changed paths:
    M llvm/include/llvm/IR/Attributes.h
    M llvm/lib/IR/Attributes.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list