brintos

brintos / llvm-project-archived public Read only

0
0
Text · 558 B · 7eacf73 Raw
16 lines · plain
1; Test to ensure that the filename provided by clang in the module flags2; metadata results in the expected __memprof_profile_filename insertion.3 4; RUN: opt < %s -mtriple=x86_64-unknown-linux -passes='function(memprof),memprof-module' -S | FileCheck --check-prefixes=CHECK %s5 6define i32 @main() {7entry:8  ret i32 09}10 11!llvm.module.flags = !{!0}12!0 = !{i32 1, !"MemProfProfileFilename", !"/tmp/memprof.profraw"}13 14; CHECK: $__memprof_profile_filename = comdat any15; CHECK: @__memprof_profile_filename = constant [21 x i8] c"/tmp/memprof.profraw\00", comdat16