mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
Add a comment which should hopefully make the purpose of this method a
bit clearer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72374 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -224,6 +224,9 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SDValue VectorLegalizer::PromoteVectorOp(SDValue Op) {
|
SDValue VectorLegalizer::PromoteVectorOp(SDValue Op) {
|
||||||
|
// Vector "promotion" is basically just bitcasting and doing the operation
|
||||||
|
// in a different type. For example, x86 promotes ISD::AND on v2i32 to
|
||||||
|
// v1i64.
|
||||||
MVT VT = Op.getValueType();
|
MVT VT = Op.getValueType();
|
||||||
assert(Op.getNode()->getNumValues() == 1 &&
|
assert(Op.getNode()->getNumValues() == 1 &&
|
||||||
"Can't promote a vector with multiple results!");
|
"Can't promote a vector with multiple results!");
|
||||||
|
Reference in New Issue
Block a user