mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Refactoring of formal parameter flags. Enable properly use of
zext/sext/aext stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35008 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -123,8 +123,12 @@ void CallingConvEmitter::EmitAction(Record *Action,
|
||||
} else if (Action->isSubClassOf("CCPromoteToType")) {
|
||||
Record *DestTy = Action->getValueAsDef("DestTy");
|
||||
O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
|
||||
O << IndentStr << "LocInfo = (ArgFlags & SDISelParamFlags::Signed) ? \n"
|
||||
<< IndentStr << IndentStr << "CCValAssign::SExt : CCValAssign::ZExt;\n";
|
||||
O << IndentStr << "if (ArgFlags & ISD::ParamFlags::SExt)\n"
|
||||
<< IndentStr << IndentStr << "LocInfo = CCValAssign::SExt;\n"
|
||||
<< IndentStr << "else if (ArgFlags & ISD::ParamFlags::ZExt)\n"
|
||||
<< IndentStr << IndentStr << "LocInfo = CCValAssign::ZExt;\n"
|
||||
<< IndentStr << "else\n"
|
||||
<< IndentStr << IndentStr << "LocInfo = CCValAssign::AExt;\n";
|
||||
} else {
|
||||
Action->dump();
|
||||
throw "Unknown CCAction!";
|
||||
|
||||
Reference in New Issue
Block a user