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:
Chris Lattner 2004-03-13 00:24:52 +00:00
parent 317201d773
commit 5634b9f5e7
2 changed files with 6 additions and 6 deletions

View File

@ -1267,18 +1267,18 @@ void ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) {
void ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) { void ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) {
unsigned TmpReg1, TmpReg2; unsigned TmpReg1, TmpReg2;
switch (ID) { switch (ID) {
case Intrinsic::va_start: case Intrinsic::vastart:
// Get the address of the first vararg value... // Get the address of the first vararg value...
TmpReg1 = getReg(CI); TmpReg1 = getReg(CI);
addFrameReference(BuildMI(BB, X86::LEA32r, 5, TmpReg1), VarArgsFrameIndex); addFrameReference(BuildMI(BB, X86::LEA32r, 5, TmpReg1), VarArgsFrameIndex);
return; return;
case Intrinsic::va_copy: case Intrinsic::vacopy:
TmpReg1 = getReg(CI); TmpReg1 = getReg(CI);
TmpReg2 = getReg(CI.getOperand(1)); TmpReg2 = getReg(CI.getOperand(1));
BuildMI(BB, X86::MOV32rr, 1, TmpReg1).addReg(TmpReg2); BuildMI(BB, X86::MOV32rr, 1, TmpReg1).addReg(TmpReg2);
return; return;
case Intrinsic::va_end: return; // Noop on X86 case Intrinsic::vaend: return; // Noop on X86
case Intrinsic::returnaddress: case Intrinsic::returnaddress:
case Intrinsic::frameaddress: case Intrinsic::frameaddress:

View File

@ -1267,18 +1267,18 @@ void ISel::LowerUnknownIntrinsicFunctionCalls(Function &F) {
void ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) { void ISel::visitIntrinsicCall(Intrinsic::ID ID, CallInst &CI) {
unsigned TmpReg1, TmpReg2; unsigned TmpReg1, TmpReg2;
switch (ID) { switch (ID) {
case Intrinsic::va_start: case Intrinsic::vastart:
// Get the address of the first vararg value... // Get the address of the first vararg value...
TmpReg1 = getReg(CI); TmpReg1 = getReg(CI);
addFrameReference(BuildMI(BB, X86::LEA32r, 5, TmpReg1), VarArgsFrameIndex); addFrameReference(BuildMI(BB, X86::LEA32r, 5, TmpReg1), VarArgsFrameIndex);
return; return;
case Intrinsic::va_copy: case Intrinsic::vacopy:
TmpReg1 = getReg(CI); TmpReg1 = getReg(CI);
TmpReg2 = getReg(CI.getOperand(1)); TmpReg2 = getReg(CI.getOperand(1));
BuildMI(BB, X86::MOV32rr, 1, TmpReg1).addReg(TmpReg2); BuildMI(BB, X86::MOV32rr, 1, TmpReg1).addReg(TmpReg2);
return; return;
case Intrinsic::va_end: return; // Noop on X86 case Intrinsic::vaend: return; // Noop on X86
case Intrinsic::returnaddress: case Intrinsic::returnaddress:
case Intrinsic::frameaddress: case Intrinsic::frameaddress: