
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
13 lines
371 B
LLVM
13 lines
371 B
LLVM
; RUN: llvm-dis < %s.bc | FileCheck %s
|
|
; RUN: verify-uselistorder < %s.bc
|
|
|
|
; atomicrmw-upgrade.ll.bc was produced by running a version of llvm-as from just
|
|
; before the IR change on this file.
|
|
|
|
; CHECK: @atomicrmw
|
|
; CHECK: %b = atomicrmw add ptr %a, i32 %i acquire
|
|
define void @atomicrmw(i32* %a, i32 %i) {
|
|
%b = atomicrmw add i32* %a, i32 %i acquire
|
|
ret void
|
|
}
|