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
73 lines
3.4 KiB
MLIR
73 lines
3.4 KiB
MLIR
// RUN: mlir-opt %s -enable-arm-streaming -verify-diagnostics | FileCheck %s
|
|
// RUN: mlir-opt %s -enable-arm-streaming=streaming-mode=streaming-locally -verify-diagnostics | FileCheck %s -check-prefix=CHECK-LOCALLY
|
|
// RUN: mlir-opt %s -enable-arm-streaming=streaming-mode=streaming-compatible -verify-diagnostics | FileCheck %s -check-prefix=CHECK-COMPATIBLE
|
|
// RUN: mlir-opt %s -enable-arm-streaming=za-mode=new-za -verify-diagnostics | FileCheck %s -check-prefix=CHECK-ENABLE-ZA
|
|
// RUN: mlir-opt %s -enable-arm-streaming=if-required-by-ops -verify-diagnostics | FileCheck %s -check-prefix=IF-REQUIRED
|
|
// RUN: mlir-opt %s -enable-arm-streaming=if-scalable-and-supported -verify-diagnostics | FileCheck %s -check-prefix=IF-SCALABLE
|
|
|
|
// CHECK-LABEL: @arm_streaming
|
|
// CHECK-SAME: attributes {llvm.arm_streaming}
|
|
// CHECK-LOCALLY-LABEL: @arm_streaming
|
|
// CHECK-LOCALLY-SAME: attributes {llvm.arm_locally_streaming}
|
|
// CHECK-COMPATIBLE-LABEL: @arm_streaming
|
|
// CHECK-COMPATIBLE-SAME: attributes {llvm.arm_streaming_compatible}
|
|
// CHECK-ENABLE-ZA-LABEL: @arm_streaming
|
|
// CHECK-ENABLE-ZA-SAME: attributes {llvm.arm_new_za, llvm.arm_streaming}
|
|
func.func @arm_streaming() { return }
|
|
|
|
// CHECK-LABEL: @not_arm_streaming
|
|
// CHECK-SAME: attributes {llvm.enable_arm_streaming_ignore}
|
|
// CHECK-LOCALLY-LABEL: @not_arm_streaming
|
|
// CHECK-LOCALLY-SAME: attributes {llvm.enable_arm_streaming_ignore}
|
|
// CHECK-COMPATIBLE-LABEL: @not_arm_streaming
|
|
// CHECK-COMPATIBLE-SAME: attributes {llvm.enable_arm_streaming_ignore}
|
|
// CHECK-ENABLE-ZA-LABEL: @not_arm_streaming
|
|
// CHECK-ENABLE-ZA-SAME: attributes {llvm.enable_arm_streaming_ignore}
|
|
func.func @not_arm_streaming() attributes {llvm.enable_arm_streaming_ignore} { return }
|
|
|
|
// CHECK-LABEL: @requires_arm_streaming
|
|
// CHECK-SAME: attributes {llvm.arm_streaming}
|
|
// IF-REQUIRED: @requires_arm_streaming
|
|
// IF-REQUIRED-SAME: attributes {llvm.arm_streaming}
|
|
func.func @requires_arm_streaming() {
|
|
%tile = arm_sme.get_tile : vector<[4]x[4]xi32>
|
|
return
|
|
}
|
|
|
|
// CHECK-LABEL: @does_not_require_arm_streaming
|
|
// CHECK-SAME: attributes {llvm.arm_streaming}
|
|
// IF-REQUIRED: @does_not_require_arm_streaming
|
|
// IF-REQUIRED-NOT: arm_streaming
|
|
func.func @does_not_require_arm_streaming() { return }
|
|
|
|
// IF-SCALABLE-LABEL: @contains_scalable_vectors
|
|
// IF-SCALABLE-SAME: attributes {llvm.arm_streaming}
|
|
func.func @contains_scalable_vectors(%vec: vector<[4]xf32>) -> vector<[4]xf32> {
|
|
%0 = arith.addf %vec, %vec : vector<[4]xf32>
|
|
return %0 : vector<[4]xf32>
|
|
}
|
|
|
|
// IF-SCALABLE-LABEL: @no_scalable_vectors
|
|
// IF-SCALABLE-NOT: arm_streaming
|
|
func.func @no_scalable_vectors(%vec: vector<4xf32>) -> vector<4xf32> {
|
|
%0 = arith.addf %vec, %vec : vector<4xf32>
|
|
return %0 : vector<4xf32>
|
|
}
|
|
|
|
// IF-SCALABLE-LABEL: @contains_gather
|
|
// IF-SCALABLE-NOT: arm_streaming
|
|
func.func @contains_gather(%base: memref<?xf32>, %v: vector<[4]xindex>, %mask: vector<[4]xi1>, %pass_thru: vector<[4]xf32>) -> vector<[4]xf32> {
|
|
%c0 = arith.constant 0 : index
|
|
%0 = vector.gather %base[%c0][%v], %mask, %pass_thru : memref<?xf32>, vector<[4]xindex>, vector<[4]xi1>, vector<[4]xf32> into vector<[4]xf32>
|
|
return %0 : vector<[4]xf32>
|
|
}
|
|
|
|
// IF-SCALABLE-LABEL: @contains_scatter
|
|
// IF-SCALABLE-NOT: arm_streaming
|
|
func.func @contains_scatter(%base: memref<?xf32>, %v: vector<[4]xindex>,%mask: vector<[4]xi1>, %value: vector<[4]xf32>)
|
|
{
|
|
%c0 = arith.constant 0 : index
|
|
vector.scatter %base[%c0][%v], %mask, %value : memref<?xf32>, vector<[4]xindex>, vector<[4]xi1>, vector<[4]xf32>
|
|
return
|
|
}
|