brintos

brintos / llvm-project-archived public Read only

0
0
Text · 753 B · c1c3da1 Raw
22 lines · plain
1// This test only makes sure that passes with a DLTI dialect dependency are able2// 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 a5// compiler error due to the DLTI dialect not being loaded.6 7// RUN: fir-opt --add-debug-info %s8// RUN: fir-opt --cuf-add-constructor %s9// RUN: fir-opt --cuf-compute-shared-memory %s10// RUN: fir-opt --cuf-gpu-convert-to-llvm %s11// RUN: fir-opt --cuf-convert %s12// RUN: fir-opt --loop-versioning %s13 14module 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.return17  }18}19 20// CHECK: module attributes {21// CHECK-SAME: dlti.dl_spec = #dlti.dl_spec<22