llvm-project/llvm/lib
George Burgess IV 278199f615 Add the allocsize attribute to LLVM.
`allocsize` is a function attribute that allows users to request that
LLVM treat arbitrary functions as allocation functions.

This patch makes LLVM accept the `allocsize` attribute, and makes
`@llvm.objectsize` recognize said attribute.

The review for this was split into two patches for ease of reviewing:
D18974 and D14933. As promised on the revisions, I'm landing both
patches as a single commit.

Differential Revision: http://reviews.llvm.org/D14933

llvm-svn: 266032
2016-04-12 01:05:35 +00:00
..
Analysis Add the allocsize attribute to LLVM. 2016-04-12 01:05:35 +00:00
AsmParser Add the allocsize attribute to LLVM. 2016-04-12 01:05:35 +00:00
Bitcode Add the allocsize attribute to LLVM. 2016-04-12 01:05:35 +00:00
CodeGen [RegBankSelect] Teach the repairing code how to handle physical 2016-04-12 00:38:51 +00:00
DebugInfo Thread Expected<...> up from createMachOObjectFile() to allow llvm-objdump to produce a real error message 2016-04-06 22:14:09 +00:00
ExecutionEngine Thread Expected<...> up from createMachOObjectFile() to allow llvm-objdump to produce a real error message 2016-04-06 22:14:09 +00:00
Fuzzer Remove redundant .c_str(), as suggested by PR25633 2016-04-11 20:35:17 +00:00
IR Add the allocsize attribute to LLVM. 2016-04-12 01:05:35 +00:00
IRReader Remove autoconf support 2016-01-26 21:29:08 +00:00
LTO [ThinLTO] Move summary computation from BitcodeWriter to new pass 2016-04-11 13:58:45 +00:00
LibDriver Remove autoconf support 2016-01-26 21:29:08 +00:00
LineEditor Fix Clang-tidy modernize-deprecated-headers warnings in some files; other minor fixes. 2016-03-28 17:40:08 +00:00
Linker ValueMapper: Extract llvm::RemapFunction from IRMover.cpp, NFC 2016-04-08 19:26:32 +00:00
MC MCParser: diagnose missing directional labels more clearly. 2016-04-11 19:50:46 +00:00
Object Thread Expected<...> up from createMachOObjectFile() to allow llvm-objdump to produce a real error message 2016-04-06 22:14:09 +00:00
ObjectYAML [lanai] Add Lanai backend. 2016-03-28 13:09:54 +00:00
Option Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
Passes [PM] Rename the CRTP mixin base classes for the new pass manager to 2016-03-11 10:33:22 +00:00
ProfileData Add code comment/NFC 2016-04-11 17:13:08 +00:00
Support Fix missing include on OpenBSD 2016-04-08 16:45:05 +00:00
TableGen [TableGen] Fix typos in comments. NFC 2016-02-26 06:50:27 +00:00
Target ARM: use r7 as the frame-pointer on all MachO targets. 2016-04-11 22:27:40 +00:00
Transforms Add the allocsize attribute to LLVM. 2016-04-12 01:05:35 +00:00
CMakeLists.txt Move ObjectYAML code to a new library. 2016-03-01 19:15:06 +00:00
LLVMBuild.txt Add LLVMBuild for ObjectYAML. 2016-03-01 21:29:33 +00:00