/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | fold_spec_constant_op_and_composite_pass.cpp | 65 if (context()->get_constant_mgr()->GetType(inst) && in Process() 66 !context()->get_constant_mgr()->GetType(inst)->decoration_empty()) in Process() 84 context()->get_constant_mgr()->GetConstantFromInst(inst)) { in Process() 91 context()->get_constant_mgr()->MapConstantToInst(const_value, inst); in Process() 167 if (context()->get_constant_mgr()->FindDeclaredConstant(id) == nullptr) { in FoldWithInstructionFolder() 221 context()->get_constant_mgr()->GetType(inst)->AsVector(); in DoVectorShuffle() 243 context()->get_constant_mgr()->FindDeclaredConstant(operand_id); in DoVectorShuffle() 260 context()->get_constant_mgr()->GetConstant(component_type, {}); in DoVectorShuffle() 276 context()->get_constant_mgr()->BuildInstructionAndAddToModule( in DoVectorShuffle() 292 context()->get_constant_mgr()->RegisterConstant(std::move(new_vec_const)); in DoVectorShuffle() [all …]
|
D | upgrade_memory_model.cpp | 281 context()->get_constant_mgr()->FindDeclaredConstant(semantics_id); in UpgradeSemantics() 292 auto new_constant = context()->get_constant_mgr()->GetConstant(type, {value}); in UpgradeSemantics() 294 context()->get_constant_mgr()->GetDefiningInstruction(new_constant); in UpgradeSemantics() 491 context()->get_constant_mgr()->GetConstantFromInst(index_inst); in GetIndexValue() 575 context()->get_constant_mgr()->GetConstant( in GetScopeConstant() 579 ->get_constant_mgr() in GetScopeConstant() 663 context()->get_constant_mgr()->GetConstant( in UpgradeBarriers() 667 ->get_constant_mgr() in UpgradeBarriers() 701 context()->get_constant_mgr()->FindDeclaredConstant(scope_id); in IsDeviceScope()
|
D | copy_prop_arrays.cpp | 267 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in BuildMemoryObjectFromExtract() 314 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in BuildMemoryObjectFromCompositeConstruct() 368 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in BuildMemoryObjectFromInsert() 485 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in CanUpdateUses() 582 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in UpdateUses() 805 context->get_constant_mgr()->FindDeclaredConstant( in GetNumberOfMembers() 825 variable_inst_->context()->get_constant_mgr(); in GetAccessIds()
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | fold_spec_constant_op_and_composite_pass.cpp | 65 if (context()->get_constant_mgr()->GetType(inst) && in Process() 66 !context()->get_constant_mgr()->GetType(inst)->decoration_empty()) in Process() 84 context()->get_constant_mgr()->GetConstantFromInst(inst)) { in Process() 91 context()->get_constant_mgr()->MapConstantToInst(const_value, inst); in Process() 167 if (context()->get_constant_mgr()->FindDeclaredConstant(id) == nullptr) { in FoldWithInstructionFolder() 221 context()->get_constant_mgr()->GetType(inst)->AsVector(); in DoVectorShuffle() 243 context()->get_constant_mgr()->FindDeclaredConstant(operand_id); in DoVectorShuffle() 260 context()->get_constant_mgr()->GetConstant(component_type, {}); in DoVectorShuffle() 276 context()->get_constant_mgr()->BuildInstructionAndAddToModule( in DoVectorShuffle() 292 context()->get_constant_mgr()->RegisterConstant(std::move(new_vec_const)); in DoVectorShuffle() [all …]
|
D | upgrade_memory_model.cpp | 281 context()->get_constant_mgr()->FindDeclaredConstant(semantics_id); in UpgradeSemantics() 292 auto new_constant = context()->get_constant_mgr()->GetConstant(type, {value}); in UpgradeSemantics() 294 context()->get_constant_mgr()->GetDefiningInstruction(new_constant); in UpgradeSemantics() 491 context()->get_constant_mgr()->GetConstantFromInst(index_inst); in GetIndexValue() 575 context()->get_constant_mgr()->GetConstant( in GetScopeConstant() 579 ->get_constant_mgr() in GetScopeConstant() 663 context()->get_constant_mgr()->GetConstant( in UpgradeBarriers() 667 ->get_constant_mgr() in UpgradeBarriers() 701 context()->get_constant_mgr()->FindDeclaredConstant(scope_id); in IsDeviceScope()
|
D | copy_prop_arrays.cpp | 267 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in BuildMemoryObjectFromExtract() 314 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in BuildMemoryObjectFromCompositeConstruct() 368 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in BuildMemoryObjectFromInsert() 485 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in CanUpdateUses() 582 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in UpdateUses() 805 context->get_constant_mgr()->FindDeclaredConstant( in GetNumberOfMembers() 825 variable_inst_->context()->get_constant_mgr(); in GetAccessIds()
|
D | reduce_load_size.cpp | 58 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in ReplaceExtract() 155 analysis::ConstantManager* const_mgr = context()->get_constant_mgr(); in ShouldReplaceExtract()
|
/external/deqp-deps/SPIRV-Tools/test/opt/ |
D | constant_manager_test.cpp | 46 context->get_constant_mgr()->GetDefiningInstruction(&struct_const_1, 1); in TEST_F() 52 context->get_constant_mgr()->GetDefiningInstruction(&struct_const_2, 2); in TEST_F() 73 context->get_constant_mgr()->GetDefiningInstruction(&struct_const_1, 1); in TEST_F() 80 context->get_constant_mgr()->GetDefiningInstruction(&struct_const_2, 2); in TEST_F() 103 context->get_constant_mgr()->GetDefiningInstruction(&int_constant, 1); in TEST_F()
|
/external/swiftshader/third_party/SPIRV-Tools/test/opt/ |
D | constant_manager_test.cpp | 46 context->get_constant_mgr()->GetDefiningInstruction(&struct_const_1, 1); in TEST_F() 52 context->get_constant_mgr()->GetDefiningInstruction(&struct_const_2, 2); in TEST_F() 73 context->get_constant_mgr()->GetDefiningInstruction(&struct_const_1, 1); in TEST_F() 80 context->get_constant_mgr()->GetDefiningInstruction(&struct_const_2, 2); in TEST_F() 103 context->get_constant_mgr()->GetDefiningInstruction(&int_constant, 1); in TEST_F()
|
/external/deqp-deps/SPIRV-Tools/source/fuzz/ |
D | force_render_red.cpp | 129 auto constant_zero = ir_context->get_constant_mgr()->RegisterConstant( in FindOrCreateFloatZeroAndOne() 131 auto constant_one = ir_context->get_constant_mgr()->RegisterConstant( in FindOrCreateFloatZeroAndOne() 133 auto constant_zero_id = ir_context->get_constant_mgr() in FindOrCreateFloatZeroAndOne() 136 auto constant_one_id = ir_context->get_constant_mgr() in FindOrCreateFloatZeroAndOne() 282 ir_context->get_constant_mgr() in ForceRenderRed() 287 ir_context->get_constant_mgr() in ForceRenderRed() 335 auto constant_false = ir_context->get_constant_mgr()->RegisterConstant( in ForceRenderRed() 337 id_guaranteed_to_be_false = ir_context->get_constant_mgr() in ForceRenderRed()
|
D | transformation_replace_constant_with_uniform.cpp | 63 auto constant_id = ir_context->get_constant_mgr()->FindDeclaredConstant( in MakeAccessChainInstruction() 147 auto declared_constant = ir_context->get_constant_mgr()->FindDeclaredConstant( in IsApplicable() 165 ir_context->get_constant_mgr()->FindDeclaredConstant( in IsApplicable() 219 if (!ir_context->get_constant_mgr()->FindDeclaredConstant(&int_constant, in IsApplicable()
|
D | fuzzer_pass_obfuscate_constants.cpp | 125 ->get_constant_mgr() in ObfuscateBoolConstantViaFloatConstantPair() 129 ->get_constant_mgr() in ObfuscateBoolConstantViaFloatConstantPair() 169 ->get_constant_mgr() in ObfuscateBoolConstantViaSignedIntConstantPair() 174 ->get_constant_mgr() in ObfuscateBoolConstantViaSignedIntConstantPair() 211 ->get_constant_mgr() in ObfuscateBoolConstantViaUnsignedIntConstantPair() 216 ->get_constant_mgr() in ObfuscateBoolConstantViaUnsignedIntConstantPair()
|
D | transformation_record_synonymous_constants.cpp | 81 auto constant1 = ir_context->get_constant_mgr()->GetConstantFromInst(def_1); in AreEquivalentConstants() 82 auto constant2 = ir_context->get_constant_mgr()->GetConstantFromInst(def_2); in AreEquivalentConstants()
|
D | transformation_add_function.cpp | 437 auto registered_zero = ir_context->get_constant_mgr()->FindConstant(&zero); in TryToAddLoopLimiters() 442 uint32_t zero_id = ir_context->get_constant_mgr() in TryToAddLoopLimiters() 449 auto registered_one = ir_context->get_constant_mgr()->FindConstant(&one); in TryToAddLoopLimiters() 454 uint32_t one_id = ir_context->get_constant_mgr() in TryToAddLoopLimiters() 842 if (!ir_context->get_constant_mgr()->FindConstant(&bound_minus_one)) { in TryToClampAccessChainIndices() 855 ir_context->get_constant_mgr() in TryToClampAccessChainIndices()
|
D | transformation_add_loop_to_create_int_constant_synonym.cpp | 58 auto constant = ir_context->get_constant_mgr()->FindDeclaredConstant( in IsApplicable() 60 auto initial_val = ir_context->get_constant_mgr()->FindDeclaredConstant( in IsApplicable() 62 auto step_val = ir_context->get_constant_mgr()->FindDeclaredConstant( in IsApplicable() 114 auto num_iterations = ir_context->get_constant_mgr()->FindDeclaredConstant( in IsApplicable()
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | force_render_red.cpp | 129 auto constant_zero = ir_context->get_constant_mgr()->RegisterConstant( in FindOrCreateFloatZeroAndOne() 131 auto constant_one = ir_context->get_constant_mgr()->RegisterConstant( in FindOrCreateFloatZeroAndOne() 133 auto constant_zero_id = ir_context->get_constant_mgr() in FindOrCreateFloatZeroAndOne() 136 auto constant_one_id = ir_context->get_constant_mgr() in FindOrCreateFloatZeroAndOne() 282 ir_context->get_constant_mgr() in ForceRenderRed() 287 ir_context->get_constant_mgr() in ForceRenderRed() 335 auto constant_false = ir_context->get_constant_mgr()->RegisterConstant( in ForceRenderRed() 337 id_guaranteed_to_be_false = ir_context->get_constant_mgr() in ForceRenderRed()
|
D | transformation_replace_constant_with_uniform.cpp | 63 auto constant_id = ir_context->get_constant_mgr()->FindDeclaredConstant( in MakeAccessChainInstruction() 147 auto declared_constant = ir_context->get_constant_mgr()->FindDeclaredConstant( in IsApplicable() 165 ir_context->get_constant_mgr()->FindDeclaredConstant( in IsApplicable() 219 if (!ir_context->get_constant_mgr()->FindDeclaredConstant(&int_constant, in IsApplicable()
|
D | fuzzer_pass_obfuscate_constants.cpp | 125 ->get_constant_mgr() in ObfuscateBoolConstantViaFloatConstantPair() 129 ->get_constant_mgr() in ObfuscateBoolConstantViaFloatConstantPair() 169 ->get_constant_mgr() in ObfuscateBoolConstantViaSignedIntConstantPair() 174 ->get_constant_mgr() in ObfuscateBoolConstantViaSignedIntConstantPair() 211 ->get_constant_mgr() in ObfuscateBoolConstantViaUnsignedIntConstantPair() 216 ->get_constant_mgr() in ObfuscateBoolConstantViaUnsignedIntConstantPair()
|
D | transformation_record_synonymous_constants.cpp | 81 auto constant1 = ir_context->get_constant_mgr()->GetConstantFromInst(def_1); in AreEquivalentConstants() 82 auto constant2 = ir_context->get_constant_mgr()->GetConstantFromInst(def_2); in AreEquivalentConstants()
|
D | transformation_add_function.cpp | 437 auto registered_zero = ir_context->get_constant_mgr()->FindConstant(&zero); in TryToAddLoopLimiters() 442 uint32_t zero_id = ir_context->get_constant_mgr() in TryToAddLoopLimiters() 449 auto registered_one = ir_context->get_constant_mgr()->FindConstant(&one); in TryToAddLoopLimiters() 454 uint32_t one_id = ir_context->get_constant_mgr() in TryToAddLoopLimiters() 842 if (!ir_context->get_constant_mgr()->FindConstant(&bound_minus_one)) { in TryToClampAccessChainIndices() 855 ir_context->get_constant_mgr() in TryToClampAccessChainIndices()
|
D | transformation_add_loop_to_create_int_constant_synonym.cpp | 58 auto constant = ir_context->get_constant_mgr()->FindDeclaredConstant( in IsApplicable() 60 auto initial_val = ir_context->get_constant_mgr()->FindDeclaredConstant( in IsApplicable() 62 auto step_val = ir_context->get_constant_mgr()->FindDeclaredConstant( in IsApplicable() 114 auto num_iterations = ir_context->get_constant_mgr()->FindDeclaredConstant( in IsApplicable()
|
/external/swiftshader/third_party/SPIRV-Tools/test/fuzz/fact_manager/ |
D | constant_uniform_facts_test.cpp | 433 context->get_constant_mgr() in TEST() 439 ASSERT_EQ(1, context->get_constant_mgr() in TEST() 446 context->get_constant_mgr() in TEST() 454 ASSERT_EQ(10.0, context->get_constant_mgr() in TEST() 458 ASSERT_EQ(20.0, context->get_constant_mgr() in TEST() 787 ASSERT_FALSE(context->get_constant_mgr()->FindConstant(&constant_one)); in TEST() 792 ASSERT_FALSE(context->get_constant_mgr()->FindConstant(&constant_one)); in TEST()
|
/external/deqp-deps/SPIRV-Tools/test/fuzz/fact_manager/ |
D | constant_uniform_facts_test.cpp | 433 context->get_constant_mgr() in TEST() 439 ASSERT_EQ(1, context->get_constant_mgr() in TEST() 446 context->get_constant_mgr() in TEST() 454 ASSERT_EQ(10.0, context->get_constant_mgr() in TEST() 458 ASSERT_EQ(20.0, context->get_constant_mgr() in TEST() 787 ASSERT_FALSE(context->get_constant_mgr()->FindConstant(&constant_one)); in TEST() 792 ASSERT_FALSE(context->get_constant_mgr()->FindConstant(&constant_one)); in TEST()
|
/external/deqp-deps/SPIRV-Tools/source/fuzz/fact_manager/ |
D | constant_uniform_facts.cpp | 37 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId() 45 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId() 50 return ir_context_->get_constant_mgr()->FindDeclaredConstant(known_constant, in GetConstantId()
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/fact_manager/ |
D | constant_uniform_facts.cpp | 37 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId() 45 ir_context_->get_constant_mgr()->FindConstant(&candidate_constant); in GetConstantId() 50 return ir_context_->get_constant_mgr()->FindDeclaredConstant(known_constant, in GetConstantId()
|