mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Move more logic into getTypeForExtArgOrReturn.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127809 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1293,9 +1293,10 @@ public:
|
||||
/// but this is not true all the time, e.g. i1 on x86-64. It is also not
|
||||
/// necessary for non-C calling conventions. The frontend should handle this
|
||||
/// and include all of the necessary information.
|
||||
virtual MVT
|
||||
getTypeForExtArgOrReturn(EVT VT, ISD::NodeType ExtendKind) const {
|
||||
return MVT::i32;
|
||||
virtual EVT getTypeForExtArgOrReturn(LLVMContext &Context, EVT VT,
|
||||
ISD::NodeType ExtendKind) const {
|
||||
EVT MinVT = getRegisterType(Context, MVT::i32);
|
||||
return VT.bitsLT(MinVT) ? MinVT : VT;
|
||||
}
|
||||
|
||||
/// LowerOperationWrapper - This callback is invoked by the type legalizer
|
||||
|
Reference in New Issue
Block a user