/third_party/spirv-tools/source/fuzz/ |
D | fuzzer_util.h | 40 using ModuleSupplier = std::function<std::unique_ptr<opt::IRContext>()>; 49 std::unique_ptr<spvtools::opt::IRContext>* ir_context); 52 bool IsFreshId(opt::IRContext* context, uint32_t id); 56 void UpdateModuleIdBound(opt::IRContext* context, uint32_t id); 60 opt::BasicBlock* MaybeFindBlock(opt::IRContext* context, 69 opt::IRContext* context, opt::BasicBlock* bb_from, opt::BasicBlock* bb_to, 77 opt::Instruction CreateUnreachableEdgeInstruction(opt::IRContext* ir_context, 91 opt::IRContext* context, opt::BasicBlock* bb_from, opt::BasicBlock* bb_to, 98 bool BlockIsBackEdge(opt::IRContext* context, uint32_t block_id, 103 bool BlockIsInLoopContinueConstruct(opt::IRContext* context, uint32_t block_id, [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | fuzzer_util.h | 40 using ModuleSupplier = std::function<std::unique_ptr<opt::IRContext>()>; 49 std::unique_ptr<spvtools::opt::IRContext>* ir_context); 52 bool IsFreshId(opt::IRContext* context, uint32_t id); 56 void UpdateModuleIdBound(opt::IRContext* context, uint32_t id); 60 opt::BasicBlock* MaybeFindBlock(opt::IRContext* context, 69 opt::IRContext* context, opt::BasicBlock* bb_from, opt::BasicBlock* bb_to, 77 opt::Instruction CreateUnreachableEdgeInstruction(opt::IRContext* ir_context, 91 opt::IRContext* context, opt::BasicBlock* bb_from, opt::BasicBlock* bb_to, 98 bool BlockIsBackEdge(opt::IRContext* context, uint32_t block_id, 103 bool BlockIsInLoopContinueConstruct(opt::IRContext* context, uint32_t block_id, [all …]
|
/third_party/skia/third_party/externals/spirv-tools/source/fuzz/ |
D | fuzzer_util.h | 40 using ModuleSupplier = std::function<std::unique_ptr<opt::IRContext>()>; 49 std::unique_ptr<spvtools::opt::IRContext>* ir_context); 52 bool IsFreshId(opt::IRContext* context, uint32_t id); 56 void UpdateModuleIdBound(opt::IRContext* context, uint32_t id); 60 opt::BasicBlock* MaybeFindBlock(opt::IRContext* context, 69 opt::IRContext* context, opt::BasicBlock* bb_from, opt::BasicBlock* bb_to, 77 opt::Instruction CreateUnreachableEdgeInstruction(opt::IRContext* ir_context, 91 opt::IRContext* context, opt::BasicBlock* bb_from, opt::BasicBlock* bb_to, 98 bool BlockIsBackEdge(opt::IRContext* context, uint32_t block_id, 103 bool BlockIsInLoopContinueConstruct(opt::IRContext* context, uint32_t block_id, [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | interp_fixup_pass.h | 36 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 37 return IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 38 IRContext::kAnalysisDecorations | IRContext::kAnalysisCombinators | in GetPreservedAnalyses() 39 IRContext::kAnalysisCFG | IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 40 IRContext::kAnalysisLoopAnalysis | IRContext::kAnalysisNameMap | in GetPreservedAnalyses() 41 IRContext::kAnalysisScalarEvolution | in GetPreservedAnalyses() 42 IRContext::kAnalysisRegisterPressure | in GetPreservedAnalyses() 43 IRContext::kAnalysisValueNumberTable | in GetPreservedAnalyses() 44 IRContext::kAnalysisStructuredCFG | in GetPreservedAnalyses() 45 IRContext::kAnalysisBuiltinVarId | in GetPreservedAnalyses() [all …]
|
D | amd_ext_to_khr.h | 33 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 34 return IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 35 IRContext::kAnalysisDecorations | IRContext::kAnalysisCombinators | in GetPreservedAnalyses() 36 IRContext::kAnalysisCFG | IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 37 IRContext::kAnalysisLoopAnalysis | IRContext::kAnalysisNameMap | in GetPreservedAnalyses() 38 IRContext::kAnalysisScalarEvolution | in GetPreservedAnalyses() 39 IRContext::kAnalysisRegisterPressure | in GetPreservedAnalyses() 40 IRContext::kAnalysisValueNumberTable | in GetPreservedAnalyses() 41 IRContext::kAnalysisStructuredCFG | in GetPreservedAnalyses() 42 IRContext::kAnalysisBuiltinVarId | in GetPreservedAnalyses() [all …]
|
D | ir_context.h | 50 class IRContext { 94 IRContext(spv_target_env env, MessageConsumer c) in IRContext() function 113 IRContext(spv_target_env env, std::unique_ptr<Module>&& m, MessageConsumer c) in IRContext() function 132 ~IRContext() { spvContextDestroy(syntax_context_); } in ~IRContext() 849 inline IRContext::Analysis operator|(IRContext::Analysis lhs, 850 IRContext::Analysis rhs) { 851 return static_cast<IRContext::Analysis>(static_cast<int>(lhs) | 855 inline IRContext::Analysis& operator|=(IRContext::Analysis& lhs, 856 IRContext::Analysis rhs) { 857 lhs = static_cast<IRContext::Analysis>(static_cast<int>(lhs) | [all …]
|
D | eliminate_dead_members_pass.h | 33 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 34 return IRContext::kAnalysisDefUse | in GetPreservedAnalyses() 35 IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 36 IRContext::kAnalysisCombinators | IRContext::kAnalysisCFG | in GetPreservedAnalyses() 37 IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 38 IRContext::kAnalysisLoopAnalysis | in GetPreservedAnalyses() 39 IRContext::kAnalysisScalarEvolution | in GetPreservedAnalyses() 40 IRContext::kAnalysisRegisterPressure | in GetPreservedAnalyses() 41 IRContext::kAnalysisValueNumberTable | in GetPreservedAnalyses() 42 IRContext::kAnalysisStructuredCFG | in GetPreservedAnalyses() [all …]
|
D | local_redundancy_elimination.h | 39 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 40 return IRContext::kAnalysisDefUse | in GetPreservedAnalyses() 41 IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 42 IRContext::kAnalysisDecorations | IRContext::kAnalysisCombinators | in GetPreservedAnalyses() 43 IRContext::kAnalysisCFG | IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 44 IRContext::kAnalysisNameMap | IRContext::kAnalysisConstants | in GetPreservedAnalyses() 45 IRContext::kAnalysisTypes; in GetPreservedAnalyses()
|
D | simplification_pass.h | 31 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 32 return IRContext::kAnalysisDefUse | in GetPreservedAnalyses() 33 IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 34 IRContext::kAnalysisDecorations | IRContext::kAnalysisCombinators | in GetPreservedAnalyses() 35 IRContext::kAnalysisCFG | IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 36 IRContext::kAnalysisNameMap | IRContext::kAnalysisConstants | in GetPreservedAnalyses() 37 IRContext::kAnalysisTypes; in GetPreservedAnalyses()
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | amd_ext_to_khr.h | 33 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 34 return IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 35 IRContext::kAnalysisDecorations | IRContext::kAnalysisCombinators | in GetPreservedAnalyses() 36 IRContext::kAnalysisCFG | IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 37 IRContext::kAnalysisLoopAnalysis | IRContext::kAnalysisNameMap | in GetPreservedAnalyses() 38 IRContext::kAnalysisScalarEvolution | in GetPreservedAnalyses() 39 IRContext::kAnalysisRegisterPressure | in GetPreservedAnalyses() 40 IRContext::kAnalysisValueNumberTable | in GetPreservedAnalyses() 41 IRContext::kAnalysisStructuredCFG | in GetPreservedAnalyses() 42 IRContext::kAnalysisBuiltinVarId | in GetPreservedAnalyses() [all …]
|
D | interp_fixup_pass.h | 36 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 37 return IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 38 IRContext::kAnalysisDecorations | IRContext::kAnalysisCombinators | in GetPreservedAnalyses() 39 IRContext::kAnalysisCFG | IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 40 IRContext::kAnalysisLoopAnalysis | IRContext::kAnalysisNameMap | in GetPreservedAnalyses() 41 IRContext::kAnalysisScalarEvolution | in GetPreservedAnalyses() 42 IRContext::kAnalysisRegisterPressure | in GetPreservedAnalyses() 43 IRContext::kAnalysisValueNumberTable | in GetPreservedAnalyses() 44 IRContext::kAnalysisStructuredCFG | in GetPreservedAnalyses() 45 IRContext::kAnalysisBuiltinVarId | in GetPreservedAnalyses() [all …]
|
D | ir_context.h | 50 class IRContext { 94 IRContext(spv_target_env env, MessageConsumer c) in IRContext() function 113 IRContext(spv_target_env env, std::unique_ptr<Module>&& m, MessageConsumer c) in IRContext() function 132 ~IRContext() { spvContextDestroy(syntax_context_); } in ~IRContext() 849 inline IRContext::Analysis operator|(IRContext::Analysis lhs, 850 IRContext::Analysis rhs) { 851 return static_cast<IRContext::Analysis>(static_cast<int>(lhs) | 855 inline IRContext::Analysis& operator|=(IRContext::Analysis& lhs, 856 IRContext::Analysis rhs) { 857 lhs = static_cast<IRContext::Analysis>(static_cast<int>(lhs) | [all …]
|
D | eliminate_dead_members_pass.h | 33 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 34 return IRContext::kAnalysisDefUse | in GetPreservedAnalyses() 35 IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 36 IRContext::kAnalysisCombinators | IRContext::kAnalysisCFG | in GetPreservedAnalyses() 37 IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 38 IRContext::kAnalysisLoopAnalysis | in GetPreservedAnalyses() 39 IRContext::kAnalysisScalarEvolution | in GetPreservedAnalyses() 40 IRContext::kAnalysisRegisterPressure | in GetPreservedAnalyses() 41 IRContext::kAnalysisValueNumberTable | in GetPreservedAnalyses() 42 IRContext::kAnalysisStructuredCFG | in GetPreservedAnalyses() [all …]
|
D | local_redundancy_elimination.h | 39 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 40 return IRContext::kAnalysisDefUse | in GetPreservedAnalyses() 41 IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 42 IRContext::kAnalysisDecorations | IRContext::kAnalysisCombinators | in GetPreservedAnalyses() 43 IRContext::kAnalysisCFG | IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 44 IRContext::kAnalysisNameMap | IRContext::kAnalysisConstants | in GetPreservedAnalyses() 45 IRContext::kAnalysisTypes; in GetPreservedAnalyses()
|
D | simplification_pass.h | 31 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 32 return IRContext::kAnalysisDefUse | in GetPreservedAnalyses() 33 IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 34 IRContext::kAnalysisDecorations | IRContext::kAnalysisCombinators | in GetPreservedAnalyses() 35 IRContext::kAnalysisCFG | IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 36 IRContext::kAnalysisNameMap | IRContext::kAnalysisConstants | in GetPreservedAnalyses() 37 IRContext::kAnalysisTypes; in GetPreservedAnalyses()
|
/third_party/spirv-tools/source/opt/ |
D | amd_ext_to_khr.h | 33 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 34 return IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 35 IRContext::kAnalysisDecorations | IRContext::kAnalysisCombinators | in GetPreservedAnalyses() 36 IRContext::kAnalysisCFG | IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 37 IRContext::kAnalysisLoopAnalysis | IRContext::kAnalysisNameMap | in GetPreservedAnalyses() 38 IRContext::kAnalysisScalarEvolution | in GetPreservedAnalyses() 39 IRContext::kAnalysisRegisterPressure | in GetPreservedAnalyses() 40 IRContext::kAnalysisValueNumberTable | in GetPreservedAnalyses() 41 IRContext::kAnalysisStructuredCFG | in GetPreservedAnalyses() 42 IRContext::kAnalysisBuiltinVarId | in GetPreservedAnalyses() [all …]
|
D | interp_fixup_pass.h | 36 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 37 return IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 38 IRContext::kAnalysisDecorations | IRContext::kAnalysisCombinators | in GetPreservedAnalyses() 39 IRContext::kAnalysisCFG | IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 40 IRContext::kAnalysisLoopAnalysis | IRContext::kAnalysisNameMap | in GetPreservedAnalyses() 41 IRContext::kAnalysisScalarEvolution | in GetPreservedAnalyses() 42 IRContext::kAnalysisRegisterPressure | in GetPreservedAnalyses() 43 IRContext::kAnalysisValueNumberTable | in GetPreservedAnalyses() 44 IRContext::kAnalysisStructuredCFG | in GetPreservedAnalyses() 45 IRContext::kAnalysisBuiltinVarId | in GetPreservedAnalyses() [all …]
|
D | ir_context.h | 51 class IRContext { 95 IRContext(spv_target_env env, MessageConsumer c) in IRContext() function 114 IRContext(spv_target_env env, std::unique_ptr<Module>&& m, MessageConsumer c) in IRContext() function 133 ~IRContext() { spvContextDestroy(syntax_context_); } in ~IRContext() 866 inline IRContext::Analysis operator|(IRContext::Analysis lhs, 867 IRContext::Analysis rhs) { 868 return static_cast<IRContext::Analysis>(static_cast<int>(lhs) | 872 inline IRContext::Analysis& operator|=(IRContext::Analysis& lhs, 873 IRContext::Analysis rhs) { 878 inline IRContext::Analysis operator<<(IRContext::Analysis a, int shift) { [all …]
|
D | eliminate_dead_members_pass.h | 33 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 34 return IRContext::kAnalysisDefUse | in GetPreservedAnalyses() 35 IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 36 IRContext::kAnalysisCombinators | IRContext::kAnalysisCFG | in GetPreservedAnalyses() 37 IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 38 IRContext::kAnalysisLoopAnalysis | in GetPreservedAnalyses() 39 IRContext::kAnalysisScalarEvolution | in GetPreservedAnalyses() 40 IRContext::kAnalysisRegisterPressure | in GetPreservedAnalyses() 41 IRContext::kAnalysisValueNumberTable | in GetPreservedAnalyses() 42 IRContext::kAnalysisStructuredCFG | in GetPreservedAnalyses() [all …]
|
D | local_redundancy_elimination.h | 39 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 40 return IRContext::kAnalysisDefUse | in GetPreservedAnalyses() 41 IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 42 IRContext::kAnalysisDecorations | IRContext::kAnalysisCombinators | in GetPreservedAnalyses() 43 IRContext::kAnalysisCFG | IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 44 IRContext::kAnalysisNameMap | IRContext::kAnalysisConstants | in GetPreservedAnalyses() 45 IRContext::kAnalysisTypes; in GetPreservedAnalyses()
|
D | eliminate_dead_input_components_pass.h | 40 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 41 return IRContext::kAnalysisDefUse | in GetPreservedAnalyses() 42 IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 43 IRContext::kAnalysisCombinators | IRContext::kAnalysisCFG | in GetPreservedAnalyses() 44 IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 45 IRContext::kAnalysisLoopAnalysis | IRContext::kAnalysisNameMap | in GetPreservedAnalyses() 46 IRContext::kAnalysisConstants | IRContext::kAnalysisTypes; in GetPreservedAnalyses()
|
D | simplification_pass.h | 31 IRContext::Analysis GetPreservedAnalyses() override { in GetPreservedAnalyses() 32 return IRContext::kAnalysisDefUse | in GetPreservedAnalyses() 33 IRContext::kAnalysisInstrToBlockMapping | in GetPreservedAnalyses() 34 IRContext::kAnalysisDecorations | IRContext::kAnalysisCombinators | in GetPreservedAnalyses() 35 IRContext::kAnalysisCFG | IRContext::kAnalysisDominatorAnalysis | in GetPreservedAnalyses() 36 IRContext::kAnalysisNameMap | IRContext::kAnalysisConstants | in GetPreservedAnalyses() 37 IRContext::kAnalysisTypes; in GetPreservedAnalyses()
|
/third_party/spirv-tools/test/opt/ |
D | ir_context_test.cpp | 36 using Analysis = IRContext::Analysis; 59 return Analysis(IRContext::kAnalysisEnd - 1); in GetPreservedAnalyses() 73 Analysis GetPreservedAnalyses() override { return IRContext::kAnalysisBegin; } in GetPreservedAnalyses() 83 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, std::move(module), in TEST_F() 86 for (Analysis i = IRContext::kAnalysisBegin; i < IRContext::kAnalysisEnd; in TEST_F() 95 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, std::move(module), in TEST_F() 100 localContext.BuildInvalidAnalyses(IRContext::kAnalysisCFG | in TEST_F() 101 IRContext::kAnalysisDefUse); in TEST_F() 110 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, std::move(module), in TEST_F() 113 Analysis built_analyses = IRContext::kAnalysisNone; in TEST_F() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
D | ir_context_test.cpp | 36 using Analysis = IRContext::Analysis; 59 return Analysis(IRContext::kAnalysisEnd - 1); in GetPreservedAnalyses() 73 Analysis GetPreservedAnalyses() override { return IRContext::kAnalysisBegin; } in GetPreservedAnalyses() 83 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, std::move(module), in TEST_F() 86 for (Analysis i = IRContext::kAnalysisBegin; i < IRContext::kAnalysisEnd; in TEST_F() 95 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, std::move(module), in TEST_F() 98 Analysis built_analyses = IRContext::kAnalysisNone; in TEST_F() 99 for (Analysis i = IRContext::kAnalysisBegin; i < IRContext::kAnalysisEnd; in TEST_F() 109 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, std::move(module), in TEST_F() 112 Analysis built_analyses = IRContext::kAnalysisNone; in TEST_F() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/test/opt/ |
D | ir_context_test.cpp | 36 using Analysis = IRContext::Analysis; 59 return Analysis(IRContext::kAnalysisEnd - 1); in GetPreservedAnalyses() 73 Analysis GetPreservedAnalyses() override { return IRContext::kAnalysisBegin; } in GetPreservedAnalyses() 83 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, std::move(module), in TEST_F() 86 for (Analysis i = IRContext::kAnalysisBegin; i < IRContext::kAnalysisEnd; in TEST_F() 95 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, std::move(module), in TEST_F() 98 Analysis built_analyses = IRContext::kAnalysisNone; in TEST_F() 99 for (Analysis i = IRContext::kAnalysisBegin; i < IRContext::kAnalysisEnd; in TEST_F() 109 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, std::move(module), in TEST_F() 112 Analysis built_analyses = IRContext::kAnalysisNone; in TEST_F() [all …]
|