/third_party/skia/third_party/externals/tint/src/ast/ |
D | storage_class.cc | 20 const char* ToString(StorageClass sc) { in ToString() 22 case StorageClass::kInvalid: in ToString() 24 case StorageClass::kNone: in ToString() 26 case StorageClass::kInput: in ToString() 28 case StorageClass::kOutput: in ToString() 30 case StorageClass::kUniform: in ToString() 32 case StorageClass::kWorkgroup: in ToString() 34 case StorageClass::kUniformConstant: in ToString() 36 case StorageClass::kStorage: in ToString() 38 case StorageClass::kImage: in ToString() [all …]
|
D | variable_test.cc | 26 auto* v = Var("my_var", ty.i32(), StorageClass::kFunction); in TEST_F() 29 EXPECT_EQ(v->declared_storage_class, StorageClass::kFunction); in TEST_F() 40 "i", ty.f32(), StorageClass::kPrivate, nullptr, DecorationList{}); in TEST_F() 43 EXPECT_EQ(v->declared_storage_class, StorageClass::kPrivate); in TEST_F() 54 "a_var", ty.i32(), StorageClass::kWorkgroup, nullptr, DecorationList{}); in TEST_F() 57 EXPECT_EQ(v->declared_storage_class, StorageClass::kWorkgroup); in TEST_F() 69 b.Var("", b.ty.i32(), StorageClass::kNone); in TEST_F() 79 b1.Var(b2.Sym("x"), b1.ty.f32(), StorageClass::kNone); in TEST_F() 89 b1.Var("x", b1.ty.f32(), StorageClass::kNone, b2.Expr(1.2f)); in TEST_F() 95 auto* var = Var("my_var", ty.i32(), StorageClass::kFunction, nullptr, in TEST_F() [all …]
|
D | storage_class.h | 24 enum class StorageClass { enum 41 inline bool IsHostShareable(StorageClass sc) { in IsHostShareable() 42 return sc == ast::StorageClass::kUniform || sc == ast::StorageClass::kStorage; in IsHostShareable() 47 const char* ToString(StorageClass sc); 52 std::ostream& operator<<(std::ostream& out, StorageClass sc);
|
/third_party/skia/third_party/externals/tint/src/writer/hlsl/ |
D | generator_impl_binary_test.cc | 47 Global("left", ty.f32(), ast::StorageClass::kPrivate); in TEST_P() 48 Global("right", ty.f32(), ast::StorageClass::kPrivate); in TEST_P() 66 Global("left", ty.u32(), ast::StorageClass::kPrivate); in TEST_P() 67 Global("right", ty.u32(), ast::StorageClass::kPrivate); in TEST_P() 91 Global("left", ty.i32(), ast::StorageClass::kPrivate); in TEST_P() 92 Global("right", ty.i32(), ast::StorageClass::kPrivate); in TEST_P() 165 Global("mat", ty.mat3x3<f32>(), ast::StorageClass::kPrivate); in TEST_F() 181 Global("mat", ty.mat3x3<f32>(), ast::StorageClass::kPrivate); in TEST_F() 197 Global("mat", ty.mat3x3<f32>(), ast::StorageClass::kPrivate); in TEST_F() 213 Global("mat", ty.mat3x3<f32>(), ast::StorageClass::kPrivate); in TEST_F() [all …]
|
D | generator_impl_sanitizer_test.cc | 31 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 39 Decl(Var("len", ty.u32(), ast::StorageClass::kNone, in TEST_F() 71 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 79 Decl(Var("len", ty.u32(), ast::StorageClass::kNone, in TEST_F() 108 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 121 Decl(Var("len", ty.u32(), ast::StorageClass::kNone, in TEST_F() 150 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 155 Global("c", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 164 "len", ty.u32(), ast::StorageClass::kNone, in TEST_F() 202 auto* pos = Var("pos", ty.i32(), ast::StorageClass::kNone, array_index); in TEST_F() [all …]
|
D | generator_impl_type_test.cc | 37 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F() 42 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F() 50 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F() 55 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F() 65 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F() 70 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F() 78 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F() 83 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F() 91 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F() 96 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F() [all …]
|
/third_party/skia/third_party/externals/tint/src/writer/glsl/ |
D | generator_impl_binary_test.cc | 47 Global("left", ty.f32(), ast::StorageClass::kPrivate); in TEST_P() 48 Global("right", ty.f32(), ast::StorageClass::kPrivate); in TEST_P() 66 Global("left", ty.u32(), ast::StorageClass::kPrivate); in TEST_P() 67 Global("right", ty.u32(), ast::StorageClass::kPrivate); in TEST_P() 91 Global("left", ty.i32(), ast::StorageClass::kPrivate); in TEST_P() 92 Global("right", ty.i32(), ast::StorageClass::kPrivate); in TEST_P() 165 Global("mat", ty.mat3x3<f32>(), ast::StorageClass::kPrivate); in TEST_F() 181 Global("mat", ty.mat3x3<f32>(), ast::StorageClass::kPrivate); in TEST_F() 197 Global("mat", ty.mat3x3<f32>(), ast::StorageClass::kPrivate); in TEST_F() 213 Global("mat", ty.mat3x3<f32>(), ast::StorageClass::kPrivate); in TEST_F() [all …]
|
D | generator_impl_type_test.cc | 37 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F() 42 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F() 50 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F() 55 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F() 65 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F() 70 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F() 78 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F() 83 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F() 91 Global("G", arr, ast::StorageClass::kPrivate); in TEST_F() 96 ASSERT_TRUE(gen.EmitType(out, program->TypeOf(arr), ast::StorageClass::kNone, in TEST_F() [all …]
|
D | generator_impl_sanitizer_test.cc | 31 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 39 Decl(Var("len", ty.u32(), ast::StorageClass::kNone, in TEST_F() 82 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 90 Decl(Var("len", ty.u32(), ast::StorageClass::kNone, in TEST_F() 131 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 144 Decl(Var("len", ty.u32(), ast::StorageClass::kNone, in TEST_F() 184 auto* pos = Var("pos", ty.i32(), ast::StorageClass::kNone, array_index); in TEST_F() 225 Var("pos", ty.vec3<f32>(), ast::StorageClass::kNone, struct_access); in TEST_F() 269 Const("p", ty.pointer<i32>(ast::StorageClass::kFunction), AddressOf(v)); in TEST_F() 270 auto* x = Var("x", ty.i32(), ast::StorageClass::kNone, Deref(p)); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | struct_storage_class_use_test.cc | 50 UnorderedElementsAre(ast::StorageClass::kNone)); in TEST_F() 63 UnorderedElementsAre(ast::StorageClass::kNone)); in TEST_F() 69 Global("g", ty.Of(s), ast::StorageClass::kPrivate); in TEST_F() 76 UnorderedElementsAre(ast::StorageClass::kPrivate)); in TEST_F() 82 Global("g", ty.Of(a), ast::StorageClass::kPrivate); in TEST_F() 89 UnorderedElementsAre(ast::StorageClass::kPrivate)); in TEST_F() 95 Global("g", ty.Of(o), ast::StorageClass::kPrivate); in TEST_F() 102 UnorderedElementsAre(ast::StorageClass::kPrivate)); in TEST_F() 108 Global("g", a, ast::StorageClass::kPrivate); in TEST_F() 115 UnorderedElementsAre(ast::StorageClass::kPrivate)); in TEST_F() [all …]
|
D | assignment_validation_test.cc | 34 Global(Source{{12, 34}}, "a", ty.Of(s), ast::StorageClass::kStorage, in TEST_F() 55 auto* var = Var("a", ty.i32(), ast::StorageClass::kNone, Expr(2)); in TEST_F() 114 auto* var = Var("a", ty.i32(), ast::StorageClass::kNone, Expr(2)); in TEST_F() 127 auto* var = Var("a", ty.i32(), ast::StorageClass::kNone, Expr(2)); in TEST_F() 144 auto* var = Var("a", ty.i32(), ast::StorageClass::kNone, Expr(2)); in TEST_F() 158 auto* var = Var("my_var", ty.i32(), ast::StorageClass::kNone, Expr(2)); in TEST_F() 168 auto* var = Var("a", ty.i32(), ast::StorageClass::kNone, Expr(2)); in TEST_F() 180 auto* var = Var("a", ty.Of(myint), ast::StorageClass::kNone, Expr(2)); in TEST_F() 191 auto* var_a = Var("a", ty.i32(), ast::StorageClass::kNone, Expr(2)); in TEST_F() 192 auto* var_b = Var("b", ty.i32(), ast::StorageClass::kNone, Expr(3)); in TEST_F() [all …]
|
D | type_validation_test.cc | 67 auto* var = Var("a", ty.i32(), ast::StorageClass::kNone, nullptr); in TEST_F() 91 Global(Source{{12, 34}}, "global_var", ty.f32(), ast::StorageClass::kPrivate); in TEST_F() 100 ast::StorageClass::kPrivate, ast::Access::kUndefined, ty.f32(), true, in TEST_F() 119 Global("global_var0", ty.f32(), ast::StorageClass::kPrivate, Expr(0.1f)); in TEST_F() 121 Global(Source{{12, 34}}, "global_var1", ty.f32(), ast::StorageClass::kPrivate, in TEST_F() 134 auto* var = Var("a", ty.f32(), ast::StorageClass::kNone, Expr(2.0f)); in TEST_F() 138 Global("a", ty.f32(), ast::StorageClass::kPrivate, Expr(2.1f)); in TEST_F() 148 auto* var = Var("a", ty.f32(), ast::StorageClass::kNone, Expr(2.0f)); in TEST_F() 153 auto* var_a_float = Var("a", ty.f32(), ast::StorageClass::kNone, Expr(3.1f)); in TEST_F() 169 auto* var_inner = Var("a", ty.f32(), ast::StorageClass::kNone); in TEST_F() [all …]
|
D | storage_class_validation_test.cc | 30 Global(Source{{12, 34}}, "g", ty.f32(), ast::StorageClass::kNone); in TEST_F() 39 Global(Source{{56, 78}}, "g", ty.i32(), ast::StorageClass::kStorage, in TEST_F() 54 Global(Source{{56, 78}}, "g", ty.vec4<f32>(), ast::StorageClass::kStorage, in TEST_F() 71 Global(Source{{56, 78}}, "g", a, ast::StorageClass::kStorage, in TEST_F() 89 Global(Source{{56, 78}}, "g", ty.Of(a), ast::StorageClass::kStorage, in TEST_F() 105 Global(Source{{56, 78}}, "g", ty.i32(), ast::StorageClass::kPrivate, in TEST_F() 119 Global(Source{{56, 78}}, "g", ty.Of(s), ast::StorageClass::kStorage, in TEST_F() 139 Global(Source{{56, 78}}, "g", ty.Of(s), ast::StorageClass::kStorage, in TEST_F() 157 Global(Source{{56, 78}}, "g", ty.Of(a2), ast::StorageClass::kStorage, in TEST_F() 174 Global(Source{{56, 78}}, "svar", ty.Of(s), ast::StorageClass::kUniform, in TEST_F() [all …]
|
D | ptr_ref_test.cc | 33 auto* v = Var("v", ty.i32(), ast::StorageClass::kNone); in TEST_F() 42 EXPECT_EQ(TypeOf(expr)->As<sem::Pointer>()->StorageClass(), in TEST_F() 43 ast::StorageClass::kFunction); in TEST_F() 50 auto* v = Var("v", ty.i32(), ast::StorageClass::kNone); in TEST_F() 67 auto* private_ = Global("p", ty.i32(), ast::StorageClass::kPrivate); in TEST_F() 68 auto* workgroup = Global("w", ty.i32(), ast::StorageClass::kWorkgroup); in TEST_F() 69 auto* uniform = Global("ub", ty.Of(buf), ast::StorageClass::kUniform, in TEST_F() 74 auto* storage = Global("sb", ty.Of(buf), ast::StorageClass::kStorage, in TEST_F() 81 Const("f_ptr", ty.pointer(ty.i32(), ast::StorageClass::kFunction), in TEST_F() 84 Const("p_ptr", ty.pointer(ty.i32(), ast::StorageClass::kPrivate), in TEST_F() [all …]
|
D | call_validation_test.cc | 84 auto* param = Param("p", ty.pointer<i32>(ast::StorageClass::kFunction)); in TEST_F() 101 auto* param = Param("p", ty.pointer<i32>(ast::StorageClass::kFunction)); in TEST_F() 121 auto* param = Param("p", ty.pointer<i32>(ast::StorageClass::kFunction)); in TEST_F() 144 auto* param = Param("p", ty.pointer<i32>(ast::StorageClass::kFunction)); in TEST_F() 162 Func("foo", {Param("p", ty.pointer<i32>(ast::StorageClass::kFunction))}, in TEST_F() 164 Func("bar", {Param("p", ty.pointer<i32>(ast::StorageClass::kFunction))}, in TEST_F() 180 Func("foo", {Param("p", ty.pointer<i32>(ast::StorageClass::kFunction))}, in TEST_F() 182 Func("bar", {Param("p", ty.pointer<i32>(ast::StorageClass::kFunction))}, in TEST_F() 204 Func("x", {Param("p", ty.pointer<i32>(ast::StorageClass::kFunction))}, in TEST_F() 207 auto* p = Const("p", ty.pointer(ty.i32(), ast::StorageClass::kFunction), in TEST_F() [all …]
|
D | atomics_validation_test.cc | 31 ast::StorageClass::kWorkgroup); in TEST_F() 39 Global("g", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kReadWrite, in TEST_F() 47 ast::StorageClass::kWorkgroup); in TEST_F() 55 ast::StorageClass::kPrivate); in TEST_F() 65 ast::StorageClass::kPrivate); in TEST_F() 76 Global("g", ty.Of(s), ast::StorageClass::kPrivate); in TEST_F() 93 Global("g", ty.Of(Outer), ast::StorageClass::kPrivate); in TEST_F() 111 Global("g", ty.Of(Outer), ast::StorageClass::kPrivate); in TEST_F() 127 ast::StorageClass::kPrivate); in TEST_F() 143 ast::StorageClass::kPrivate); in TEST_F() [all …]
|
D | var_let_validation_test.cc | 69 auto* i = Var("i", ty.i32(), ast::StorageClass::kNone); in TEST_F() 71 Var(Source{{56, 78}}, "a", ty.pointer<i32>(ast::StorageClass::kFunction), in TEST_F() 72 ast::StorageClass::kNone, AddressOf(Source{{12, 34}}, "i")); in TEST_F() 108 Var(Source{{3, 3}}, "v", ty.i32(), ast::StorageClass::kNone, Expr(2u))); in TEST_F() 129 Var(Source{{3, 3}}, "v", ty.Of(a), ast::StorageClass::kNone, Expr(2u))); in TEST_F() 140 const auto priv = ast::StorageClass::kFunction; in TEST_F() 173 Global("v", ty.f32(), ast::StorageClass::kPrivate, Expr(2.1f)); in TEST_F() 175 WrapInFunction(Var(Source{{12, 34}}, "v", ty.f32(), ast::StorageClass::kNone, in TEST_F() 186 auto* var_outer = Var("v", ty.f32(), ast::StorageClass::kNone); in TEST_F() 188 Var(Source{{12, 34}}, "v", ty.f32(), ast::StorageClass::kNone); in TEST_F() [all …]
|
D | storage_class_layout_validation_test.cc | 42 Global(Source{{78, 90}}, "a", ty.type_name("S"), ast::StorageClass::kStorage, in TEST_F() 73 Global(Source{{78, 90}}, "a", ty.type_name("S"), ast::StorageClass::kStorage, in TEST_F() 105 ast::StorageClass::kUniform, GroupAndBinding(0, 0)); in TEST_F() 149 ast::StorageClass::kUniform, GroupAndBinding(0, 0)); in TEST_F() 177 ast::StorageClass::kUniform, GroupAndBinding(0, 0)); in TEST_F() 214 ast::StorageClass::kUniform, GroupAndBinding(0, 0)); in TEST_F() 247 ast::StorageClass::kUniform, GroupAndBinding(0, 0)); in TEST_F() 292 ast::StorageClass::kUniform, GroupAndBinding(0, 0)); in TEST_F() 317 ast::StorageClass::kUniform, GroupAndBinding(0, 0)); in TEST_F() 346 ast::StorageClass::kUniform, GroupAndBinding(0, 0)); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/ |
D | MCSymbolXCOFF.h | 27 void setStorageClass(XCOFF::StorageClass SC) { in setStorageClass() 28 assert((!StorageClass.hasValue() || StorageClass.getValue() == SC) && in setStorageClass() 30 StorageClass = SC; in setStorageClass() 33 XCOFF::StorageClass getStorageClass() const { in getStorageClass() 34 assert(StorageClass.hasValue() && in getStorageClass() 36 return StorageClass.getValue(); in getStorageClass() 66 Optional<XCOFF::StorageClass> StorageClass;
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | parser_impl_variable_qualifier_test.cc | 24 ast::StorageClass storage_class; 53 VariableStorageData{"uniform", ast::StorageClass::kUniform, 55 VariableStorageData{"workgroup", ast::StorageClass::kWorkgroup, 57 VariableStorageData{"storage", ast::StorageClass::kStorage, 59 VariableStorageData{"storage_buffer", ast::StorageClass::kStorage, 61 VariableStorageData{"image", ast::StorageClass::kImage, 63 VariableStorageData{"private", ast::StorageClass::kPrivate, 65 VariableStorageData{"function", ast::StorageClass::kFunction, 67 VariableStorageData{"storage, read", ast::StorageClass::kStorage, 69 VariableStorageData{"storage, write", ast::StorageClass::kStorage, [all …]
|
D | parser_impl_storage_class_test.cc | 24 ast::StorageClass result; 49 StorageClassData{"uniform", ast::StorageClass::kUniform}, 50 StorageClassData{"workgroup", ast::StorageClass::kWorkgroup}, 51 StorageClassData{"storage", ast::StorageClass::kStorage}, 52 StorageClassData{"storage_buffer", ast::StorageClass::kStorage}, 53 StorageClassData{"image", ast::StorageClass::kImage}, 54 StorageClassData{"private", ast::StorageClass::kPrivate}, 55 StorageClassData{"function", ast::StorageClass::kFunction}));
|
/third_party/skia/third_party/externals/tint/src/writer/spirv/ |
D | builder_global_variable_test.cc | 29 auto* v = Global("var", ty.f32(), ast::StorageClass::kPrivate); in TEST_F() 46 auto* v = Global("var", ty.vec3<f32>(), ast::StorageClass::kPrivate, init); in TEST_F() 132 ast::StorageClass::kNone, nullptr, in TEST_F() 324 ast::StorageClass storage; 343 BuiltinData{ast::Builtin::kNone, ast::StorageClass::kNone, 345 BuiltinData{ast::Builtin::kPosition, ast::StorageClass::kInput, 347 BuiltinData{ast::Builtin::kPosition, ast::StorageClass::kOutput, 351 ast::StorageClass::kInput, 354 BuiltinData{ast::Builtin::kInstanceIndex, ast::StorageClass::kInput, 356 BuiltinData{ast::Builtin::kFrontFacing, ast::StorageClass::kInput, [all …]
|
/third_party/skia/third_party/externals/tint/src/reader/spirv/ |
D | enum_converter.cc | 41 ast::StorageClass EnumConverter::ToStorageClass(const SpvStorageClass sc) { in ToStorageClass() 44 return ast::StorageClass::kInput; in ToStorageClass() 46 return ast::StorageClass::kOutput; in ToStorageClass() 48 return ast::StorageClass::kUniform; in ToStorageClass() 50 return ast::StorageClass::kWorkgroup; in ToStorageClass() 52 return ast::StorageClass::kNone; in ToStorageClass() 54 return ast::StorageClass::kStorage; in ToStorageClass() 56 return ast::StorageClass::kImage; in ToStorageClass() 58 return ast::StorageClass::kPrivate; in ToStorageClass() 60 return ast::StorageClass::kFunction; in ToStorageClass() [all …]
|
/third_party/skia/third_party/externals/tint/src/transform/ |
D | module_scope_var_to_entry_point_param.cc | 102 if (var->StorageClass() != ast::StorageClass::kNone) { in Process() 159 auto sc = var->StorageClass(); in Process() 160 if (sc == ast::StorageClass::kNone) { in Process() 163 if (sc != ast::StorageClass::kPrivate && in Process() 164 sc != ast::StorageClass::kStorage && in Process() 165 sc != ast::StorageClass::kUniform && in Process() 166 sc != ast::StorageClass::kUniformConstant && in Process() 167 sc != ast::StorageClass::kWorkgroup) { in Process() 194 } else if (sc == ast::StorageClass::kStorage || in Process() 195 sc == ast::StorageClass::kUniform) { in Process() [all …]
|
/third_party/skia/third_party/externals/tint/src/writer/msl/ |
D | generator_impl_sanitizer_test.cc | 34 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 42 Decl(Var("len", ty.u32(), ast::StorageClass::kNone, in TEST_F() 80 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 88 Decl(Var("len", ty.u32(), ast::StorageClass::kNone, in TEST_F() 124 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 137 Decl(Var("len", ty.u32(), ast::StorageClass::kNone, in TEST_F() 172 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 177 Global("c", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() 186 "len", ty.u32(), ast::StorageClass::kNone, in TEST_F() 228 Global("b", ty.Of(s), ast::StorageClass::kStorage, ast::Access::kRead, in TEST_F() [all …]
|