mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-03 19:15:30 +00:00
Duncan pointed out that the Extended case in getTypeForMVT could
be considerably simplified. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58703 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1f5d212ca7
commit
9a99325141
@ -121,13 +121,8 @@ std::string MVT::getMVTString() const {
|
|||||||
const Type *MVT::getTypeForMVT() const {
|
const Type *MVT::getTypeForMVT() const {
|
||||||
switch (V) {
|
switch (V) {
|
||||||
default:
|
default:
|
||||||
if (isVector())
|
assert(isExtended() && "Type is not extended!");
|
||||||
return VectorType::get(getVectorElementType().getTypeForMVT(),
|
return LLVMTy;
|
||||||
getVectorNumElements());
|
|
||||||
if (isInteger())
|
|
||||||
return IntegerType::get(getSizeInBits());
|
|
||||||
assert(0 && "MVT does not correspond to LLVM type!");
|
|
||||||
return Type::VoidTy;
|
|
||||||
case MVT::isVoid: return Type::VoidTy;
|
case MVT::isVoid: return Type::VoidTy;
|
||||||
case MVT::i1: return Type::Int1Ty;
|
case MVT::i1: return Type::Int1Ty;
|
||||||
case MVT::i8: return Type::Int8Ty;
|
case MVT::i8: return Type::Int8Ty;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user