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
88 lines
2.0 KiB
LLVM
88 lines
2.0 KiB
LLVM
; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
|
|
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}
|
|
|
|
;; FIXME: Are there any attributes that would make the IR invalid for SPIR-V?
|
|
|
|
;; Names:
|
|
; CHECK-DAG: OpName %[[#FN1:]] "fn1"
|
|
; CHECK-DAG: OpName %[[#FN2:]] "fn2"
|
|
; CHECK-DAG: OpName %[[#FN3:]] "fn3"
|
|
; CHECK-DAG: OpName %[[#FN4:]] "fn4"
|
|
; CHECK-DAG: OpName %[[#FN5:]] "fn5"
|
|
; CHECK-DAG: OpName %[[#FN6:]] "fn6"
|
|
; CHECK-DAG: OpName %[[#FN7:]] "fn7"
|
|
; CHECK-DAG: OpName %[[#FN8:]] "fn8"
|
|
; CHECK-DAG: OpName %[[#FN9:]] "fn9"
|
|
|
|
;; Types:
|
|
; CHECK: %[[#VOID:]] = OpTypeVoid
|
|
; CHECK: %[[#FN:]] = OpTypeFunction %[[#VOID]]
|
|
|
|
|
|
;; Functions:
|
|
|
|
define void @fn1() noinline {
|
|
ret void
|
|
}
|
|
; CHECK: %[[#FN1]] = OpFunction %[[#VOID]] DontInline %[[#FN]]
|
|
; CHECK-NOT: OpFunctionParameter
|
|
; CHECK: OpFunctionEnd
|
|
|
|
|
|
attributes #0 = { noinline }
|
|
define void @fn2() #0 {
|
|
ret void
|
|
}
|
|
; CHECK: %[[#FN2]] = OpFunction %[[#VOID]] DontInline %[[#FN]]
|
|
; CHECK: OpFunctionEnd
|
|
|
|
|
|
define void @fn3() alwaysinline {
|
|
ret void
|
|
}
|
|
; CHECK: %[[#FN3]] = OpFunction %[[#VOID]] Inline %[[#FN]]
|
|
; CHECK: OpFunctionEnd
|
|
|
|
|
|
;; NOTE: inlinehint is not an actual requirement.
|
|
define void @fn4() inlinehint {
|
|
ret void
|
|
}
|
|
; CHECK: %[[#FN4]] = OpFunction %[[#VOID]] None %[[#FN]]
|
|
; CHECK: OpFunctionEnd
|
|
|
|
|
|
define void @fn5() readnone {
|
|
ret void
|
|
}
|
|
; CHECK: %[[#FN5]] = OpFunction %[[#VOID]] Pure %[[#FN]]
|
|
; CHECK: OpFunctionEnd
|
|
|
|
|
|
define void @fn6() memory(none) {
|
|
ret void
|
|
}
|
|
; CHECK: %[[#FN6]] = OpFunction %[[#VOID]] Pure %[[#FN]]
|
|
; CHECK: OpFunctionEnd
|
|
|
|
|
|
define void @fn7() readonly {
|
|
ret void
|
|
}
|
|
; CHECK: %[[#FN7]] = OpFunction %[[#VOID]] Const %[[#FN]]
|
|
; CHECK: OpFunctionEnd
|
|
|
|
|
|
define void @fn8() memory(read) {
|
|
ret void
|
|
}
|
|
; CHECK: %[[#FN8]] = OpFunction %[[#VOID]] Const %[[#FN]]
|
|
; CHECK: OpFunctionEnd
|
|
|
|
|
|
define void @fn9() alwaysinline readnone {
|
|
ret void
|
|
}
|
|
; CHECK: %[[#FN9]] = OpFunction %[[#VOID]] Inline|Pure %[[#FN]]
|
|
; CHECK: OpFunctionEnd
|