This PR: * adds __spirv_ builtins for existing instructions; * fixes parsing of "syncscope" values in atomic instructions; * fix a special case of binary header emision.
10 lines
403 B
LLVM
10 lines
403 B
LLVM
; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
|
|
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
|
|
|
|
; CHECK-DAG: OpCapability Addresses
|
|
; CHECK-DAG: OpCapability Linkage
|
|
; CHECK-DAG: OpCapability Kernel
|
|
; CHECK: %1 = OpExtInstImport "OpenCL.std"
|
|
; CHECK: OpMemoryModel Physical64 OpenCL
|
|
; CHECK: OpSource Unknown 0
|