
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
20 lines
766 B
LLVM
20 lines
766 B
LLVM
; RUN: llvm-dis < %S/upgrade-aarch64-ldstxr.bc | FileCheck %s
|
|
|
|
define void @f(i32* %p) {
|
|
; CHECK: call i64 @llvm.aarch64.ldxr.p0(ptr elementtype(i32)
|
|
%a = call i64 @llvm.aarch64.ldxr.p0i32(i32* %p)
|
|
; CHECK: call i32 @llvm.aarch64.stxr.p0(i64 0, ptr elementtype(i32)
|
|
%c = call i32 @llvm.aarch64.stxr.p0i32(i64 0, i32* %p)
|
|
|
|
; CHECK: call i64 @llvm.aarch64.ldaxr.p0(ptr elementtype(i32)
|
|
%a2 = call i64 @llvm.aarch64.ldaxr.p0i32(i32* %p)
|
|
; CHECK: call i32 @llvm.aarch64.stlxr.p0(i64 0, ptr elementtype(i32)
|
|
%c2 = call i32 @llvm.aarch64.stlxr.p0i32(i64 0, i32* %p)
|
|
ret void
|
|
}
|
|
|
|
declare i64 @llvm.aarch64.ldxr.p0i32(i32*)
|
|
declare i64 @llvm.aarch64.ldaxr.p0i32(i32*)
|
|
declare i32 @llvm.aarch64.stxr.p0i32(i64, i32*)
|
|
declare i32 @llvm.aarch64.stlxr.p0i32(i64, i32*)
|