Home
last modified time | relevance | path

Searched refs:synonym_type (Results 1 - 12 of 12) sorted by relevance

/third_party/skia/third_party/externals/spirv-tools/source/fuzz/
H A Dtransformation_add_synonym.cpp31 protobufs::TransformationAddSynonym::SynonymType synonym_type, in TransformationAddSynonym()
35 message_.set_synonym_type(synonym_type); in TransformationAddSynonym()
44 message_.synonym_type()) && in IsApplicable()
58 // Check that we can apply |synonym_type| to |result_id|. in IsApplicable()
60 message_.synonym_type())) { in IsApplicable()
91 if (IsAdditionalConstantRequired(message_.synonym_type()) && in IsApplicable()
146 protobufs::TransformationAddSynonym::SynonymType synonym_type) { in IsInstructionValid()
159 switch (synonym_type) { in IsInstructionValid()
212 const auto* synonym_type = in MakeSynonymousInstruction() local
214 assert(synonym_type in MakeSynonymousInstruction()
29 TransformationAddSynonym( uint32_t result_id, protobufs::TransformationAddSynonym::SynonymType synonym_type, uint32_t synonym_fresh_id, const protobufs::InstructionDescriptor& insert_before) TransformationAddSynonym() argument
143 IsInstructionValid( opt::IRContext* ir_context, const TransformationContext& transformation_context, opt::Instruction* inst, protobufs::TransformationAddSynonym::SynonymType synonym_type) IsInstructionValid() argument
283 auto synonym_type = ir_context->get_type_mgr()->GetType(synonym_type_id); MaybeGetConstantId() local
317 IsAdditionalConstantRequired( protobufs::TransformationAddSynonym::SynonymType synonym_type) IsAdditionalConstantRequired() argument
[all...]
H A Dfuzzer_pass_add_synonyms.cpp56 auto synonym_type = GetFuzzerContext()->GetRandomSynonymType(); in Apply()
61 [synonym_type, this](opt::IRContext* ir_context, in Apply()
64 // the |synonym_type| and insert it before |inst_it|. in Apply()
66 ir_context, *GetTransformationContext(), inst, synonym_type); in Apply()
79 switch (synonym_type) { in Apply()
121 synonym_type) && in Apply()
122 "|synonym_type| requires an additional constant to be present " in Apply()
128 existing_synonym->result_id(), synonym_type, in Apply()
H A Dtransformation_add_synonym.h33 protobufs::TransformationAddSynonym::SynonymType synonym_type,
39 // - |synonym_type| is a type of the synonymous instruction that will be
49 // Creates a new synonymous instruction according to the |synonym_type| with
61 // |synonym_type|.
66 protobufs::TransformationAddSynonym::SynonymType synonym_type);
68 // Returns true if |synonym_type| requires an additional constant instruction
71 protobufs::TransformationAddSynonym::SynonymType synonym_type);
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/
H A Dtransformation_add_synonym.cpp31 protobufs::TransformationAddSynonym::SynonymType synonym_type, in TransformationAddSynonym()
35 message_.set_synonym_type(synonym_type); in TransformationAddSynonym()
44 message_.synonym_type()) && in IsApplicable()
58 // Check that we can apply |synonym_type| to |result_id|. in IsApplicable()
60 message_.synonym_type())) { in IsApplicable()
91 if (IsAdditionalConstantRequired(message_.synonym_type()) && in IsApplicable()
146 protobufs::TransformationAddSynonym::SynonymType synonym_type) { in IsInstructionValid()
159 switch (synonym_type) { in IsInstructionValid()
212 const auto* synonym_type = in MakeSynonymousInstruction() local
214 assert(synonym_type in MakeSynonymousInstruction()
29 TransformationAddSynonym( uint32_t result_id, protobufs::TransformationAddSynonym::SynonymType synonym_type, uint32_t synonym_fresh_id, const protobufs::InstructionDescriptor& insert_before) TransformationAddSynonym() argument
143 IsInstructionValid( opt::IRContext* ir_context, const TransformationContext& transformation_context, opt::Instruction* inst, protobufs::TransformationAddSynonym::SynonymType synonym_type) IsInstructionValid() argument
283 auto synonym_type = ir_context->get_type_mgr()->GetType(synonym_type_id); MaybeGetConstantId() local
317 IsAdditionalConstantRequired( protobufs::TransformationAddSynonym::SynonymType synonym_type) IsAdditionalConstantRequired() argument
[all...]
H A Dfuzzer_pass_add_synonyms.cpp56 auto synonym_type = GetFuzzerContext()->GetRandomSynonymType(); in Apply()
61 [synonym_type, this](opt::IRContext* ir_context, in Apply()
64 // the |synonym_type| and insert it before |inst_it|. in Apply()
66 ir_context, *GetTransformationContext(), inst, synonym_type); in Apply()
79 switch (synonym_type) { in Apply()
121 synonym_type) && in Apply()
122 "|synonym_type| requires an additional constant to be present " in Apply()
128 existing_synonym->result_id(), synonym_type, in Apply()
H A Dtransformation_add_synonym.h33 protobufs::TransformationAddSynonym::SynonymType synonym_type,
39 // - |synonym_type| is a type of the synonymous instruction that will be
49 // Creates a new synonymous instruction according to the |synonym_type| with
61 // |synonym_type|.
66 protobufs::TransformationAddSynonym::SynonymType synonym_type);
68 // Returns true if |synonym_type| requires an additional constant instruction
71 protobufs::TransformationAddSynonym::SynonymType synonym_type);
/third_party/spirv-tools/source/fuzz/
H A Dtransformation_add_synonym.cpp31 protobufs::TransformationAddSynonym::SynonymType synonym_type, in TransformationAddSynonym()
35 message_.set_synonym_type(synonym_type); in TransformationAddSynonym()
44 message_.synonym_type()) && in IsApplicable()
58 // Check that we can apply |synonym_type| to |result_id|. in IsApplicable()
60 message_.synonym_type())) { in IsApplicable()
91 if (IsAdditionalConstantRequired(message_.synonym_type()) && in IsApplicable()
146 protobufs::TransformationAddSynonym::SynonymType synonym_type) { in IsInstructionValid()
160 switch (synonym_type) { in IsInstructionValid()
213 const auto* synonym_type = in MakeSynonymousInstruction() local
215 assert(synonym_type in MakeSynonymousInstruction()
29 TransformationAddSynonym( uint32_t result_id, protobufs::TransformationAddSynonym::SynonymType synonym_type, uint32_t synonym_fresh_id, const protobufs::InstructionDescriptor& insert_before) TransformationAddSynonym() argument
143 IsInstructionValid( opt::IRContext* ir_context, const TransformationContext& transformation_context, opt::Instruction* inst, protobufs::TransformationAddSynonym::SynonymType synonym_type) IsInstructionValid() argument
284 auto synonym_type = ir_context->get_type_mgr()->GetType(synonym_type_id); MaybeGetConstantId() local
318 IsAdditionalConstantRequired( protobufs::TransformationAddSynonym::SynonymType synonym_type) IsAdditionalConstantRequired() argument
[all...]
H A Dfuzzer_pass_add_synonyms.cpp57 auto synonym_type = GetFuzzerContext()->GetRandomSynonymType(); in Apply()
62 [synonym_type, this](opt::IRContext* ir_context, in Apply()
65 // the |synonym_type| and insert it before |inst_it|. in Apply()
67 ir_context, *GetTransformationContext(), inst, synonym_type); in Apply()
80 switch (synonym_type) { in Apply()
122 synonym_type) && in Apply()
123 "|synonym_type| requires an additional constant to be present " in Apply()
129 existing_synonym->result_id(), synonym_type, in Apply()
H A Dtransformation_add_synonym.h33 protobufs::TransformationAddSynonym::SynonymType synonym_type,
39 // - |synonym_type| is a type of the synonymous instruction that will be
49 // Creates a new synonymous instruction according to the |synonym_type| with
61 // |synonym_type|.
66 protobufs::TransformationAddSynonym::SynonymType synonym_type);
68 // Returns true if |synonym_type| requires an additional constant instruction
71 protobufs::TransformationAddSynonym::SynonymType synonym_type);
/third_party/skia/third_party/externals/spirv-tools/test/fuzz/
H A Dtransformation_add_synonym_test.cpp100 auto synonym_type = in TEST() local
105 ASSERT_FALSE(TransformationAddSynonym(9, synonym_type, 9, insert_before) in TEST()
109 ASSERT_FALSE(TransformationAddSynonym(40, synonym_type, 40, insert_before) in TEST()
113 ASSERT_FALSE(TransformationAddSynonym(5, synonym_type, 40, insert_before) in TEST()
117 ASSERT_FALSE(TransformationAddSynonym(25, synonym_type, 40, insert_before) in TEST()
121 ASSERT_FALSE(TransformationAddSynonym(26, synonym_type, 40, insert_before) in TEST()
125 ASSERT_FALSE(TransformationAddSynonym(24, synonym_type, 40, insert_before) in TEST()
130 TransformationAddSynonym(9, synonym_type, 40, in TEST()
136 TransformationAddSynonym(9, synonym_type, 40, in TEST()
140 9, synonym_type, 4 in TEST()
471 const auto synonym_type = protobufs::TransformationAddSynonym::LOGICAL_AND; TEST() local
509 const auto synonym_type = protobufs::TransformationAddSynonym::LOGICAL_OR; TEST() local
567 const auto synonym_type = protobufs::TransformationAddSynonym::COPY_OBJECT; TEST() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzz/
H A Dtransformation_add_synonym_test.cpp100 auto synonym_type = in TEST() local
105 ASSERT_FALSE(TransformationAddSynonym(9, synonym_type, 9, insert_before) in TEST()
109 ASSERT_FALSE(TransformationAddSynonym(40, synonym_type, 40, insert_before) in TEST()
113 ASSERT_FALSE(TransformationAddSynonym(5, synonym_type, 40, insert_before) in TEST()
117 ASSERT_FALSE(TransformationAddSynonym(25, synonym_type, 40, insert_before) in TEST()
121 ASSERT_FALSE(TransformationAddSynonym(26, synonym_type, 40, insert_before) in TEST()
125 ASSERT_FALSE(TransformationAddSynonym(24, synonym_type, 40, insert_before) in TEST()
130 TransformationAddSynonym(9, synonym_type, 40, in TEST()
136 TransformationAddSynonym(9, synonym_type, 40, in TEST()
140 9, synonym_type, 4 in TEST()
471 const auto synonym_type = protobufs::TransformationAddSynonym::LOGICAL_AND; TEST() local
509 const auto synonym_type = protobufs::TransformationAddSynonym::LOGICAL_OR; TEST() local
567 const auto synonym_type = protobufs::TransformationAddSynonym::COPY_OBJECT; TEST() local
[all...]
/third_party/spirv-tools/test/fuzz/
H A Dtransformation_add_synonym_test.cpp100 auto synonym_type = in TEST() local
105 ASSERT_FALSE(TransformationAddSynonym(9, synonym_type, 9, insert_before) in TEST()
109 ASSERT_FALSE(TransformationAddSynonym(40, synonym_type, 40, insert_before) in TEST()
113 ASSERT_FALSE(TransformationAddSynonym(5, synonym_type, 40, insert_before) in TEST()
117 ASSERT_FALSE(TransformationAddSynonym(25, synonym_type, 40, insert_before) in TEST()
121 ASSERT_FALSE(TransformationAddSynonym(26, synonym_type, 40, insert_before) in TEST()
125 ASSERT_FALSE(TransformationAddSynonym(24, synonym_type, 40, insert_before) in TEST()
130 9, synonym_type, 40, in TEST()
136 9, synonym_type, 40, in TEST()
140 9, synonym_type, 4 in TEST()
471 const auto synonym_type = protobufs::TransformationAddSynonym::LOGICAL_AND; TEST() local
509 const auto synonym_type = protobufs::TransformationAddSynonym::LOGICAL_OR; TEST() local
567 const auto synonym_type = protobufs::TransformationAddSynonym::COPY_OBJECT; TEST() local
[all...]

Completed in 7 milliseconds