mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Add CCAssignToStackABISizeAlign for convenience in
dealing with types whose size & alignment are different on different subtargets. Use it for x86 f80. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43988 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -120,6 +120,15 @@ void CallingConvEmitter::EmitAction(Record *Action,
|
||||
O << IndentStr << "State.addLoc(CCValAssign::getMem(ValNo, ValVT, Offset"
|
||||
<< Counter << ", LocVT, LocInfo));\n";
|
||||
O << IndentStr << "return false;\n";
|
||||
} else if (Action->isSubClassOf("CCAssignToStackABISizeAlign")) {
|
||||
O << IndentStr << "unsigned Offset" << ++Counter
|
||||
<< " = State.AllocateStack(State.getTarget().getTargetData()"
|
||||
"->getABITypeSize(MVT::getTypeForValueType(LocVT)),\n";
|
||||
O << IndentStr << " State.getTarget().getTargetData()"
|
||||
"->getABITypeAlignment(MVT::getTypeForValueType(LocVT)));\n";
|
||||
O << IndentStr << "State.addLoc(CCValAssign::getMem(ValNo, ValVT, Offset"
|
||||
<< Counter << ", LocVT, LocInfo));\n";
|
||||
O << IndentStr << "return false;\n";
|
||||
} else if (Action->isSubClassOf("CCPromoteToType")) {
|
||||
Record *DestTy = Action->getValueAsDef("DestTy");
|
||||
O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
|
||||
|
||||
Reference in New Issue
Block a user