[PATCH] D14933: Add the allocsize attribute to LLVM

George Burgess IV via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 23 12:56:51 PST 2015


george.burgess.iv created this revision.
george.burgess.iv added a reviewer: echristo.
george.burgess.iv added a subscriber: llvm-commits.

Add the `allocsize` function-level attribute to LLVM.

This attribute allows users to tag arbitrary functions as "malloc-like", so intrinsics like `@llvm.objectsize` can give higher quality results without requiring modifications to LLVM itself.

http://reviews.llvm.org/D14933

Files:
  docs/LangRef.rst
  include/llvm/Bitcode/LLVMBitCodes.h
  include/llvm/IR/Attributes.h
  include/llvm/IR/Attributes.td
  lib/Analysis/MemoryBuiltins.cpp
  lib/AsmParser/LLLexer.cpp
  lib/AsmParser/LLParser.cpp
  lib/AsmParser/LLParser.h
  lib/AsmParser/LLToken.h
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/IR/AttributeImpl.h
  lib/IR/Attributes.cpp
  lib/IR/Verifier.cpp
  test/Transforms/InstCombine/allocsize.ll
  test/Verifier/alloc-size-failedparse.ll
  test/Verifier/allocsize.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14933.40965.patch
Type: text/x-patch
Size: 39240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151123/d1d28ced/attachment.bin>


More information about the llvm-commits mailing list