[all-commits] [llvm/llvm-project] f80ae5: [NFC] Cleanup calls to AttributeList::getAttribute...

aeubanks via All-commits all-commits at lists.llvm.org
Fri Aug 13 16:27:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f80ae580686b99b69224c38ec4db6c982c814fe3
      https://github.com/llvm/llvm-project/commit/f80ae580686b99b69224c38ec4db6c982c814fe3
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-08-13 (Fri, 13 Aug 2021)

  Changed paths:
    M llvm/include/llvm/IR/Attributes.h
    M llvm/include/llvm/IR/Function.h
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/IR/Verifier.cpp
    M llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

  Log Message:
  -----------
  [NFC] Cleanup calls to AttributeList::getAttribute(FunctionIndex)

getAttribute() is confusing, use a clearer method.


  Commit: dc41c558dd907a676fb390d3a05a93bda960e3c0
      https://github.com/llvm/llvm-project/commit/dc41c558dd907a676fb390d3a05a93bda960e3c0
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-08-13 (Fri, 13 Aug 2021)

  Changed paths:
    M llvm/include/llvm/IR/Attributes.h
    M llvm/include/llvm/IR/Function.h
    M llvm/include/llvm/IR/InstrTypes.h
    M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

  Log Message:
  -----------
  [NFC] Make AttributeList::hasAttribute(AttributeList::ReturnIndex) its own method

AttributeList::hasAttribute() is confusing. In an attempt to change the
name to something that suggests using other methods, fix up some
existing uses.


Compare: https://github.com/llvm/llvm-project/compare/9ed077817910...dc41c558dd90


More information about the All-commits mailing list