Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/memory_model_md.ll

raw
1 ; RUN: llvm-as %s -o %t.bc
2 ; RUN: llvm-spirv %t.bc -o %t.spv
3 ; RUN: llvm-spirv %t.spv -o %t.spt --to-text
4 ; RUN: llvm-spirv -r -emit-opaque-pointers %t.spv -o %t.bc
5 ; RUN: llvm-dis %t.bc -o %t.ll
6 ; RUN: FileCheck %s --input-file %t.ll -check-prefix=LLVM
7 ; RUN: FileCheck %s --input-file %t.spt -check-prefix=SPV
8
9 ; ModuleID = 'float_control_empty.bc'
10 source_filename = "float_control_empty.cpp"
11 target datalayout = "e-p:64:64-i64:64-n8:16:32"
12 target triple = "spir"
13
14 ; LLVM: !spirv.MemoryModel = !{![[MMMD:[0-9]+]]}
15 ; LLVM: ![[MMMD]] = !{i32 {{[0-9]+}}, i32 0}
16 ; SPV: MemoryModel 1 0
17 ; Function Attrs: noinline norecurse nounwind readnone
18 define dso_local dllexport void @k_no_fc(i32 %ibuf, i32 %obuf) local_unnamed_addr #16 {
19 entry:
20 ret void
21 }
22
23 attributes #16 = { noinline norecurse nounwind readnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
24
25 !llvm.module.flags = !{!1}
26 !llvm.ident = !{!2}
27 !spirv.MemoryModel = !{!0}
28
29 !0 = !{i32 1, i32 0}
30 !1 = !{i32 1, !"wchar_size", i32 4}
31 !2 = !{!"clang version 8.0.1"}