1 ; RUN: opt < %s -passes='function(memprof),module(memprof-module)' -S | FileCheck --check-prefixes=STATIC %s
3 ; RUN: cat %s > %t.pic.ll
4 ; RUN: echo -e '!llvm.module.flags = !{!0}\n!0 = !{i32 7, !"PIC Level", i32 1}' >> %t.pic.ll
5 ; RUN: opt < %t.pic.ll -passes='function(memprof),module(memprof-module)' -S | FileCheck --check-prefixes=PIC %s
7 ; STATIC: @__memprof_shadow_memory_dynamic_address = external dso_local global i64
8 ; PIC: @__memprof_shadow_memory_dynamic_address = external global i64
10 define i32 @test_load(ptr %a) {
12 %tmp1 = load i32, ptr %a, align 4