OSDN Git Service

Swift Calling Convention: add swifterror attribute.
authorManman Ren <manman.ren@gmail.com>
Fri, 1 Apr 2016 21:41:15 +0000 (21:41 +0000)
committerManman Ren <manman.ren@gmail.com>
Fri, 1 Apr 2016 21:41:15 +0000 (21:41 +0000)
commit4bda8825177239052a841129dccd7e3faa16a61a
tree96ee47e6e575812f795ea8f35505544bf61de922
parent44e6fffbb4d6c23ec94270ff8524941340936561
Swift Calling Convention: add swifterror attribute.

A ``swifterror`` attribute can be applied to a function parameter or an
AllocaInst.

This commit does not include any target-specific change. The target-specific
optimization will come as a follow-up patch.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265189 91177308-0d34-0410-b5e6-96231b3b80d8
26 files changed:
docs/LangRef.rst
include/llvm-c/Core.h
include/llvm/CodeGen/FastISel.h
include/llvm/IR/Argument.h
include/llvm/IR/Attributes.td
include/llvm/IR/Instructions.h
include/llvm/Target/TargetCallingConv.h
include/llvm/Target/TargetCallingConv.td
include/llvm/Target/TargetLowering.h
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLToken.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/IR/AsmWriter.cpp
lib/IR/Attributes.cpp
lib/IR/Function.cpp
lib/IR/Instructions.cpp
lib/IR/Verifier.cpp
test/Bitcode/attributes.ll
test/Verifier/swifterror.ll [new file with mode: 0644]
test/Verifier/swifterror2.ll [new file with mode: 0644]
test/Verifier/swifterror3.ll [new file with mode: 0644]