diff options
author | Steven Wu <stevenwu@apple.com> | 2019-03-08 05:27:53 +0000 |
---|---|---|
committer | Steven Wu <stevenwu@apple.com> | 2019-03-08 05:27:53 +0000 |
commit | ed9822928626a45a749b3297a46c8fb7375c814e (patch) | |
tree | bfa486ee36040d6ed56ce30c98d7c669bd6b1c5d /llvm/test/Bitcode | |
parent | 1488ee4bd5418a5536856676c350c9ee64488334 (diff) | |
download | bcm5719-llvm-ed9822928626a45a749b3297a46c8fb7375c814e.tar.gz bcm5719-llvm-ed9822928626a45a749b3297a46c8fb7375c814e.zip |
[Bitcode] Fix bitcode compatibility issue with clang.arc.use intrinsic
Summary:
In r349534, objc arc implementation is switched to use intrinsics and at
the same time, clang.arc.use is renamed to llvm.objc.clang.arc.use to
make the naming more consistent. The side-effect of that is llvm no
longer recognize it as intrinsics and codegen external references to
it instead.
Rather than upgrade the old intrinsics name to the new one and wait for
the arc-contract pass to remove it, simply remove it in the bitcode
upgrader.
rdar://problem/48607063
Reviewers: pete, ahatanak, erik.pilkington, dexonsmith
Reviewed By: pete, dexonsmith
Subscribers: jkorous, jdoerfert, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59112
llvm-svn: 355663
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r-- | llvm/test/Bitcode/upgrade-clang-arc-use.ll | 14 | ||||
-rw-r--r-- | llvm/test/Bitcode/upgrade-clang-arc-use.ll.bc | bin | 0 -> 1296 bytes |
2 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/upgrade-clang-arc-use.ll b/llvm/test/Bitcode/upgrade-clang-arc-use.ll new file mode 100644 index 00000000000..db5481f06f6 --- /dev/null +++ b/llvm/test/Bitcode/upgrade-clang-arc-use.ll @@ -0,0 +1,14 @@ +; Test upgrade of clang.arc.use by removing it. +; Bitcode input generated from llvm 6.0 + +; RUN: llvm-dis %s.bc -o - | FileCheck %s + +%0 = type opaque +define void @foo() { + %1 = tail call %0* @foo0() +; CHECK-NOT: clang.arc.use + call void (...) @clang.arc.use(%0* %1) + ret void +} +declare %0* @foo0() +declare void @clang.arc.use(...) diff --git a/llvm/test/Bitcode/upgrade-clang-arc-use.ll.bc b/llvm/test/Bitcode/upgrade-clang-arc-use.ll.bc Binary files differnew file mode 100644 index 00000000000..ab9db6a0929 --- /dev/null +++ b/llvm/test/Bitcode/upgrade-clang-arc-use.ll.bc |