[PATCH] `nonnull` argument attribute.
Luqman Aden
me+llvm at luqman.ca
Tue Apr 15 21:02:32 PDT 2014
This patch adds a new argument attribute `non null`. This lets LLVM get rid of certain null checks. GCC already has a nonnull attribute. Also, this would be useful in Rust since we can mark a lot of our pointers as such.
http://reviews.llvm.org/D3389
Files:
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/IR/Function.cpp
lib/IR/Attributes.cpp
lib/Analysis/ValueTracking.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLToken.h
test/Bitcode/attributes.ll
include/llvm/Bitcode/LLVMBitCodes.h
include/llvm/IR/Attributes.h
include/llvm/IR/Argument.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3389.1.patch
Type: text/x-patch
Size: 7327 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140415/7ec54931/attachment.bin>
More information about the llvm-commits
mailing list