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
45 lines
991 B
MLIR
45 lines
991 B
MLIR
// RUN: mlir-opt %s -split-input-file | FileCheck %s
|
|
|
|
func.func @const() -> () {
|
|
// CHECK: %true
|
|
%0 = spirv.Constant true
|
|
// CHECK: %false
|
|
%1 = spirv.Constant false
|
|
|
|
// CHECK: %cst42_i32
|
|
%2 = spirv.Constant 42 : i32
|
|
// CHECK: %cst-42_i32
|
|
%-2 = spirv.Constant -42 : i32
|
|
// CHECK: %cst43_i64
|
|
%3 = spirv.Constant 43 : i64
|
|
|
|
// CHECK-NEXT: %cst6_ui8
|
|
%9 = spirv.Constant 6 : ui8
|
|
|
|
// CHECK: %cst_f32
|
|
%4 = spirv.Constant 0.5 : f32
|
|
// CHECK: %cst_f64
|
|
%5 = spirv.Constant 0.5 : f64
|
|
|
|
// CHECK: %cst_vec_3xi32
|
|
%6 = spirv.Constant dense<[1, 2, 3]> : vector<3xi32>
|
|
|
|
// CHECK: %cst
|
|
%8 = spirv.Constant [dense<3.0> : vector<2xf32>] : !spirv.array<1xvector<2xf32>>
|
|
|
|
return
|
|
}
|
|
|
|
// -----
|
|
|
|
spirv.module Logical GLSL450 {
|
|
spirv.GlobalVariable @global_var : !spirv.ptr<f32, Input>
|
|
|
|
spirv.func @addressof() -> () "None" {
|
|
// CHECK: %global_var_addr = spirv.mlir.addressof
|
|
%0 = spirv.mlir.addressof @global_var : !spirv.ptr<f32, Input>
|
|
spirv.Return
|
|
}
|
|
}
|
|
|