Add 'nonnull', a new parameter and return attribute which indicates that the pointer...
authorNick Lewycky <nicholas@mxc.ca>
Tue, 20 May 2014 01:23:40 +0000 (01:23 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 20 May 2014 01:23:40 +0000 (01:23 +0000)
commitfe47ebfad39184dfca0733c5ef943a074bfcc187
tree2f60176fb1f04022ea8a167ff280bc824f18f11a
parent30e58303015fe880180e3caffdd8a3264cde236a
Add 'nonnull', a new parameter and return attribute which indicates that the pointer is not null. Instcombine will elide comparisons between these and null. Patch by Luqman Aden!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209185 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
docs/LangRef.rst
include/llvm-c/Core.h
include/llvm/Bitcode/LLVMBitCodes.h
include/llvm/IR/Argument.h
include/llvm/IR/Attributes.h
lib/Analysis/ValueTracking.cpp
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLToken.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/IR/Attributes.cpp
lib/IR/Function.cpp
test/Bitcode/attributes.ll