
This enabled opaque pointers by default in LLVM. The effect of this is twofold: * If IR that contains *neither* explicit ptr nor %T* types is passed to tools, we will now use opaque pointer mode, unless -opaque-pointers=0 has been explicitly passed. * Users of LLVM as a library will now default to opaque pointers. It is possible to opt-out by calling setOpaquePointers(false) on LLVMContext. A cmake option to toggle this default will not be provided. Frontends or other tools that want to (temporarily) keep using typed pointers should disable opaque pointers via LLVMContext. Differential Revision: https://reviews.llvm.org/D126689
26 lines
562 B
LLVM
26 lines
562 B
LLVM
; RUN: split-file %s %t
|
|
; RUN: llvm-link %t/a.ll %t/b.ll -S -o - | FileCheck %s
|
|
|
|
;; Check that ifuncs are linked in properly.
|
|
|
|
; CHECK-DAG: @foo = ifunc void (), ptr @foo_resolve
|
|
; CHECK-DAG: define internal ptr @foo_resolve() {
|
|
|
|
; CHECK-DAG: @bar = ifunc void (), ptr @bar_resolve
|
|
; CHECK-DAG: define internal ptr @bar_resolve() {
|
|
|
|
;--- a.ll
|
|
declare void @bar()
|
|
|
|
;--- b.ll
|
|
@foo = ifunc void (), ptr @foo_resolve
|
|
@bar = ifunc void (), ptr @bar_resolve
|
|
|
|
define internal ptr @foo_resolve() {
|
|
ret ptr null
|
|
}
|
|
|
|
define internal ptr @bar_resolve() {
|
|
ret ptr null
|
|
}
|