[TableGen] Allow TokenTy in intrinsic signatures
authorJoseph Tremoulet <jotrem@microsoft.com>
Wed, 2 Sep 2015 13:36:25 +0000 (13:36 +0000)
committerJoseph Tremoulet <jotrem@microsoft.com>
Wed, 2 Sep 2015 13:36:25 +0000 (13:36 +0000)
commit16c64796246dfa6b841e0d24767d94d804c84707
treee6fc6936a18d50b046320e071e7726a16f4c61bd
parent1b50f7132b305db32f1403f9daef181855b4d620
[TableGen] Allow TokenTy in intrinsic signatures

Summary:
Add the necessary plumbing so that llvm_token_ty can be used as an
argument/return type in intrinsic definitions and correspondingly require
TokenTy in function types.  TokenTy is an opaque type that has no target
lowering, but can be used in machine-independent intrinsics.  It is
required for the upcoming llvm.eh.padparam intrinsic.

Reviewers: majnemer, rnk

Subscribers: stoklund, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246651 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineValueType.h
include/llvm/CodeGen/ValueTypes.td
include/llvm/IR/Intrinsics.h
include/llvm/IR/Intrinsics.td
lib/IR/Function.cpp
lib/IR/Verifier.cpp
test/TableGen/intrinsic-varargs.td
utils/TableGen/CodeGenTarget.cpp
utils/TableGen/IntrinsicEmitter.cpp