mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-27 12:26:08 +00:00
Teach the type lowering code about turning packed types into vector types.
Next step: generating vector dag nodes, and legalizing them into scalar code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24404 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -44,6 +44,10 @@ namespace MVT { // MVT = Machine Value Types
|
|||||||
|
|
||||||
isVoid = 12, // This has no value
|
isVoid = 12, // This has no value
|
||||||
|
|
||||||
|
Vector = 13, // This is an abstract vector type, which will
|
||||||
|
// be refined into a target vector type, or
|
||||||
|
// scalarized.
|
||||||
|
|
||||||
LAST_VALUETYPE, // This always remains at the end of the list.
|
LAST_VALUETYPE, // This always remains at the end of the list.
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -189,6 +189,7 @@ public:
|
|||||||
case Type::FloatTyID: return MVT::f32;
|
case Type::FloatTyID: return MVT::f32;
|
||||||
case Type::DoubleTyID: return MVT::f64;
|
case Type::DoubleTyID: return MVT::f64;
|
||||||
case Type::PointerTyID: return PointerTy;
|
case Type::PointerTyID: return PointerTy;
|
||||||
|
case Type::PackedTyID: return MVT::Vector;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user