mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-12 01:25:49 +00:00
Add "support" for stacksave/stackrestore to the dag isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25268 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1004,6 +1004,11 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
|
|||||||
getValue(I.getOperand(1)).getValueType(),
|
getValue(I.getOperand(1)).getValueType(),
|
||||||
getValue(I.getOperand(1))));
|
getValue(I.getOperand(1))));
|
||||||
return 0;
|
return 0;
|
||||||
|
case Intrinsic::stacksave:
|
||||||
|
setValue(&I, DAG.getNode(ISD::UNDEF, TLI.getValueType(I.getType())));
|
||||||
|
return 0; // FIXME: discard stacksave/restore
|
||||||
|
case Intrinsic::stackrestore:
|
||||||
|
return 0; // FIXME: discard stacksave/restore
|
||||||
case Intrinsic::prefetch:
|
case Intrinsic::prefetch:
|
||||||
// FIXME: Currently discarding prefetches.
|
// FIXME: Currently discarding prefetches.
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user