Lines Matching refs:IRContext
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()
114 for (Analysis i = IRContext::kAnalysisBegin; i < IRContext::kAnalysisEnd; in TEST_F()
124 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, std::move(module), in TEST_F()
127 Analysis built_analyses = IRContext::kAnalysisNone; in TEST_F()
128 for (Analysis i = IRContext::kAnalysisBegin; i < IRContext::kAnalysisEnd; in TEST_F()
142 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, std::move(module), in TEST_F()
145 for (Analysis i = IRContext::kAnalysisBegin; i < IRContext::kAnalysisEnd; in TEST_F()
153 for (Analysis i = IRContext::kAnalysisBegin; i < IRContext::kAnalysisEnd; in TEST_F()
161 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, std::move(module), in TEST_F()
164 for (Analysis i = IRContext::kAnalysisBegin; i < IRContext::kAnalysisEnd; in TEST_F()
172 for (Analysis i = IRContext::kAnalysisBegin; i < IRContext::kAnalysisEnd; in TEST_F()
180 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, std::move(module), in TEST_F()
183 for (Analysis i = IRContext::kAnalysisBegin; i < IRContext::kAnalysisEnd; in TEST_F()
191 EXPECT_TRUE(localContext.AreAnalysesValid(IRContext::kAnalysisBegin)); in TEST_F()
192 for (Analysis i = IRContext::kAnalysisBegin << 1; i < IRContext::kAnalysisEnd; in TEST_F()
220 std::unique_ptr<IRContext> context = in TEST_F()
265 std::unique_ptr<IRContext> context = in TEST_F()
301 IRContext localContext(SPV_ENV_UNIVERSAL_1_2, nullptr); in TEST_F()
329 std::unique_ptr<IRContext> context = in TEST_F()
381 std::unique_ptr<IRContext> context = in TEST_F()
420 std::unique_ptr<IRContext> context = in TEST_F()
478 std::unique_ptr<IRContext> context = in TEST_F()
547 std::unique_ptr<IRContext> localContext = in TEST_F()
602 std::unique_ptr<IRContext> localContext = in TEST_F()
653 std::unique_ptr<IRContext> localContext = in TEST_F()
692 std::unique_ptr<IRContext> localContext = in TEST_F()
719 std::unique_ptr<IRContext> context = in TEST_F()
743 std::unique_ptr<IRContext> context = in TEST_F()
767 std::unique_ptr<IRContext> context = in TEST_F()
791 std::unique_ptr<IRContext> context = in TEST_F()
817 std::unique_ptr<IRContext> ctx = in TEST_F()
825 EXPECT_TRUE(ctx->AreAnalysesValid(IRContext::kAnalysisCFG)); in TEST_F()
826 EXPECT_TRUE(ctx->AreAnalysesValid(IRContext::kAnalysisDominatorAnalysis)); in TEST_F()
829 ctx->InvalidateAnalyses(IRContext::kAnalysisCFG); in TEST_F()
830 EXPECT_FALSE(ctx->AreAnalysesValid(IRContext::kAnalysisCFG)); in TEST_F()
831 EXPECT_FALSE(ctx->AreAnalysesValid(IRContext::kAnalysisDominatorAnalysis)); in TEST_F()
879 opt::IRContext::Analysis::kAnalysisDominatorAnalysis); // Invalidates the in TEST_F()
926 std::unique_ptr<IRContext> ctx = in TEST_F()
929 ctx->BuildInvalidAnalyses(IRContext::kAnalysisDebugInfo); in TEST_F()
932 EXPECT_TRUE(ctx->AreAnalysesValid(IRContext::kAnalysisDebugInfo)); in TEST_F()
992 std::unique_ptr<IRContext> ctx = in TEST_F()
995 ctx->BuildInvalidAnalyses(IRContext::kAnalysisDebugInfo); in TEST_F()
998 EXPECT_TRUE(ctx->AreAnalysesValid(IRContext::kAnalysisDebugInfo)); in TEST_F()
1069 std::unique_ptr<IRContext> ctx = in TEST_F()
1072 ctx->BuildInvalidAnalyses(IRContext::kAnalysisDebugInfo); in TEST_F()
1075 EXPECT_TRUE(ctx->AreAnalysesValid(IRContext::kAnalysisDebugInfo)); in TEST_F()
1134 std::unique_ptr<IRContext> ctx = in TEST_F()
1137 ctx->BuildInvalidAnalyses(IRContext::kAnalysisDebugInfo); in TEST_F()
1140 EXPECT_TRUE(ctx->AreAnalysesValid(IRContext::kAnalysisDebugInfo)); in TEST_F()