/external/llvm-project/mlir/test/Dialect/SPIRV/Transforms/ |
D | layout-decoration.mlir | 3 spv.module Logical GLSL450 { 4 …// CHECK: spv.globalVariable @var0 bind(0, 1) : !spv.ptr<!spv.struct<(i32 [0], !spv.struct<(f32 [0… 5 …spv.globalVariable @var0 bind(0,1) : !spv.ptr<!spv.struct<(i32, !spv.struct<(f32, i32)>, f32)>, Un… 7 …// CHECK: spv.globalVariable @var1 bind(0, 2) : !spv.ptr<!spv.struct<(!spv.array<64 x i32, stride=… 8 …spv.globalVariable @var1 bind(0,2) : !spv.ptr<!spv.struct<(!spv.array<64xi32>, f32)>, StorageBuffe… 10 …// CHECK: spv.globalVariable @var2 bind(1, 0) : !spv.ptr<!spv.struct<(!spv.struct<(!spv.array<64 x… 11 …spv.globalVariable @var2 bind(1,0) : !spv.ptr<!spv.struct<(!spv.struct<(!spv.array<64xi32>, f32)>,… 13 …// CHECK: spv.globalVariable @var3 : !spv.ptr<!spv.struct<(!spv.array<16 x !spv.struct<(f32 [0], f… 14 …spv.globalVariable @var3 : !spv.ptr<!spv.struct<(!spv.array<16x!spv.struct<(f32, f32, !spv.array<1… 16 …// CHECK: spv.globalVariable @var4 bind(1, 2) : !spv.ptr<!spv.struct<(!spv.struct<(!spv.struct<(i1… [all …]
|
D | abi-load-store.mlir | 4 spv.target_env = #spv.target_env< 5 #spv.vce<v1.0, [Shader], [SPV_KHR_storage_buffer_storage_class]>, {}> 8 // CHECK-LABEL: spv.module 9 spv.module Logical GLSL450 { 10 // CHECK-DAG: spv.globalVariable [[WORKGROUPSIZE:@.*]] built_in("WorkgroupSize") 11 …spv.globalVariable @__builtin_var_WorkgroupSize__ built_in("WorkgroupSize") : !spv.ptr<vector<3xi3… 12 // CHECK-DAG: spv.globalVariable [[NUMWORKGROUPS:@.*]] built_in("NumWorkgroups") 13 …spv.globalVariable @__builtin_var_NumWorkgroups__ built_in("NumWorkgroups") : !spv.ptr<vector<3xi3… 14 // CHECK-DAG: spv.globalVariable [[LOCALINVOCATIONID:@.*]] built_in("LocalInvocationId") 15 …spv.globalVariable @__builtin_var_LocalInvocationId__ built_in("LocalInvocationId") : !spv.ptr<vec… [all …]
|
D | inlining.mlir | 1 // RUN: mlir-opt %s -split-input-file -pass-pipeline='spv.module(inline{disable-simplify})' | FileC… 3 spv.module Logical GLSL450 { 4 spv.func @callee() "None" { 5 spv.Return 9 spv.func @calling_single_block_ret_func() "None" { 10 // CHECK-NEXT: spv.Return 11 spv.FunctionCall @callee() : () -> () 12 spv.Return 18 spv.module Logical GLSL450 { 19 spv.func @callee() -> i32 "None" { [all …]
|
D | vce-deduction.mlir | 8 // spv.IAdd is available from v1.0. 10 // CHECK: requires #spv.vce<v1.0, [Shader], []> 11 spv.module Logical GLSL450 attributes { 12 spv.target_env = #spv.target_env< 13 #spv.vce<v1.5, [Shader], []>, {}> 15 spv.func @iadd(%val : i32) -> i32 "None" { 16 %0 = spv.IAdd %val, %val: i32 17 spv.ReturnValue %0: i32 22 // spv.GroupNonUniformBallot is available since v1.3. 24 // CHECK: requires #spv.vce<v1.3, [GroupNonUniformBallot, Shader], []> [all …]
|
/external/llvm-project/mlir/test/Dialect/SPIRV/Serialization/ |
D | struct.mlir | 3 spv.module Logical GLSL450 requires #spv.vce<v1.0, [Shader], []> { 4 // CHECK: !spv.ptr<!spv.struct<(!spv.array<128 x f32, stride=4> [0])>, Input> 5 …spv.globalVariable @var0 bind(0, 1) : !spv.ptr<!spv.struct<(!spv.array<128 x f32, stride=4> [0])>,… 7 …// CHECK: !spv.ptr<!spv.struct<(f32 [0], !spv.struct<(f32 [0], !spv.array<16 x f32, stride=4> [4])… 8 …spv.globalVariable @var1 bind(0, 2) : !spv.ptr<!spv.struct<(f32 [0], !spv.struct<(f32 [0], !spv.ar… 10 …// CHECK: !spv.ptr<!spv.struct<(f32 [0], i32 [4], f64 [8], i64 [16], f32 [24], i32 [30], f32 [34],… 11 …spv.globalVariable @var2 : !spv.ptr<!spv.struct<(f32 [0], i32 [4], f64 [8], i64 [16], f32 [24], i3… 13 …// CHECK: !spv.ptr<!spv.struct<(!spv.array<128 x !spv.struct<(!spv.array<128 x f32, stride=4> [0])… 14 …spv.globalVariable @var3 : !spv.ptr<!spv.struct<(!spv.array<128 x !spv.struct<(!spv.array<128 x f3… 16 // CHECK: !spv.ptr<!spv.struct<(f32 [0, NonWritable], i32 [4])>, StorageBuffer> [all …]
|
D | memory-ops.mlir | 3 // CHECK: spv.func {{@.*}}([[ARG1:%.*]]: !spv.ptr<f32, Input>, [[ARG2:%.*]]: !spv.ptr<f32… 4 // CHECK-NEXT: [[VALUE:%.*]] = spv.Load "Input" [[ARG1]] : f32 5 // CHECK-NEXT: spv.Store "Output" [[ARG2]], [[VALUE]] : f32 7 spv.module Logical GLSL450 requires #spv.vce<v1.0, [Shader], []> { 8 spv.func @load_store(%arg0 : !spv.ptr<f32, Input>, %arg1 : !spv.ptr<f32, Output>) "None" { 9 %1 = spv.Load "Input" %arg0 : f32 10 spv.Store "Output" %arg1, %1 : f32 11 spv.Return 17 spv.module Logical GLSL450 requires #spv.vce<v1.0, [Shader], []> { 18 …spv.func @access_chain(%arg0 : !spv.ptr<!spv.array<4x!spv.array<4xf32>>, Function>, %arg1 : i32, %… [all …]
|
D | constant.mlir | 3 spv.module Logical GLSL450 requires #spv.vce<v1.0, [Shader], []> { 5 spv.func @bool_const() -> () "None" { 6 // CHECK: spv.constant true 7 %0 = spv.constant true 8 // CHECK: spv.constant false 9 %1 = spv.constant false 11 %2 = spv.Variable init(%0): !spv.ptr<i1, Function> 12 %3 = spv.Variable init(%1): !spv.ptr<i1, Function> 13 spv.Return 17 spv.func @i32_const() -> () "None" { [all …]
|
D | cooperative-matrix.mlir | 3 spv.module Logical GLSL450 requires #spv.vce<v1.0, [CooperativeMatrixNV], [SPV_NV_cooperative_matri… 5 …spv.func @cooperative_matrix_load(%ptr : !spv.ptr<i32, StorageBuffer>, %stride : i32, %b : i1) "No… 6 …// CHECK: {{%.*}} = spv.CooperativeMatrixLoadNV {{%.*}}, {{%.*}}, {{%.*}} : !spv.ptr<i32, StorageB… 7 …%0 = spv.CooperativeMatrixLoadNV %ptr, %stride, %b : !spv.ptr<i32, StorageBuffer> as !spv.coopmatr… 8 spv.Return 12 …spv.func @cooperative_matrix_load_memaccess(%ptr : !spv.ptr<i32, StorageBuffer>, %stride : i32, %b… 13 …// CHECK: {{%.*}} = spv.CooperativeMatrixLoadNV {{%.*}}, {{%.*}}, {{%.*}} ["Volatile"] : !spv.ptr<… 14 …%0 = spv.CooperativeMatrixLoadNV %ptr, %stride, %b ["Volatile"] : !spv.ptr<i32, StorageBuffer> as … 15 spv.Return 19 …spv.func @cooperative_matrix_store(%ptr : !spv.ptr<i32, StorageBuffer>, %stride : i32, %m : !spv.c… [all …]
|
D | loop.mlir | 5 spv.module Logical GLSL450 requires #spv.vce<v1.0, [Shader], []> { 7 spv.func @loop(%count : i32) -> () "None" { 8 %zero = spv.constant 0: i32 9 %one = spv.constant 1: i32 10 %var = spv.Variable init(%zero) : !spv.ptr<i32, Function> 12 // CHECK: spv.Branch ^bb1 14 // CHECK-NEXT: spv.loop 15 spv.loop { 16 // CHECK-NEXT: spv.Branch ^bb1 17 spv.Branch ^header [all …]
|
D | phi.mlir | 5 spv.module Logical GLSL450 requires #spv.vce<v1.0, [Shader], []> { 6 spv.func @foo() -> () "None" { 7 // CHECK: %[[CST:.*]] = spv.constant 0 8 %zero = spv.constant 0 : i32 9 // CHECK-NEXT: spv.Branch ^bb1(%[[CST]] : i32) 10 spv.Branch ^bb1(%zero : i32) 13 spv.Return 16 spv.func @main() -> () "None" { 17 spv.Return 19 spv.EntryPoint "GLCompute" @main [all …]
|
D | matrix.mlir | 3 spv.module Logical GLSL450 requires #spv.vce<v1.0, [Shader], []> { 5 …spv.func @matrix_access_chain(%arg0 : !spv.ptr<!spv.matrix<3 x vector<3xf32>>, Function>, %arg1 : … 6 …// CHECK: {{%.*}} = spv.AccessChain {{%.*}}[{{%.*}}] : !spv.ptr<!spv.matrix<3 x vector<3xf32>>, Fu… 7 %0 = spv.AccessChain %arg0[%arg1] : !spv.ptr<!spv.matrix<3 x vector<3xf32>>,Function>, i32 8 spv.ReturnValue %0 : !spv.ptr<vector<3xf32>, Function> 12 …spv.func @matrix_times_scalar_1(%arg0 : !spv.matrix<3 x vector<3xf32>>, %arg1 : f32) -> !spv.matri… 13 …// CHECK: {{%.*}} = spv.MatrixTimesScalar {{%.*}}, {{%.*}} : !spv.matrix<3 x vector<3xf32>>, f32 -… 14 …%result = spv.MatrixTimesScalar %arg0, %arg1 : !spv.matrix<3 x vector<3xf32>>, f32 -> !spv.matrix<… 15 spv.ReturnValue %result : !spv.matrix<3 x vector<3xf32>> 19 …spv.func @matrix_times_scalar_2(%arg0 : !spv.matrix<3 x vector<3xf16>>, %arg1 : f16) -> !spv.matri… [all …]
|
D | function-call.mlir | 3 spv.module Logical GLSL450 requires #spv.vce<v1.0, [Shader], []> { 4 spv.globalVariable @var1 : !spv.ptr<!spv.array<4xf32>, Input> 5 spv.func @fmain() -> i32 "None" { 6 %0 = spv.constant 16 : i32 7 %1 = spv.mlir.addressof @var1 : !spv.ptr<!spv.array<4xf32>, Input> 8 // CHECK: {{%.*}} = spv.FunctionCall @f_0({{%.*}}) : (i32) -> i32 9 %3 = spv.FunctionCall @f_0(%0) : (i32) -> i32 10 …// CHECK: spv.FunctionCall @f_1({{%.*}}, {{%.*}}) : (i32, !spv.ptr<!spv.array<4 x f32>, Input>) ->… 11 spv.FunctionCall @f_1(%3, %1) : (i32, !spv.ptr<!spv.array<4xf32>, Input>) -> () 12 …// CHECK: {{%.*}} = spv.FunctionCall @f_2({{%.*}}) : (!spv.ptr<!spv.array<4 x f32>, Input>) -> !s… [all …]
|
D | logical-ops.mlir | 3 spv.module Logical GLSL450 requires #spv.vce<v1.0, [Shader], []> { 4 spv.func @iequal_scalar(%arg0: i32, %arg1: i32) "None" { 5 // CHECK: {{.*}} = spv.IEqual {{.*}}, {{.*}} : i32 6 %0 = spv.IEqual %arg0, %arg1 : i32 7 spv.Return 9 spv.func @inotequal_vector(%arg0: vector<4xi32>, %arg1: vector<4xi32>) "None" { 10 // CHECK: {{.*}} = spv.INotEqual {{.*}}, {{.*}} : vector<4xi32> 11 %0 = spv.INotEqual %arg0, %arg1 : vector<4xi32> 12 spv.Return 14 spv.func @sgt_vector(%arg0: vector<4xi32>, %arg1: vector<4xi32>) "None" { [all …]
|
D | debug.mlir | 3 spv.module Logical GLSL450 requires #spv.vce<v1.0, [Shader], []> { 5 spv.globalVariable @var0 bind(0, 1) : !spv.ptr<f32, Input> 6 spv.func @arithmetic(%arg0 : vector<4xf32>, %arg1 : vector<4xf32>) "None" { 8 %0 = spv.FAdd %arg0, %arg1 : vector<4xf32> 10 %1 = spv.FNegate %arg0 : vector<4xf32> 11 spv.Return 14 spv.func @atomic(%ptr: !spv.ptr<i32, Workgroup>, %value: i32, %comparator: i32) "None" { 16 %1 = spv.AtomicAnd "Device" "None" %ptr, %value : !spv.ptr<i32, Workgroup> 17 spv.Return 20 spv.func @bitwiser(%arg0 : i32, %arg1 : i32) "None" { [all …]
|
/external/llvm-project/mlir/test/Dialect/SPIRV/ |
D | structure-ops.mlir | 4 // spv.mlir.addressof 7 spv.module Logical GLSL450 { 8 spv.globalVariable @var1 : !spv.ptr<!spv.struct<(f32, !spv.array<4xf32>)>, Input> 9 spv.func @access_chain() -> () "None" { 10 %0 = spv.constant 1: i32 11 …// CHECK: [[VAR1:%.*]] = spv.mlir.addressof @var1 : !spv.ptr<!spv.struct<(f32, !spv.array<4 x f32>… 12 …// CHECK-NEXT: spv.AccessChain [[VAR1]][{{.*}}, {{.*}}] : !spv.ptr<!spv.struct<(f32, !spv.array<4 … 13 %1 = spv.mlir.addressof @var1 : !spv.ptr<!spv.struct<(f32, !spv.array<4xf32>)>, Input> 14 … %2 = spv.AccessChain %1[%0, %0] : !spv.ptr<!spv.struct<(f32, !spv.array<4xf32>)>, Input>, i32, i32 15 spv.Return [all …]
|
D | cooperative-matrix.mlir | 4 spv.func @cooperative_matrix_load(%ptr : !spv.ptr<i32, StorageBuffer>, %stride : i32, %b : i1) "Non… 5 …// CHECK: {{%.*}} = spv.CooperativeMatrixLoadNV {{%.*}}, {{%.*}}, {{%.*}} : !spv.ptr<i32, StorageB… 6 …%0 = spv.CooperativeMatrixLoadNV %ptr, %stride, %b : !spv.ptr<i32, StorageBuffer> as !spv.coopmatr… 7 spv.Return 12 spv.func @cooperative_matrix_load_memaccess(%ptr : !spv.ptr<i32, StorageBuffer>, %stride : i32, %b … 13 …// CHECK: {{%.*}} = spv.CooperativeMatrixLoadNV {{%.*}}, {{%.*}}, {{%.*}} ["Volatile"] : !spv.ptr<… 14 …%0 = spv.CooperativeMatrixLoadNV %ptr, %stride, %b ["Volatile"] : !spv.ptr<i32, StorageBuffer> as … 15 spv.Return 19 spv.func @cooperative_matrix_load_diff_ptr_type(%ptr : !spv.ptr<vector<4xi32>, StorageBuffer>, %str… 20 …/ CHECK: {{%.*}} = spv.CooperativeMatrixLoadNV {{%.*}}, {{%.*}}, {{%.*}} ["Volatile"] : !spv.ptr<v… [all …]
|
D | ops.mlir | 4 // spv.AccessChain 8 %0 = spv.constant 1: i32 9 %1 = spv.Variable : !spv.ptr<!spv.struct<(f32, !spv.array<4xf32>)>, Function> 10 …// CHECK: spv.AccessChain {{.*}}[{{.*}}, {{.*}}] : !spv.ptr<!spv.struct<(f32, !spv.array<4 x f32>)… 11 …%2 = spv.AccessChain %1[%0, %0] : !spv.ptr<!spv.struct<(f32, !spv.array<4xf32>)>, Function>, i32, … 16 %0 = spv.Variable : !spv.ptr<!spv.array<4xf32>, Function> 17 // CHECK: spv.AccessChain {{.*}}[{{.*}}] : !spv.ptr<!spv.array<4 x f32>, Function> 18 %1 = spv.AccessChain %0[%arg0] : !spv.ptr<!spv.array<4xf32>, Function>, i32 23 %0 = spv.Variable : !spv.ptr<!spv.array<4x!spv.array<4xf32>>, Function> 24 …// CHECK: spv.AccessChain {{.*}}[{{.*}}, {{.*}}] : !spv.ptr<!spv.array<4 x !spv.array<4 x f32>>, F… [all …]
|
D | canonicalize.mlir | 4 // spv.AccessChain 8 // CHECK: %[[INDEX:.*]] = spv.constant 0 9 // CHECK-NEXT: %[[VAR:.*]] = spv.Variable 10 // CHECK-NEXT: %[[PTR:.*]] = spv.AccessChain %[[VAR]][%[[INDEX]], %[[INDEX]], %[[INDEX]]] 11 // CHECK-NEXT: spv.Load "Function" %[[PTR]] 12 %c0 = spv.constant 0: i32 13 …%0 = spv.Variable : !spv.ptr<!spv.struct<(!spv.array<4x!spv.array<4xf32>>, !spv.array<4xi32>)>, Fu… 14 …%1 = spv.AccessChain %0[%c0] : !spv.ptr<!spv.struct<(!spv.array<4x!spv.array<4xf32>>, !spv.array<4… 15 %2 = spv.AccessChain %1[%c0, %c0] : !spv.ptr<!spv.array<4x!spv.array<4xf32>>, Function>, i32, i32 16 %3 = spv.Load "Function" %2 : f32 [all …]
|
D | control-flow-ops.mlir | 4 // spv.Branch 8 // CHECK: spv.Branch ^bb1 9 spv.Branch ^next 11 spv.Return 17 %zero = spv.constant 0 : i32 18 // CHECK: spv.Branch ^bb1(%{{.*}}, %{{.*}} : i32, i32) 19 spv.Branch ^next(%zero, %zero: i32, i32) 21 spv.Return 28 spv.Branch 34 %true = spv.constant true [all …]
|
D | composite-ops.mlir | 4 // spv.CompositeConstruct 8 // CHECK: spv.CompositeConstruct {{%.*}}, {{%.*}}, {{%.*}} : vector<3xf32> 9 %0 = spv.CompositeConstruct %arg0, %arg1, %arg2 : vector<3xf32> 15 …0: vector<3xf32>, %arg1: !spv.array<4xf32>, %arg2 : !spv.struct<(f32)>) -> !spv.struct<(vector<3xf… 16 …// CHECK: spv.CompositeConstruct %arg0, %arg1, %arg2 : !spv.struct<(vector<3xf32>, !spv.array<4 x … 17 …%0 = spv.CompositeConstruct %arg0, %arg1, %arg2 : !spv.struct<(vector<3xf32>, !spv.array<4xf32>, !… 18 return %0: !spv.struct<(vector<3xf32>, !spv.array<4xf32>, !spv.struct<(f32)>)> 23 func @composite_construct_coopmatrix(%arg0 : f32) -> !spv.coopmatrix<8x16xf32, Subgroup> { 24 // CHECK: spv.CompositeConstruct {{%.*}} : !spv.coopmatrix<8x16xf32, Subgroup> 25 %0 = spv.CompositeConstruct %arg0 : !spv.coopmatrix<8x16xf32, Subgroup> [all …]
|
/external/llvm-project/mlir/test/Dialect/SPIRV/Linking/ModuleCombiner/ |
D | conflict_resolution.mlir | 6 // CHECK-NEXT: spv.module Logical GLSL450 { 7 // CHECK-NEXT: spv.func @foo 8 // CHECK-NEXT: spv.ReturnValue 11 // CHECK-NEXT: spv.func @foo_1 12 // CHECK-NEXT: spv.ReturnValue 18 spv.module Logical GLSL450 { 19 spv.func @foo(%arg0 : i32) -> i32 "None" { 20 spv.ReturnValue %arg0 : i32 24 spv.module Logical GLSL450 { 25 spv.func @foo(%arg0 : f32) -> f32 "None" { [all …]
|
D | deduplication_basic.mlir | 6 // CHECK-NEXT: spv.module Logical GLSL450 { 7 // CHECK-NEXT: spv.globalVariable @foo 9 // CHECK-NEXT: spv.func @use_foo 10 // CHECK-NEXT: spv.mlir.addressof @foo 11 // CHECK-NEXT: spv.Load 12 // CHECK-NEXT: spv.ReturnValue 15 // CHECK-NEXT: spv.func @use_bar 16 // CHECK-NEXT: spv.mlir.addressof @foo 17 // CHECK-NEXT: spv.Load 18 // CHECK-NEXT: spv.FAdd [all …]
|
/external/deqp-deps/glslang/SPIRV/ |
D | SPVRemapper.cpp | 47 namespace spv { namespace 64 const spv::Op opCode = asOpCode(word); in asOpCodeHash() 69 case spv::OpExtInst: in asOpCodeHash() 78 spirvbin_t::range_t spirvbin_t::literalRange(spv::Op opCode) const in literalRange() 83 case spv::OpTypeFloat: // fall through... in literalRange() 84 case spv::OpTypePointer: return range_t(2, 3); in literalRange() 85 case spv::OpTypeInt: return range_t(2, 4); in literalRange() 88 case spv::OpTypeSampler: return range_t(3, 8); in literalRange() 89 case spv::OpTypeVector: // fall through in literalRange() 90 case spv::OpTypeMatrix: // ... in literalRange() [all …]
|
/external/angle/third_party/vulkan-deps/glslang/src/SPIRV/ |
D | SPVRemapper.cpp | 47 namespace spv { namespace 64 const spv::Op opCode = asOpCode(word); in asOpCodeHash() 69 case spv::OpExtInst: in asOpCodeHash() 78 spirvbin_t::range_t spirvbin_t::literalRange(spv::Op opCode) const in literalRange() 83 case spv::OpTypeFloat: // fall through... in literalRange() 84 case spv::OpTypePointer: return range_t(2, 3); in literalRange() 85 case spv::OpTypeInt: return range_t(2, 4); in literalRange() 88 case spv::OpTypeSampler: return range_t(3, 8); in literalRange() 89 case spv::OpTypeVector: // fall through in literalRange() 90 case spv::OpTypeMatrix: // ... in literalRange() [all …]
|
/external/swiftshader/src/Pipeline/ |
D | SpirvShader.cpp | 73 spv::Op opcode = insn.opcode(); 77 case spv::OpEntryPoint: 79 executionModel = spv::ExecutionModel(insn.word(1)); 91 case spv::OpExecutionMode: 95 case spv::OpDecorate: 98 auto decoration = static_cast<spv::Decoration>(insn.word(2)); 105 case spv::DecorationDescriptorSet: 108 case spv::DecorationBinding: 111 case spv::DecorationInputAttachmentIndex: 114 case spv::DecorationSample: [all …]
|