summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorMandeep Singh Grang <mgrang@codeaurora.org>2019-01-16 00:37:13 +0000
committerMandeep Singh Grang <mgrang@codeaurora.org>2019-01-16 00:37:13 +0000
commit436735c3fe8e11ab6535c6b323113ae2c4e1a307 (patch)
treeb8c3af472e3acb5bf055ace287dfc4418b1a105c /llvm/lib/IR
parentdca9c7cf240944f919f29e57cb12abc2599b084a (diff)
downloadbcm5719-llvm-436735c3fe8e11ab6535c6b323113ae2c4e1a307.tar.gz
bcm5719-llvm-436735c3fe8e11ab6535c6b323113ae2c4e1a307.zip
[EH] Rename llvm.x86.seh.recoverfp intrinsic to llvm.eh.recoverfp
Summary: Make recoverfp intrinsic target-independent so that it can be implemented for AArch64, etc. Refer D53541 for the context. Clang counterpart D56748. Reviewers: rnk, efriedma Reviewed By: rnk, efriedma Subscribers: javed.absar, kristof.beyls, llvm-commits Differential Revision: https://reviews.llvm.org/D56747 llvm-svn: 351281
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/AutoUpgrade.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/AutoUpgrade.cpp b/llvm/lib/IR/AutoUpgrade.cpp
index a00cab883bc..b2eb8b09982 100644
--- a/llvm/lib/IR/AutoUpgrade.cpp
+++ b/llvm/lib/IR/AutoUpgrade.cpp
@@ -544,6 +544,10 @@ static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) {
NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::thread_pointer);
return true;
}
+ if (Name == "x86.seh.recoverfp") {
+ NewFn = Intrinsic::getDeclaration(F->getParent(), Intrinsic::eh_recoverfp);
+ return true;
+ }
break;
}
OpenPOWER on IntegriCloud