[all-commits] [llvm/llvm-project] a907d3: Attributes: add a new `allocptr` attribute

Augie Fackler via All-commits all-commits at lists.llvm.org
Tue Apr 26 10:57:26 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a907d36cfe8069ce191ffada3b84e37ca50e05b6
      https://github.com/llvm/llvm-project/commit/a907d36cfe8069ce191ffada3b84e37ca50e05b6
  Author: Augie Fackler <augie at google.com>
  Date:   2022-04-26 (Tue, 26 Apr 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 `allocptr` attribute

This continues the push away from hard-coded knowledge about functions
towards attributes. We'll use this to annotate free(), realloc() and
cousins and obviate the hard-coded list of free functions.

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




More information about the All-commits mailing list