mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
Change TargetLowering::getTypeForExtArgOrReturn to take and return
MVTs, instead of EVTs. Accordingly, add bitsLT (and similar) to MVT. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169850 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1689,8 +1689,8 @@ bool X86TargetLowering::isUsedByReturnOnly(SDNode *N, SDValue &Chain) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
EVT
|
||||
X86TargetLowering::getTypeForExtArgOrReturn(LLVMContext &Context, EVT VT,
|
||||
MVT
|
||||
X86TargetLowering::getTypeForExtArgOrReturn(LLVMContext &Context, MVT VT,
|
||||
ISD::NodeType ExtendKind) const {
|
||||
MVT ReturnMVT;
|
||||
// TODO: Is this also valid on 32-bit?
|
||||
@@ -1699,7 +1699,7 @@ X86TargetLowering::getTypeForExtArgOrReturn(LLVMContext &Context, EVT VT,
|
||||
else
|
||||
ReturnMVT = MVT::i32;
|
||||
|
||||
EVT MinVT = getRegisterType(Context, ReturnMVT);
|
||||
MVT MinVT = getRegisterType(Context, ReturnMVT);
|
||||
return VT.bitsLT(MinVT) ? MinVT : VT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user