]> granicus.if.org Git - llvm/commit
Add speculatable function attribute
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 28 Apr 2017 20:25:27 +0000 (20:25 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 28 Apr 2017 20:25:27 +0000 (20:25 +0000)
commitea376dae2597d580e335df43370833003818c129
tree6781af880b949fae23a04529962f13e1afdc095d
parent81de60661c39cbee91a9a1fdeed991bb3e13cd8b
Add speculatable function attribute

This attribute tells the optimizer that the function may be speculated.

Patch by Tom Stellard

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301680 91177308-0d34-0410-b5e6-96231b3b80d8
19 files changed:
docs/LangRef.rst
include/llvm/Bitcode/LLVMBitCodes.h
include/llvm/IR/Attributes.td
include/llvm/IR/Function.h
include/llvm/IR/Intrinsics.td
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/Verifier.cpp
test/Bitcode/attributes.ll
test/Bitcode/compatibility.ll
test/Verifier/speculatable-callsite-invalid.ll [new file with mode: 0644]
test/Verifier/speculatable-callsite.ll [new file with mode: 0644]
utils/TableGen/CodeGenIntrinsics.h
utils/TableGen/CodeGenTarget.cpp
utils/TableGen/IntrinsicEmitter.cpp