Lines Matching refs:LS
134 LexicalScopes LS; in TEST_F() local
135 EXPECT_TRUE(LS.empty()); in TEST_F()
136 LS.reset(); in TEST_F()
137 EXPECT_EQ(LS.getCurrentFunctionScope(), nullptr); in TEST_F()
139 LS.initialize(*MF); in TEST_F()
140 EXPECT_FALSE(LS.empty()); in TEST_F()
141 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F()
160 LS.getMachineBasicBlocks(OutermostLoc.get(), MBBVec); in TEST_F()
167 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), &MBB)); in TEST_F()
168 EXPECT_FALSE(LS.dominates(InBlockLoc.get(), &MBB)); in TEST_F()
169 EXPECT_FALSE(LS.dominates(InlinedLoc.get(), &MBB)); in TEST_F()
181 LexicalScopes LS; in TEST_F() local
182 LS.initialize(*MF); in TEST_F()
183 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F()
188 EXPECT_EQ(LS.findLexicalScope(InBlockLoc.get()), BlockScope); in TEST_F()
198 LS.getMachineBasicBlocks(OutermostLoc.get(), MBBVec); in TEST_F()
203 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), &MBB)); in TEST_F()
204 EXPECT_TRUE(LS.dominates(InBlockLoc.get(), &MBB)); in TEST_F()
205 EXPECT_FALSE(LS.dominates(InlinedLoc.get(), &MBB)); in TEST_F()
216 LexicalScopes LS; in TEST_F() local
217 LS.initialize(*MF); in TEST_F()
218 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F()
235 const auto &AbstractScopes = LS.getAbstractScopesList(); in TEST_F()
251 LexicalScopes LS; in TEST_F() local
252 LS.initialize(*MF); in TEST_F()
253 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F()
272 LexicalScopes LS; in TEST_F() local
273 LS.initialize(*MF); in TEST_F()
274 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get()); in TEST_F()
288 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F()
305 LexicalScopes LS; in TEST_F() local
306 LS.initialize(*MF); in TEST_F()
307 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F()
308 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get()); in TEST_F()
309 LexicalScope *OtherBlockScope = LS.findLexicalScope(NotNestedBlockLoc.get()); in TEST_F()
343 LexicalScopes LS; in TEST_F() local
344 LS.initialize(*MF); in TEST_F()
345 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F()
346 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get()); in TEST_F()
347 LexicalScope *OtherBlockScope = LS.findLexicalScope(NotNestedBlockLoc.get()); in TEST_F()
360 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB1)); in TEST_F()
361 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB2)); in TEST_F()
362 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB3)); in TEST_F()
363 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB4)); in TEST_F()
366 EXPECT_TRUE(LS.dominates(InBlockLoc.get(), MBB1)); in TEST_F()
367 EXPECT_FALSE(LS.dominates(InBlockLoc.get(), MBB2)); in TEST_F()
368 EXPECT_FALSE(LS.dominates(InBlockLoc.get(), MBB3)); in TEST_F()
369 EXPECT_TRUE(LS.dominates(InBlockLoc.get(), MBB4)); in TEST_F()
372 EXPECT_FALSE(LS.dominates(NotNestedBlockLoc.get(), MBB1)); in TEST_F()
373 EXPECT_TRUE(LS.dominates(NotNestedBlockLoc.get(), MBB2)); in TEST_F()
374 EXPECT_TRUE(LS.dominates(NotNestedBlockLoc.get(), MBB3)); in TEST_F()
375 EXPECT_FALSE(LS.dominates(NotNestedBlockLoc.get(), MBB4)); in TEST_F()
385 LexicalScopes LS; in TEST_F() local
386 LS.initialize(*MF); in TEST_F()
387 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F()
388 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get()); in TEST_F()
389 LexicalScope *OtherBlockScope = LS.findLexicalScope(NotNestedBlockLoc.get()); in TEST_F()
396 LS.getMachineBasicBlocks(OutermostLoc.get(), OutermostBlocks); in TEST_F()
397 LS.getMachineBasicBlocks(InBlockLoc.get(), InBlockBlocks); in TEST_F()
398 LS.getMachineBasicBlocks(NotNestedBlockLoc.get(), NotNestedBlockBlocks); in TEST_F()
442 LexicalScopes LS; in TEST_F() local
443 LS.initialize(*MF); in TEST_F()
444 LexicalScope *FuncScope = LS.getCurrentFunctionScope(); in TEST_F()
445 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get()); in TEST_F()
449 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB1)); in TEST_F()
450 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB2)); in TEST_F()
451 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB3)); in TEST_F()
452 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB4)); in TEST_F()
453 EXPECT_TRUE(LS.dominates(InBlockLoc.get(), MBB1)); in TEST_F()
454 EXPECT_FALSE(LS.dominates(InBlockLoc.get(), MBB2)); in TEST_F()
455 EXPECT_FALSE(LS.dominates(InBlockLoc.get(), MBB3)); in TEST_F()
456 EXPECT_TRUE(LS.dominates(InBlockLoc.get(), MBB4)); in TEST_F()