Debian Codegraph @

flang/test/Transforms/dlti-dependency.fir

raw
1 // This test only makes sure that passes with a DLTI dialect dependency are able
2 // to obtain the dlti.dl_spec module attribute from an llvm.data_layout string.
3 //
4 // If dependencies for the pass are not properly set, this test causes a
5 // compiler error due to the DLTI dialect not being loaded.
6
7 // RUN: fir-opt --add-debug-info %s
8 // RUN: fir-opt --cuf-add-constructor %s
9 // RUN: fir-opt --cuf-compute-shared-memory %s
10 // RUN: fir-opt --cuf-gpu-convert-to-llvm %s
11 // RUN: fir-opt --cuf-convert %s
12 // RUN: fir-opt --loop-versioning %s
13
14 module attributes {llvm.data_layout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128"} {
15 llvm.func @foo(%arg0 : i32) {
16 llvm.return
17 }
18 }
19
20 // CHECK: module attributes {
21 // CHECK-SAME: dlti.dl_spec = #dlti.dl_spec<