[PATCH] D123083: Attributes: add a new `allocptr` attribute

Augie Fackler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 4 15:17:24 PDT 2022


durin42 created this revision.
Herald added subscribers: ormris, dexonsmith, jdoerfert, steven_wu, hiraditya.
Herald added a project: All.
durin42 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.

Depends on D123054 <https://reviews.llvm.org/D123054>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123083

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

STAMPS
actor(@durin42) application(Differential) author(@durin42) herald(H225) herald(H343) herald(H347) herald(H428) herald(H498) herald(H576) herald(H615) herald(H637) herald(H638) herald(H692) herald(H787) herald(H864) monogram(D123083) object-type(DREV) phid(PHID-DREV-mesijcdyt22y52qmekuv) revision-repository(rG) revision-status(needs-review) subscriber(@dexonsmith) subscriber(@hiraditya) subscriber(@jdoerfert) subscriber(@llvm-commits) subscriber(@ormris) subscriber(@steven_wu) tag(#all) tag(#llvm) via(conduit)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123083.420322.patch
Type: text/x-patch
Size: 5421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220404/e16cd14e/attachment.bin>


More information about the llvm-commits mailing list