Intrinsics: introduce llvm_any_ty aka ValueType Any
authorRamkumar Ramachandra <artagnon@gmail.com>
Thu, 22 Jan 2015 20:14:38 +0000 (20:14 +0000)
committerRamkumar Ramachandra <artagnon@gmail.com>
Thu, 22 Jan 2015 20:14:38 +0000 (20:14 +0000)
commit75a4f35b2640b604f59c6df3b7dbe043c195cacd
tree2c5353db66f3baa6f006cb71f08abcd76df0a16d
parent49b71c609c0f8c008ac8d7ea9d9cce69858047b5
Intrinsics: introduce llvm_any_ty aka ValueType Any

Specifically, gc.result benefits from this greatly. Instead of:

gc.result.int.*
gc.result.float.*
gc.result.ptr.*
...

We now have a gc.result.* that can specialize to literally any type.

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

llvm-svn: 226857
15 files changed:
llvm/docs/Statepoints.rst
llvm/include/llvm/CodeGen/MachineValueType.h
llvm/include/llvm/CodeGen/ValueTypes.td
llvm/include/llvm/IR/Intrinsics.h
llvm/include/llvm/IR/Intrinsics.td
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/IR/IRBuilder.cpp
llvm/lib/IR/Statepoint.cpp
llvm/lib/IR/Verifier.cpp
llvm/test/CodeGen/X86/statepoint-call-lowering.ll
llvm/test/CodeGen/X86/statepoint-stackmap-format.ll
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenTarget.cpp
llvm/utils/TableGen/IntrinsicEmitter.cpp