mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
It helps if I save the file. :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
317201d773
commit
5634b9f5e7
@ -1267,18 +1267,18 @@ void ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) {
|
||||
void ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) {
|
||||
unsigned TmpReg1, TmpReg2;
|
||||
switch (ID) {
|
||||
case Intrinsic::va_start:
|
||||
case Intrinsic::vastart:
|
||||
// Get the address of the first vararg value...
|
||||
TmpReg1 = getReg(CI);
|
||||
addFrameReference(BuildMI(BB, X86::LEA32r, 5, TmpReg1), VarArgsFrameIndex);
|
||||
return;
|
||||
|
||||
case Intrinsic::va_copy:
|
||||
case Intrinsic::vacopy:
|
||||
TmpReg1 = getReg(CI);
|
||||
TmpReg2 = getReg(CI.getOperand(1));
|
||||
BuildMI(BB, X86::MOV32rr, 1, TmpReg1).addReg(TmpReg2);
|
||||
return;
|
||||
case Intrinsic::va_end: return; // Noop on X86
|
||||
case Intrinsic::vaend: return; // Noop on X86
|
||||
|
||||
case Intrinsic::returnaddress:
|
||||
case Intrinsic::frameaddress:
|
||||
|
@ -1267,18 +1267,18 @@ void ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) {
|
||||
void ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) {
|
||||
unsigned TmpReg1, TmpReg2;
|
||||
switch (ID) {
|
||||
case Intrinsic::va_start:
|
||||
case Intrinsic::vastart:
|
||||
// Get the address of the first vararg value...
|
||||
TmpReg1 = getReg(CI);
|
||||
addFrameReference(BuildMI(BB, X86::LEA32r, 5, TmpReg1), VarArgsFrameIndex);
|
||||
return;
|
||||
|
||||
case Intrinsic::va_copy:
|
||||
case Intrinsic::vacopy:
|
||||
TmpReg1 = getReg(CI);
|
||||
TmpReg2 = getReg(CI.getOperand(1));
|
||||
BuildMI(BB, X86::MOV32rr, 1, TmpReg1).addReg(TmpReg2);
|
||||
return;
|
||||
case Intrinsic::va_end: return; // Noop on X86
|
||||
case Intrinsic::vaend: return; // Noop on X86
|
||||
|
||||
case Intrinsic::returnaddress:
|
||||
case Intrinsic::frameaddress:
|
||||
|
Loading…
Reference in New Issue
Block a user