mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 16:16:11 +00:00

Always read bitcode according to the -opaque-pointers mode. Do not perform auto-detection to implicitly switch to typed pointers. This is a step towards removing typed pointer support, and also eliminates the class of problems where linking may fail if a typed pointer module is loaded before an opaque pointer module. (The latest place where this was encountered is D139924, but this has previously been fixed in other places doing bitcode linking as well.) Differential Revision: https://reviews.llvm.org/D139940
19 lines
715 B
LLVM
19 lines
715 B
LLVM
; RUN: llvm-dis < %S/arm-intrinsics.bc | FileCheck %s
|
|
|
|
define void @f(i32* %p) {
|
|
; CHECK: call i32 @llvm.arm.ldrex.p0(ptr elementtype(i32)
|
|
%a = call i32 @llvm.arm.ldrex.p0i32(i32* %p)
|
|
; CHECK: call i32 @llvm.arm.strex.p0(i32 0, ptr elementtype(i32)
|
|
%c = call i32 @llvm.arm.strex.p0i32(i32 0, i32* %p)
|
|
|
|
; CHECK: call i32 @llvm.arm.ldaex.p0(ptr elementtype(i32)
|
|
%a2 = call i32 @llvm.arm.ldaex.p0i32(i32* %p)
|
|
; CHECK: call i32 @llvm.arm.stlex.p0(i32 0, ptr elementtype(i32)
|
|
%c2 = call i32 @llvm.arm.stlex.p0i32(i32 0, i32* %p)
|
|
ret void
|
|
}
|
|
|
|
declare i32 @llvm.arm.ldrex.p0i32(i32*)
|
|
declare i32 @llvm.arm.ldaex.p0i32(i32*)
|
|
declare i32 @llvm.arm.stlex.p0i32(i32, i32*)
|
|
declare i32 @llvm.arm.strex.p0i32(i32, i32*) |