18 lines · plain
1// RUN: mlir-opt --test-data-layout-query %s | FileCheck %s2 3module attributes { dlti.dl_spec = #dlti.dl_spec<4 #dlti.dl_entry<!test.test_type_with_layout<10>, ["size", 12]>,5 #dlti.dl_entry<!test.test_type_with_layout<20>, ["alignment", 32]>,6 #dlti.dl_entry<!test.test_type_with_layout<30>, ["index", 7]>>} {7 // CHECK-LABEL: @module_level_layout8 func.func @module_level_layout() {9 // CHECK: alignment = 3210 // CHECK: bitsize = 1211 // CHECK: index = 712 // CHECK: preferred = 113 // CHECK: size = 214 "test.data_layout_query"() : () -> !test.test_type_with_layout<10>15 return16 }17}18