[all-commits] [llvm/llvm-project] 6e30cb: [Attributes] Add AttributeList ctor from Attribute...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Dec 20 02:37:18 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e30cb7673df293fd294acef7eadca8050b5a71e
      https://github.com/llvm/llvm-project/commit/6e30cb7673df293fd294acef7eadca8050b5a71e
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2021-12-20 (Mon, 20 Dec 2021)

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

  Log Message:
  -----------
  [Attributes] Add AttributeList ctor from AttributeSet (NFC)

It was already possible to create an AttributeList from an Index
and an AttributeSet. However, this would actually end up using
the implicit constructor on AttrBuilder, thus doing an unnecessary
conversion from AttributeSet to AttrBuilder to AttributeSet.
Instead we can accept the AttributeSet directly, as that is what
we need anyway.




More information about the All-commits mailing list