diff options
author | Heejin Ahn <aheejin@gmail.com> | 2018-05-17 20:52:03 +0000 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2018-05-17 20:52:03 +0000 |
commit | b4be38fcdd219d4d2c70776d6279c18e532572f8 (patch) | |
tree | d1cf851b7ffacf329e888453bc28ce0eb0fa4395 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | ecb3e50041d15de76af12a8fbb4d118e8f85a8c0 (diff) | |
download | bcm5719-llvm-b4be38fcdd219d4d2c70776d6279c18e532572f8.tar.gz bcm5719-llvm-b4be38fcdd219d4d2c70776d6279c18e532572f8.zip |
[WebAssembly] Add Wasm personality and isScopedEHPersonality()
Summary:
- Add wasm personality function
- Re-categorize the existing `isFuncletEHPersonality()` function into
two different functions: `isFuncletEHPersonality()` and
`isScopedEHPersonality(). This becomes necessary as wasm EH uses scoped
EH instructions (catchswitch, catchpad/ret, and cleanuppad/ret) but not
outlined funclets.
- Changed some callsites of `isFuncletEHPersonality()` to
`isScopedEHPersonality()` if they are related to scoped EH IR-level
stuff.
Reviewers: majnemer, dschuff, rnk
Subscribers: jfb, sbc100, jgravelle-google, eraman, JDevlieghere, sunfish, llvm-commits
Differential Revision: https://reviews.llvm.org/D45559
llvm-svn: 332667
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index 761c368508b..1e15a4b5d51 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -1569,7 +1569,7 @@ bool llvm::InlineFunction(CallSite CS, InlineFunctionInfo &IFI, Instruction *CallSiteEHPad = nullptr; if (CallerPersonality) { EHPersonality Personality = classifyEHPersonality(CallerPersonality); - if (isFuncletEHPersonality(Personality)) { + if (isScopedEHPersonality(Personality)) { Optional<OperandBundleUse> ParentFunclet = CS.getOperandBundle(LLVMContext::OB_funclet); if (ParentFunclet) |