mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Rename llvm.recoverframeallocation to llvm.framerecover
This name is less descriptive, but it sort of puts things in the 'llvm.frame...' namespace, relating it to frameallocate and frameaddress. It also avoids using "allocate" and "allocation" together. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225752 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5608,8 +5608,8 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
case Intrinsic::recoverframeallocation: {
|
||||
// i8* @llvm.recoverframeallocation(i8* %fn, i8* %fp)
|
||||
case Intrinsic::framerecover: {
|
||||
// i8* @llvm.framerecover(i8* %fn, i8* %fp)
|
||||
MachineFunction &MF = DAG.getMachineFunction();
|
||||
MVT PtrVT = TLI.getPointerTy(0);
|
||||
|
||||
@@ -5624,7 +5624,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
||||
assert(Name.size() == strlen(Name.data()) && "not null terminated");
|
||||
SDValue OffsetSym = DAG.getTargetExternalSymbol(Name.data(), PtrVT);
|
||||
SDValue OffsetVal =
|
||||
DAG.getNode(ISD::RECOVER_FRAME_ALLOC, sdl, PtrVT, OffsetSym);
|
||||
DAG.getNode(ISD::FRAME_ALLOC_RECOVER, sdl, PtrVT, OffsetSym);
|
||||
|
||||
// Add the offset to the FP.
|
||||
Value *FP = I.getArgOperand(1);
|
||||
|
||||
@@ -2617,10 +2617,10 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
|
||||
"llvm.frameallocate argument must be constant integer size", &CI);
|
||||
break;
|
||||
}
|
||||
case Intrinsic::recoverframeallocation: {
|
||||
case Intrinsic::framerecover: {
|
||||
Value *FnArg = CI.getArgOperand(0)->stripPointerCasts();
|
||||
Function *Fn = dyn_cast<Function>(FnArg);
|
||||
Assert1(Fn && !Fn->isDeclaration(), "llvm.recoverframeallocation first "
|
||||
Assert1(Fn && !Fn->isDeclaration(), "llvm.framerecover first "
|
||||
"argument must be function defined in this module", &CI);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ def X86rdpmc : SDNode<"X86ISD::RDPMC_DAG", SDTX86Void,
|
||||
def X86Wrapper : SDNode<"X86ISD::Wrapper", SDTX86Wrapper>;
|
||||
def X86WrapperRIP : SDNode<"X86ISD::WrapperRIP", SDTX86Wrapper>;
|
||||
|
||||
def X86RecoverFrameAlloc : SDNode<"ISD::RECOVER_FRAME_ALLOC",
|
||||
def X86RecoverFrameAlloc : SDNode<"ISD::FRAME_ALLOC_RECOVER",
|
||||
SDTypeProfile<1, 1, [SDTCisSameAs<0, 1>,
|
||||
SDTCisInt<1>]>>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user