diff options
| author | Christudasan Devadasan <Christudasan.Devadasan@amd.com> | 2019-07-22 12:42:48 +0000 |
|---|---|---|
| committer | Christudasan Devadasan <Christudasan.Devadasan@amd.com> | 2019-07-22 12:42:48 +0000 |
| commit | 006cf8c03d77fe7a5e7333d9879090fc2d8a9f81 (patch) | |
| tree | 977f9bb351b02984a7d690a84ca293de8a371d1a /llvm/lib/CodeGen/SelectionDAG | |
| parent | bdb92955200d82967b6b98f8d4e70b987c28b7d9 (diff) | |
| download | bcm5719-llvm-006cf8c03d77fe7a5e7333d9879090fc2d8a9f81.tar.gz bcm5719-llvm-006cf8c03d77fe7a5e7333d9879090fc2d8a9f81.zip | |
Added address-space mangling for stack related intrinsics
Modified the following 3 intrinsics:
int_addressofreturnaddress,
int_frameaddress & int_sponentry.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D64561
llvm-svn: 366679
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index bf07b600004..0f2a0bb0b77 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -5583,11 +5583,11 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, return; case Intrinsic::sponentry: setValue(&I, DAG.getNode(ISD::SPONENTRY, sdl, - TLI.getPointerTy(DAG.getDataLayout()))); + TLI.getFrameIndexTy(DAG.getDataLayout()))); return; case Intrinsic::frameaddress: setValue(&I, DAG.getNode(ISD::FRAMEADDR, sdl, - TLI.getPointerTy(DAG.getDataLayout()), + TLI.getFrameIndexTy(DAG.getDataLayout()), getValue(I.getArgOperand(0)))); return; case Intrinsic::read_register: { |

