[all-commits] [llvm/llvm-project] 42861f: attributes: introduce allockind attr for describin...

Augie Fackler via All-commits all-commits at lists.llvm.org
Tue May 31 07:19:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 42861faa8e17058f0b4a027bba13ef59a600e051
      https://github.com/llvm/llvm-project/commit/42861faa8e17058f0b4a027bba13ef59a600e051
  Author: Augie Fackler <augie at google.com>
  Date:   2022-05-31 (Tue, 31 May 2022)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/AsmParser/LLParser.h
    M llvm/include/llvm/Bitcode/LLVMBitCodes.h
    M llvm/include/llvm/IR/Attributes.h
    M llvm/include/llvm/IR/Attributes.td
    M llvm/lib/AsmParser/LLParser.cpp
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
    M llvm/lib/IR/AttributeImpl.h
    M llvm/lib/IR/Attributes.cpp
    M llvm/lib/IR/Verifier.cpp
    M llvm/lib/Transforms/Utils/CodeExtractor.cpp
    A llvm/test/Assembler/allockind-missing.ll
    A llvm/test/Assembler/allockind.ll
    M llvm/test/Bitcode/compatibility.ll
    A llvm/test/Verifier/allockind.ll

  Log Message:
  -----------
  attributes: introduce allockind attr for describing allocator fn behavior

I chose to encode the allockind information in a string constant because
otherwise we would get a bit of an explosion of keywords to deal with
the possible permutations of allocation function types.

I'm not sure that CodeGen.h is the correct place for this enum, but it
seemed to kind of match the UWTableKind enum so I put it in the same
place. Constructive suggestions on a better location most certainly
encouraged.

Differential Revision: https://reviews.llvm.org/D123088


  Commit: 73f664601c105e5897e12bf9766c2f7e79c92e62
      https://github.com/llvm/llvm-project/commit/73f664601c105e5897e12bf9766c2f7e79c92e62
  Author: Augie Fackler <augie at google.com>
  Date:   2022-05-31 (Tue, 31 May 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/BuildLibCalls.cpp
    M llvm/test/Transforms/InferFunctionAttrs/annotate.ll

  Log Message:
  -----------
  BuildLibCalls: infer allockind attributes on relevant functions

Differential Revision: https://reviews.llvm.org/D123089


Compare: https://github.com/llvm/llvm-project/compare/b9443cb6fa6b...73f664601c10


More information about the All-commits mailing list