[all-commits] [llvm/llvm-project] d664c4: Attributes: add a new allocalign attribute

Augie Fackler via All-commits all-commits at lists.llvm.org
Fri Mar 4 13:01:06 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d664c4b73c5dc994d4caa6c70bb5e59ada414b90
      https://github.com/llvm/llvm-project/commit/d664c4b73c5dc994d4caa6c70bb5e59ada414b90
  Author: Augie Fackler <augie at google.com>
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/AsmParser/LLToken.h
    M llvm/include/llvm/Bitcode/LLVMBitCodes.h
    M llvm/include/llvm/IR/Attributes.td
    M llvm/lib/AsmParser/LLLexer.cpp
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
    M llvm/lib/IR/Attributes.cpp
    M llvm/lib/Transforms/Utils/CodeExtractor.cpp
    M llvm/test/Bitcode/compatibility.ll

  Log Message:
  -----------
  Attributes: add a new allocalign attribute

This will let us start moving away from hard-coded attributes in
MemoryBuiltins.cpp and put the knowledge about various attribute
functions in the compilers that emit those calls where it probably
belongs.

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


  Commit: b32735d599121f9c6cad20d32281cdda651ce5b9
      https://github.com/llvm/llvm-project/commit/b32735d599121f9c6cad20d32281cdda651ce5b9
  Author: Augie Fackler <augie at google.com>
  Date:   2022-03-04 (Fri, 04 Mar 2022)

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

  Log Message:
  -----------
  BuildLibCalls: add allocalign attributes for memalign and aligned_alloc

This gets us close to being able to remove a column from the table in
MemoryBuiltins.cpp.

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


  Commit: dba73135c8b7a02afb535328a7475e0a6890c271
      https://github.com/llvm/llvm-project/commit/dba73135c8b7a02afb535328a7475e0a6890c271
  Author: Augie Fackler <augie at google.com>
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/MemoryBuiltins.h
    M llvm/lib/Analysis/MemoryBuiltins.cpp

  Log Message:
  -----------
  getAllocAlignment: respect allocalign attribute if present

As with allocsize(), we prefer the table data to attributes.

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


Compare: https://github.com/llvm/llvm-project/compare/e5eb365069cc...dba73135c8b7


More information about the All-commits mailing list