Lines Matching defs:LS
137 LexicalScopes LS;
138 EXPECT_TRUE(LS.empty());
139 LS.reset();
140 EXPECT_EQ(LS.getCurrentFunctionScope(), nullptr);
142 LS.initialize(*MF);
143 EXPECT_FALSE(LS.empty());
144 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
163 LS.getMachineBasicBlocks(OutermostLoc.get(), MBBVec);
170 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), &MBB));
171 EXPECT_FALSE(LS.dominates(InBlockLoc.get(), &MBB));
172 EXPECT_FALSE(LS.dominates(InlinedLoc.get(), &MBB));
184 LexicalScopes LS;
185 LS.initialize(*MF);
186 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
191 EXPECT_EQ(LS.findLexicalScope(InBlockLoc.get()), BlockScope);
201 LS.getMachineBasicBlocks(OutermostLoc.get(), MBBVec);
206 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), &MBB));
207 EXPECT_TRUE(LS.dominates(InBlockLoc.get(), &MBB));
208 EXPECT_FALSE(LS.dominates(InlinedLoc.get(), &MBB));
219 LexicalScopes LS;
220 LS.initialize(*MF);
221 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
238 const auto &AbstractScopes = LS.getAbstractScopesList();
254 LexicalScopes LS;
255 LS.initialize(*MF);
256 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
275 LexicalScopes LS;
276 LS.initialize(*MF);
277 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get());
291 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
308 LexicalScopes LS;
309 LS.initialize(*MF);
310 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
311 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get());
312 LexicalScope *OtherBlockScope = LS.findLexicalScope(NotNestedBlockLoc.get());
346 LexicalScopes LS;
347 LS.initialize(*MF);
348 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
349 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get());
350 LexicalScope *OtherBlockScope = LS.findLexicalScope(NotNestedBlockLoc.get());
363 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB1));
364 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB2));
365 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB3));
366 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB4));
369 EXPECT_TRUE(LS.dominates(InBlockLoc.get(), MBB1));
370 EXPECT_FALSE(LS.dominates(InBlockLoc.get(), MBB2));
371 EXPECT_FALSE(LS.dominates(InBlockLoc.get(), MBB3));
372 EXPECT_TRUE(LS.dominates(InBlockLoc.get(), MBB4));
375 EXPECT_FALSE(LS.dominates(NotNestedBlockLoc.get(), MBB1));
376 EXPECT_TRUE(LS.dominates(NotNestedBlockLoc.get(), MBB2));
377 EXPECT_TRUE(LS.dominates(NotNestedBlockLoc.get(), MBB3));
378 EXPECT_FALSE(LS.dominates(NotNestedBlockLoc.get(), MBB4));
388 LexicalScopes LS;
389 LS.initialize(*MF);
390 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
391 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get());
392 LexicalScope *OtherBlockScope = LS.findLexicalScope(NotNestedBlockLoc.get());
399 LS.getMachineBasicBlocks(OutermostLoc.get(), OutermostBlocks);
400 LS.getMachineBasicBlocks(InBlockLoc.get(), InBlockBlocks);
401 LS.getMachineBasicBlocks(NotNestedBlockLoc.get(), NotNestedBlockBlocks);
445 LexicalScopes LS;
446 LS.initialize(*MF);
447 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
448 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get());
452 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB1));
453 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB2));
454 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB3));
455 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), MBB4));
456 EXPECT_TRUE(LS.dominates(InBlockLoc.get(), MBB1));
457 EXPECT_FALSE(LS.dominates(InBlockLoc.get(), MBB2));
458 EXPECT_FALSE(LS.dominates(InBlockLoc.get(), MBB3));
459 EXPECT_TRUE(LS.dominates(InBlockLoc.get(), MBB4));