Files
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

255 lines
8.6 KiB
MLIR

// RUN: mlir-opt -split-input-file %s | FileCheck %s
// CHECK: module attributes {
// CHECK-SAME: dlti.map = #dlti.map<
// CHECK-SAME: "magic_num" = 42 : i32,
// CHECK-SAME: "magic_num_float" = 4.242000e+01 : f32,
// CHECK-SAME: "magic_type" = i32,
// CHECK-SAME: i32 = #dlti.map<"bitwidth" = 32 : i32>
// CHECK: >} {
// CHECK: }
module attributes {
dlti.map = #dlti.map<"magic_num" = 42 : i32,
"magic_num_float" = 42.42 : f32,
"magic_type" = i32,
i32 = #dlti.map<"bitwidth" = 32 : i32>>
} {}
// -----
// CHECK: module attributes {
// CHECK-SAME: dlti.map = #dlti.map<
// CHECK-SAME: "magic_num" = 42 : i32,
// CHECK-SAME: "magic_num_float" = 4.242000e+01 : f32,
// CHECK-SAME: "magic_type" = i32,
// CHECK-SAME: i32 = #dlti.map<"bitwidth" = 32 : i32>
// CHECK: >} {
// CHECK: }
module attributes {
dlti.map = #dlti.map<
#dlti.dl_entry<"magic_num", 42 : i32>,
#dlti.dl_entry<"magic_num_float", 42.42 : f32>,
#dlti.dl_entry<"magic_type", i32>,
#dlti.dl_entry<i32, #dlti.map<#dlti.dl_entry<"bitwidth", 32 : i32>>>
>} {}
// -----
// CHECK: module attributes {
// CHECK-SAME: dlti.map = #dlti.map<
// CHECK-SAME: "CPU" = #dlti.map<"L1_cache_size_in_bytes" = 4096 : i32>,
// CHECK-SAME: "GPU" = #dlti.map<"max_vector_op_width" = 128 : i32>
// CHECK-SAME: >} {
// CHECK: }
module attributes {
dlti.map = #dlti.map<
#dlti.dl_entry<"CPU", #dlti.map<
#dlti.dl_entry<"L1_cache_size_in_bytes", 4096 : i32>>>,
#dlti.dl_entry<"GPU", #dlti.map<
#dlti.dl_entry<"max_vector_op_width", 128 : i32>>>
>} {}
// -----
// CHECK: module attributes {
// CHECK-SAME: dlti.target_system_spec = #dlti.target_system_spec<
// CHECK-SAME: "CPU" = #dlti.target_device_spec<
// CHECK-SAME: "L1_cache_size_in_bytes" = 4096 : i32>,
// CHECK-SAME: "GPU" = #dlti.target_device_spec<
// CHECK-SAME: "max_vector_op_width" = 128 : i32>
// CHECK-SAME: >} {
// CHECK: }
module attributes {
dlti.target_system_spec = #dlti.target_system_spec<
"CPU" = #dlti.target_device_spec<
#dlti.dl_entry<"L1_cache_size_in_bytes", 4096 : i32>>,
"GPU" = #dlti.target_device_spec<
#dlti.dl_entry<"max_vector_op_width", 128 : i32>>
>} {}
// -----
// CHECK: module attributes {
// CHECK-SAME: dlti.target_system_spec = #dlti.target_system_spec<
// CHECK-SAME: "CPU" = #dlti.target_device_spec<
// CHECK-SAME: "L1_cache_size_in_bytes" = 4096 : i32>,
// CHECK-SAME: "GPU" = #dlti.target_device_spec<
// CHECK-SAME: "L1_cache_size_in_bytes" = 8192 : i32>
// CHECK-SAME: >} {
// CHECK: }
module attributes {
dlti.target_system_spec = #dlti.target_system_spec<
"CPU" = #dlti.target_device_spec<
#dlti.dl_entry<"L1_cache_size_in_bytes", 4096 : i32>>,
"GPU" = #dlti.target_device_spec<
#dlti.dl_entry<"L1_cache_size_in_bytes", 8192 : i32>>
>} {}
// -----
// CHECK: module attributes {
// CHECK-SAME: dlti.target_system_spec = #dlti.target_system_spec<
// CHECK-SAME: "CPU" = #dlti.target_device_spec<
// CHECK-SAME: "L1_cache_size_in_bytes" = 4096 : i64>,
// CHECK-SAME: "GPU" = #dlti.target_device_spec<
// CHECK-SAME: "L1_cache_size_in_bytes" = 8192 : i64>
// CHECK-SAME: >} {
// CHECK: }
module attributes {
dlti.target_system_spec = #dlti.target_system_spec<
"CPU" = #dlti.target_device_spec<
#dlti.dl_entry<"L1_cache_size_in_bytes", 4096 : i64>>,
"GPU" = #dlti.target_device_spec<
#dlti.dl_entry<"L1_cache_size_in_bytes", 8192 : i64>>
>} {}
// -----
// CHECK: module attributes {
// CHECK-SAME: dlti.target_system_spec = #dlti.target_system_spec<
// CHECK-SAME: "CPU" = #dlti.target_device_spec<
// CHECK-SAME: "max_vector_op_width" = 64 : i32>,
// CHECK-SAME: "GPU" = #dlti.target_device_spec<
// CHECK-SAME: "max_vector_op_width" = 128 : i32>
// CHECK-SAME: >} {
// CHECK: }
module attributes {
dlti.target_system_spec = #dlti.target_system_spec<
"CPU" = #dlti.target_device_spec<
#dlti.dl_entry<"max_vector_op_width", 64 : i32>>,
"GPU" = #dlti.target_device_spec<
#dlti.dl_entry<"max_vector_op_width", 128 : i32>>
>} {}
// -----
// CHECK: module attributes {
// CHECK-SAME: dlti.target_system_spec = #dlti.target_system_spec<
// CHECK-SAME: "CPU" = #dlti.target_device_spec<
// CHECK-SAME: "max_vector_op_width" = 64 : i64>,
// CHECK-SAME: "GPU" = #dlti.target_device_spec<
// CHECK-SAME: "max_vector_op_width" = 128 : i64>
// CHECK-SAME: >} {
// CHECK: }
module attributes {
dlti.target_system_spec = #dlti.target_system_spec<
"CPU" = #dlti.target_device_spec<
#dlti.dl_entry<"max_vector_op_width", 64 : i64>>,
"GPU" = #dlti.target_device_spec<
#dlti.dl_entry<"max_vector_op_width", 128 : i64>>
>} {}
// -----
// CHECK: module attributes {
// CHECK-SAME: dlti.target_system_spec = #dlti.target_system_spec<
// CHECK-SAME: "CPU" = #dlti.target_device_spec<
// CHECK-SAME: "max_vector_op_width" = 64 : i64>,
// CHECK-SAME: "GPU" = #dlti.target_device_spec<
// CHECK-SAME: "max_vector_op_width" = 128 : i64>
// CHECK-SAME: >} {
// CHECK: }
module attributes {
dlti.target_system_spec = #dlti.target_system_spec<
"CPU" = #dlti.target_device_spec<
#dlti.dl_entry<"max_vector_op_width", 64 : i64>>,
"GPU" = #dlti.target_device_spec<
#dlti.dl_entry<"max_vector_op_width", 128 : i64>>
>} {}
// -----
// Check values of mixed type
//
// CHECK: module attributes {
// CHECK-SAME: dlti.target_system_spec = #dlti.target_system_spec<
// CHECK-SAME: "CPU" = #dlti.target_device_spec<
// CHECK-SAME: "L1_cache_size_in_bytes" = 4096 : ui32>,
// CHECK-SAME: "GPU" = #dlti.target_device_spec<
// CHECK-SAME: "max_vector_op_width" = "128">
// CHECK-SAME: >} {
// CHECK: }
module attributes {
dlti.target_system_spec = #dlti.target_system_spec<
"CPU" = #dlti.target_device_spec<
#dlti.dl_entry<"L1_cache_size_in_bytes", 4096 : ui32>>,
"GPU" = #dlti.target_device_spec<
#dlti.dl_entry<"max_vector_op_width", "128">>
>} {}
// -----
// Check values of mixed type
//
// CHECK: module attributes {
// CHECK-SAME: dlti.target_system_spec = #dlti.target_system_spec<
// CHECK-SAME: "CPU" = #dlti.target_device_spec<
// CHECK-SAME: "max_vector_op_width" = 4.096000e+03 : f32>,
// CHECK-SAME: "GPU" = #dlti.target_device_spec<
// CHECK-SAME: "L1_cache_size_in_bytes" = "128">
// CHECK-SAME: >} {
// CHECK: }
module attributes {
dlti.target_system_spec = #dlti.target_system_spec<
"CPU" = #dlti.target_device_spec<
#dlti.dl_entry<"max_vector_op_width", 4096.0 : f32>>,
"GPU" = #dlti.target_device_spec<
#dlti.dl_entry<"L1_cache_size_in_bytes", "128">>
>} {}
// -----
// Check values of mixed type
//
// CHECK: module attributes {
// CHECK-SAME: dlti.target_system_spec = #dlti.target_system_spec<
// CHECK-SAME: "CPU" = #dlti.target_device_spec<
// CHECK-SAME: "vector_unit" = #dlti.map<
// CHECK-SAME: "max_op_width" = 4.096000e+03 : f32>>,
// CHECK-SAME: "GPU" = #dlti.target_device_spec<
// CHECK-SAME: "L1_cache_size_in_bytes" = "128">
// CHECK-SAME: >} {
// CHECK: }
module attributes {
dlti.target_system_spec = #dlti.target_system_spec<
"CPU" = #dlti.target_device_spec<
#dlti.dl_entry<"vector_unit", #dlti.map<
#dlti.dl_entry<"max_op_width", 4096.0 : f32>>>>,
"GPU" = #dlti.target_device_spec<
#dlti.dl_entry<"L1_cache_size_in_bytes", "128">>
>} {}
// -----
// Check values of mixed type
//
// CHECK: module attributes {
// CHECK-SAME: dlti.target_system_spec = #dlti.target_system_spec<
// CHECK-SAME: "CPU" = #dlti.target_device_spec<
// CHECK-SAME: "L1_cache_size_in_bytes" = 4096 : ui32>,
// CHECK-SAME: "GPU" = #dlti.target_device_spec<
// CHECK-SAME: "max_vector_op_width" = 128 : i64>
// CHECK-SAME: >} {
// CHECK: }
module attributes {
dlti.target_system_spec = #dlti.target_system_spec<
"CPU" = #dlti.target_device_spec<"L1_cache_size_in_bytes" = 4096 : ui32>,
"GPU" = #dlti.target_device_spec<"max_vector_op_width" = 128>
>} {}
// -----
// CHECK: "test.op_with_dlti_map"() ({
// CHECK: }) {dlti.map = #dlti.map<"dlti.unknown_id" = 42 : i64>}
"test.op_with_dlti_map"() ({
}) { dlti.map = #dlti.map<#dlti.dl_entry<"dlti.unknown_id", 42>> } : () -> ()
// -----
// CHECK: "test.op_with_dlti_map"() ({
// CHECK: }) {dlti.map = #dlti.map<i32 = 42 : i64>}
"test.op_with_dlti_map"() ({
}) { dlti.map = #dlti.map<#dlti.dl_entry<i32, 42>> } : () -> ()