/third_party/flutter/skia/third_party/externals/spirv-tools/test/opt/ |
D | type_manager_test.cpp | 99 EXPECT_EQ(p.second, manager.GetType(p.first)->str()); in TEST() 100 EXPECT_EQ(p.first, manager.GetId(manager.GetType(p.first))); in TEST() 128 ASSERT_EQ("uint32", manager.GetType(5)->str()); in TEST() 129 ASSERT_EQ("float32", manager.GetType(6)->str()); in TEST() 136 EXPECT_TRUE(manager.GetType(id1)->IsSame(manager.GetType(id2))) in TEST() 140 EXPECT_FALSE(manager.GetType(id1)->IsSame(manager.GetType(id2))) in TEST() 178 ASSERT_EQ("uint32", manager.GetType(8)->str()); in TEST() 179 ASSERT_EQ("float32", manager.GetType(9)->str()); in TEST() 186 EXPECT_TRUE(manager.GetType(id1)->IsSame(manager.GetType(id2))) in TEST() 190 EXPECT_FALSE(manager.GetType(id1)->IsSame(manager.GetType(id2))) in TEST() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | scalar_analysis_simplification.cpp | 155 multiply->GetType() != SENode::Multiply) in AccumulatorsFromMultiply() 165 if (operand_1->GetType() == SENode::ValueUnknown || in AccumulatorsFromMultiply() 166 operand_1->GetType() == SENode::RecurrentAddExpr) in AccumulatorsFromMultiply() 168 else if (operand_2->GetType() == SENode::ValueUnknown || in AccumulatorsFromMultiply() 169 operand_2->GetType() == SENode::RecurrentAddExpr) in AccumulatorsFromMultiply() 173 if (operand_1->GetType() == SENode::Constant) in AccumulatorsFromMultiply() 175 else if (operand_2->GetType() == SENode::Constant) in AccumulatorsFromMultiply() 201 if (node_->GetType() != SENode::Add && node_->GetType() != SENode::Multiply && in Simplify() 202 node_->GetType() != SENode::Negative) in Simplify() 220 if (child->GetType() == SENode::RecurrentAddExpr) { in Simplify() [all …]
|
D | scalar_analysis_nodes.h | 60 virtual SENodeType GetType() const = 0; 171 bool IsCantCompute() const { return GetType() == CanNotCompute; } in IsCantCompute() 220 SENodeType GetType() const final { return Constant; } in GetType() function 246 SENodeType GetType() const final { return RecurrentAddExpr; } in GetType() function 282 SENodeType GetType() const final { return Add; } in GetType() function 294 SENodeType GetType() const final { return Multiply; } in GetType() function 306 SENodeType GetType() const final { return Negative; } in GetType() function 322 SENodeType GetType() const final { return ValueUnknown; } in GetType() function 339 SENodeType GetType() const final { return CanNotCompute; } in GetType() function
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | scalar_analysis_simplification.cpp | 155 multiply->GetType() != SENode::Multiply) in AccumulatorsFromMultiply() 165 if (operand_1->GetType() == SENode::ValueUnknown || in AccumulatorsFromMultiply() 166 operand_1->GetType() == SENode::RecurrentAddExpr) in AccumulatorsFromMultiply() 168 else if (operand_2->GetType() == SENode::ValueUnknown || in AccumulatorsFromMultiply() 169 operand_2->GetType() == SENode::RecurrentAddExpr) in AccumulatorsFromMultiply() 173 if (operand_1->GetType() == SENode::Constant) in AccumulatorsFromMultiply() 175 else if (operand_2->GetType() == SENode::Constant) in AccumulatorsFromMultiply() 201 if (node_->GetType() != SENode::Add && node_->GetType() != SENode::Multiply && in Simplify() 202 node_->GetType() != SENode::Negative) in Simplify() 220 if (child->GetType() == SENode::RecurrentAddExpr) { in Simplify() [all …]
|
D | scalar_analysis_nodes.h | 60 virtual SENodeType GetType() const = 0; 171 bool IsCantCompute() const { return GetType() == CanNotCompute; } in IsCantCompute() 220 SENodeType GetType() const final { return Constant; } in GetType() function 246 SENodeType GetType() const final { return RecurrentAddExpr; } in GetType() function 282 SENodeType GetType() const final { return Add; } in GetType() function 294 SENodeType GetType() const final { return Multiply; } in GetType() function 306 SENodeType GetType() const final { return Negative; } in GetType() function 322 SENodeType GetType() const final { return ValueUnknown; } in GetType() function 339 SENodeType GetType() const final { return CanNotCompute; } in GetType() function
|
/third_party/cef/tests/ceftests/ |
D | xml_reader_unittest.cc | 49 ASSERT_EQ(reader->GetType(), XML_NODE_PROCESSING_INSTRUCTION); in TEST() 58 ASSERT_EQ(reader->GetType(), XML_NODE_DOCUMENT_TYPE); in TEST() 66 ASSERT_EQ(reader->GetType(), XML_NODE_ELEMENT_START); in TEST() 80 ASSERT_EQ(reader->GetType(), XML_NODE_WHITESPACE); in TEST() 85 ASSERT_EQ(reader->GetType(), XML_NODE_ELEMENT_START); in TEST() 97 ASSERT_EQ(reader->GetType(), XML_NODE_TEXT); in TEST() 106 ASSERT_EQ(reader->GetType(), XML_NODE_ELEMENT_END); in TEST() 118 ASSERT_EQ(reader->GetType(), XML_NODE_WHITESPACE); in TEST() 123 ASSERT_EQ(reader->GetType(), XML_NODE_COMMENT); in TEST() 131 ASSERT_EQ(reader->GetType(), XML_NODE_WHITESPACE); in TEST() [all …]
|
D | values_unittest.cc | 104 EXPECT_EQ(VTYPE_NULL, value->GetType(kNullKey)); in TestDictionaryNull() 112 EXPECT_EQ(VTYPE_BOOL, value->GetType(kBoolKey)); in TestDictionaryBool() 121 EXPECT_EQ(VTYPE_INT, value->GetType(kIntKey)); in TestDictionaryInt() 130 EXPECT_EQ(VTYPE_DOUBLE, value->GetType(kDoubleKey)); in TestDictionaryDouble() 139 EXPECT_EQ(VTYPE_STRING, value->GetType(kStringKey)); in TestDictionaryString() 156 EXPECT_EQ(VTYPE_BINARY, value->GetType(kBinaryKey)); in TestDictionaryBinary() 178 EXPECT_EQ(VTYPE_DICTIONARY, value->GetType(kDictionaryKey)); in TestDictionaryDictionary() 202 EXPECT_EQ(VTYPE_LIST, value->GetType(kListKey)); in TestDictionaryList() 310 CefValueType type = value->GetType(index); in TestListNull() 314 EXPECT_EQ(VTYPE_NULL, value->GetType(index)); in TestListNull() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/test/opt/ |
D | type_manager_test.cpp | 268 ASSERT_NE(nullptr, manager.GetType(p.first)); in TEST() 269 EXPECT_EQ(p.second, manager.GetType(p.first)->str()) in TEST() 271 EXPECT_EQ(p.first, manager.GetId(manager.GetType(p.first))); in TEST() 304 Type* p100 = manager.GetType(100); in TEST() 305 Type* s150 = manager.GetType(150); in TEST() 348 Type* p100 = manager.GetType(100); in TEST() 349 Type* s150 = manager.GetType(150); in TEST() 350 Type* p200 = manager.GetType(200); in TEST() 351 Type* s250 = manager.GetType(250); in TEST() 398 EXPECT_EQ(manager.GetType(100), manager.GetType(200)); in TEST() [all …]
|
D | scalar_analysis.cpp | 133 EXPECT_EQ(node->GetType(), SENode::Add); in TEST_F() 136 EXPECT_TRUE(child_1->GetType() == SENode::Constant || in TEST_F() 137 child_1->GetType() == SENode::RecurrentAddExpr); in TEST_F() 140 EXPECT_TRUE(child_2->GetType() == SENode::Constant || in TEST_F() 141 child_2->GetType() == SENode::RecurrentAddExpr); in TEST_F() 145 EXPECT_EQ(simplified->GetType(), SENode::RecurrentAddExpr); in TEST_F() 147 EXPECT_EQ(simplified->GetChild(0)->GetType(), SENode::Constant); in TEST_F() 151 EXPECT_EQ(simplified->GetChild(1)->GetType(), SENode::Constant); in TEST_F() 259 EXPECT_EQ(node->GetType(), SENode::Add); in TEST_F() 262 EXPECT_TRUE(child_1->GetType() == SENode::ValueUnknown || in TEST_F() [all …]
|
D | constant_manager_test.cpp | 43 Type* struct_type_1 = context->get_type_mgr()->GetType(1); in TEST_F() 49 Type* struct_type_2 = context->get_type_mgr()->GetType(2); in TEST_F() 70 Type* struct_type_1 = context->get_type_mgr()->GetType(1); in TEST_F() 77 Type* struct_type_2 = context->get_type_mgr()->GetType(2); in TEST_F() 100 Type* int_type = context->get_type_mgr()->GetType(1); in TEST_F()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
D | type_manager_test.cpp | 268 ASSERT_NE(nullptr, manager.GetType(p.first)); in TEST() 269 EXPECT_EQ(p.second, manager.GetType(p.first)->str()) in TEST() 271 EXPECT_EQ(p.first, manager.GetId(manager.GetType(p.first))); in TEST() 304 Type* p100 = manager.GetType(100); in TEST() 305 Type* s150 = manager.GetType(150); in TEST() 348 Type* p100 = manager.GetType(100); in TEST() 349 Type* s150 = manager.GetType(150); in TEST() 350 Type* p200 = manager.GetType(200); in TEST() 351 Type* s250 = manager.GetType(250); in TEST() 398 EXPECT_EQ(manager.GetType(100), manager.GetType(200)); in TEST() [all …]
|
D | scalar_analysis.cpp | 133 EXPECT_EQ(node->GetType(), SENode::Add); in TEST_F() 136 EXPECT_TRUE(child_1->GetType() == SENode::Constant || in TEST_F() 137 child_1->GetType() == SENode::RecurrentAddExpr); in TEST_F() 140 EXPECT_TRUE(child_2->GetType() == SENode::Constant || in TEST_F() 141 child_2->GetType() == SENode::RecurrentAddExpr); in TEST_F() 145 EXPECT_EQ(simplified->GetType(), SENode::RecurrentAddExpr); in TEST_F() 147 EXPECT_EQ(simplified->GetChild(0)->GetType(), SENode::Constant); in TEST_F() 151 EXPECT_EQ(simplified->GetChild(1)->GetType(), SENode::Constant); in TEST_F() 259 EXPECT_EQ(node->GetType(), SENode::Add); in TEST_F() 262 EXPECT_TRUE(child_1->GetType() == SENode::ValueUnknown || in TEST_F() [all …]
|
D | constant_manager_test.cpp | 43 Type* struct_type_1 = context->get_type_mgr()->GetType(1); in TEST_F() 49 Type* struct_type_2 = context->get_type_mgr()->GetType(2); in TEST_F() 70 Type* struct_type_1 = context->get_type_mgr()->GetType(1); in TEST_F() 77 Type* struct_type_2 = context->get_type_mgr()->GetType(2); in TEST_F() 100 Type* int_type = context->get_type_mgr()->GetType(1); in TEST_F()
|
/third_party/skia/modules/particles/include/ |
D | SkReflected.h | 67 static const Type* GetType() { in GetType() function 107 static const Type* GetType() { \ 108 static Type gType{ #TYPE, BASE::GetType(), CreateProc }; \ 112 const Type* getType() const override { return GetType(); } 115 static const Type* GetType() { \ 116 static Type gType{ #TYPE, BASE::GetType(), nullptr }; \ 120 const Type* getType() const override { return GetType(); } 122 #define REGISTER_REFLECTED(TYPE) TYPE::GetType() 177 this->visit(newObj, T::GetType()); in visit() 179 if (!newObj || newObj->isOfType(T::GetType())) { in visit()
|
/third_party/flutter/skia/third_party/externals/spirv-tools/source/opt/ |
D | type_manager.cpp | 26 Type* TypeManager::GetType(uint32_t id) const { in GetType() function in spvtools::opt::analysis::TypeManager 68 type = new Vector(GetType(inst.GetSingleWordInOperand(0)), in RecordIfTypeDefinition() 72 type = new Matrix(GetType(inst.GetSingleWordInOperand(0)), in RecordIfTypeDefinition() 81 GetType(inst.GetSingleWordInOperand(0)), in RecordIfTypeDefinition() 91 type = new SampledImage(GetType(inst.GetSingleWordInOperand(0))); in RecordIfTypeDefinition() 94 type = new Array(GetType(inst.GetSingleWordInOperand(0)), in RecordIfTypeDefinition() 98 type = new RuntimeArray(GetType(inst.GetSingleWordInOperand(0))); in RecordIfTypeDefinition() 103 element_types.push_back(GetType(inst.GetSingleWordInOperand(i))); in RecordIfTypeDefinition() 113 GetType(inst.GetSingleWordInOperand(1)), in RecordIfTypeDefinition() 126 Type* return_type = GetType(inst.GetSingleWordInOperand(0)); in RecordIfTypeDefinition() [all …]
|
/third_party/flutter/skia/modules/particles/include/ |
D | SkReflected.h | 67 static const Type* GetType() { in GetType() function 107 static const Type* GetType() { \ 108 static Type gType{ #TYPE, BASE::GetType(), CreateProc }; \ 112 const Type* getType() const override { return GetType(); } 115 static const Type* GetType() { \ 116 static Type gType{ #TYPE, BASE::GetType(), nullptr }; \ 120 const Type* getType() const override { return GetType(); } 122 #define REGISTER_REFLECTED(TYPE) TYPE::GetType() 199 this->visit(newObj, T::GetType()); in visit() 201 if (!newObj || newObj->isOfType(T::GetType())) { in visit()
|
/third_party/flutter/engine/flutter/flow/ |
D | mutators_stack_unittests.cc | 31 ASSERT_TRUE(iter->get()->GetType() == MutatorType::clip_rect); in TEST() 40 ASSERT_TRUE(iter->get()->GetType() == MutatorType::clip_rrect); in TEST() 49 ASSERT_TRUE(iter->get()->GetType() == flutter::MutatorType::clip_path); in TEST() 59 ASSERT_TRUE(iter->get()->GetType() == MutatorType::transform); in TEST() 68 ASSERT_TRUE(iter->get()->GetType() == MutatorType::opacity); in TEST() 96 ASSERT_TRUE(iter->get()->GetType() == MutatorType::clip_rrect); in TEST() 100 ASSERT_TRUE(iter->get()->GetType() == MutatorType::clip_rect); in TEST() 104 ASSERT_TRUE(iter->get()->GetType() == MutatorType::transform); in TEST() 146 ASSERT_TRUE(mutator.GetType() == MutatorType::clip_rect); in TEST() 151 ASSERT_TRUE(mutator2.GetType() == MutatorType::clip_rrect); in TEST() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
D | transformation_replace_linear_algebra_instruction.cpp | 122 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount() 126 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount() 138 ->GetType(ir_context->get_def_use_mgr() in GetRequiredFreshIdCount() 150 ir_context->get_type_mgr()->GetType(matrix_instruction->type_id()); in GetRequiredFreshIdCount() 168 ->GetType(vector_instruction->type_id()) in GetRequiredFreshIdCount() 173 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount() 188 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount() 192 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount() 210 ->GetType(matrix_1_instruction->type_id()) in GetRequiredFreshIdCount() 215 ->GetType(matrix_1_instruction->type_id()) in GetRequiredFreshIdCount() [all …]
|
D | transformation_add_bit_instruction_synonym.cpp | 53 ->GetType(instruction->type_id()) in IsApplicable() 118 if (ir_context->get_type_mgr()->GetType(instruction->type_id())->AsVector()) { in IsInstructionSupported() 126 ir_context->get_type_mgr()->GetType(operand_inst->type_id()); in IsInstructionSupported() 130 ->GetType(instruction->type_id()) in IsInstructionSupported() 142 ir_context->get_type_mgr()->GetType(first_operand_inst->type_id()); in IsInstructionSupported() 149 ir_context->get_type_mgr()->GetType(second_operand_inst->type_id()); in IsInstructionSupported() 153 ->GetType(instruction->type_id()) in IsInstructionSupported() 180 ->GetType(bit_instruction->type_id()) in GetRequiredFreshIdCount() 198 ->GetType(bit_instruction->type_id()) in AddOpBitwiseOrOpNotSynonym()
|
D | fuzzer_pass_add_equation_instructions.cpp | 102 GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in Apply() 124 GetIRContext()->get_type_mgr()->GetType(operand->type_id()); in Apply() 156 GetIRContext()->get_type_mgr()->GetType( in Apply() 218 GetIRContext()->get_type_mgr()->GetType(lhs->type_id()); in Apply() 302 auto type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in GetIntegerInstructions() 316 auto type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in GetFloatInstructions() 330 auto type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in GetBooleanInstructions() 345 auto type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in RestrictToVectorWidth() 365 GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in RestrictToElementBitWidth() 386 const auto* type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in GetNumericalInstructions()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | transformation_replace_linear_algebra_instruction.cpp | 122 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount() 126 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount() 138 ->GetType(ir_context->get_def_use_mgr() in GetRequiredFreshIdCount() 150 ir_context->get_type_mgr()->GetType(matrix_instruction->type_id()); in GetRequiredFreshIdCount() 168 ->GetType(vector_instruction->type_id()) in GetRequiredFreshIdCount() 173 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount() 188 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount() 192 ->GetType(matrix_instruction->type_id()) in GetRequiredFreshIdCount() 210 ->GetType(matrix_1_instruction->type_id()) in GetRequiredFreshIdCount() 215 ->GetType(matrix_1_instruction->type_id()) in GetRequiredFreshIdCount() [all …]
|
D | transformation_add_bit_instruction_synonym.cpp | 53 ->GetType(instruction->type_id()) in IsApplicable() 118 if (ir_context->get_type_mgr()->GetType(instruction->type_id())->AsVector()) { in IsInstructionSupported() 126 ir_context->get_type_mgr()->GetType(operand_inst->type_id()); in IsInstructionSupported() 130 ->GetType(instruction->type_id()) in IsInstructionSupported() 142 ir_context->get_type_mgr()->GetType(first_operand_inst->type_id()); in IsInstructionSupported() 149 ir_context->get_type_mgr()->GetType(second_operand_inst->type_id()); in IsInstructionSupported() 153 ->GetType(instruction->type_id()) in IsInstructionSupported() 180 ->GetType(bit_instruction->type_id()) in GetRequiredFreshIdCount() 198 ->GetType(bit_instruction->type_id()) in AddOpBitwiseOrOpNotSynonym()
|
D | fuzzer_pass_add_equation_instructions.cpp | 102 GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in Apply() 124 GetIRContext()->get_type_mgr()->GetType(operand->type_id()); in Apply() 156 GetIRContext()->get_type_mgr()->GetType( in Apply() 218 GetIRContext()->get_type_mgr()->GetType(lhs->type_id()); in Apply() 302 auto type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in GetIntegerInstructions() 316 auto type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in GetFloatInstructions() 330 auto type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in GetBooleanInstructions() 345 auto type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in RestrictToVectorWidth() 365 GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in RestrictToElementBitWidth() 386 const auto* type = GetIRContext()->get_type_mgr()->GetType(inst->type_id()); in GetNumericalInstructions()
|
/third_party/skia/third_party/externals/spirv-tools/test/fuzz/ |
D | transformation_add_type_float_test.cpp | 121 ASSERT_EQ(nullptr, context->get_type_mgr()->GetType(6)); in TEST() 124 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(6)->AsFloat()); in TEST() 129 ASSERT_EQ(nullptr, context->get_type_mgr()->GetType(7)); in TEST() 132 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(7)->AsFloat()); in TEST() 137 ASSERT_EQ(nullptr, context->get_type_mgr()->GetType(8)); in TEST() 140 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(8)->AsFloat()); in TEST()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzz/ |
D | transformation_add_type_float_test.cpp | 121 ASSERT_EQ(nullptr, context->get_type_mgr()->GetType(6)); in TEST() 124 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(6)->AsFloat()); in TEST() 129 ASSERT_EQ(nullptr, context->get_type_mgr()->GetType(7)); in TEST() 132 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(7)->AsFloat()); in TEST() 137 ASSERT_EQ(nullptr, context->get_type_mgr()->GetType(8)); in TEST() 140 ASSERT_NE(nullptr, context->get_type_mgr()->GetType(8)->AsFloat()); in TEST()
|