Home
last modified time | relevance | path

Searched refs:BlockScope (Results 1 – 25 of 33) sorted by relevance

12

/external/llvm-project/llvm/unittests/CodeGen/
DLexicalScopesTest.cpp187 auto *BlockScope = Children[0]; in TEST_F() local
188 EXPECT_EQ(LS.findLexicalScope(InBlockLoc.get()), BlockScope); in TEST_F()
189 EXPECT_EQ(BlockScope->getDesc(), InBlockLoc->getScope()); in TEST_F()
190 EXPECT_FALSE(BlockScope->isAbstractScope()); in TEST_F()
192 EXPECT_TRUE(FuncScope->dominates(BlockScope)); in TEST_F()
193 EXPECT_FALSE(BlockScope->dominates(FuncScope)); in TEST_F()
195 EXPECT_EQ(BlockScope->getParent(), FuncScope); in TEST_F()
221 auto *BlockScope = Children[0]; in TEST_F() local
222 auto &BlockChildren = BlockScope->getChildren(); in TEST_F()
232 EXPECT_EQ(BlockScope->getParent(), FuncScope); in TEST_F()
[all …]
/external/clang/lib/Sema/
DScope.cpp43 if ((Flags & (FnScope | ClassScope | BlockScope | TemplateParamScope | in setFlags()
68 if (flags & BlockScope) BlockParent = this; in setFlags()
165 } else if (Flags & BlockScope) { in dumpImpl()
167 Flags &= ~BlockScope; in dumpImpl()
DSema.cpp1132 void Sema::PushBlockScope(Scope *BlockScope, BlockDecl *Block) { in PushBlockScope() argument
1134 BlockScope, Block)); in PushBlockScope()
/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClBitstreamReader.h485 SmallVector<Block, 8> BlockScope; variable
505 BlockScope.push_back( in init()
513 while (!BlockScope.empty()) in freeState()
514 BlockScope.pop_back(); in freeState()
541 return BlockScope.back().getCodeAbbrev().NumBits; in getAbbrevIDWidth()
785 BlockScope.back().getCodeAbbrev(); in ReadCode()
820 if (BlockScope.empty()) in ReadBlockEnd()
827 BlockScope.pop_back(); in ReadBlockEnd()
868 const Block &CurBlock = BlockScope.back(); in getAbbrev()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Bitstream/
DBitstreamWriter.h55 std::vector<Block> BlockScope; variable
89 assert(BlockScope.empty() && CurAbbrevs.empty() && "Block imbalance"); in ~BitstreamWriter()
217 BlockScope.emplace_back(OldCodeSize, BlockSizeWordIndex); in EnterSubblock()
218 BlockScope.back().PrevAbbrevs.swap(CurAbbrevs); in EnterSubblock()
229 assert(!BlockScope.empty() && "Block scope imbalance!"); in ExitBlock()
230 const Block &B = BlockScope.back(); in ExitBlock()
247 BlockScope.pop_back(); in ExitBlock()
DBitstreamReader.h355 SmallVector<Block, 8> BlockScope; variable
500 if (BlockScope.empty()) return true; in ReadBlockEnd()
512 CurCodeSize = BlockScope.back().PrevCodeSize; in popBlockScope()
514 CurAbbrevs = std::move(BlockScope.back().PrevAbbrevs); in popBlockScope()
515 BlockScope.pop_back(); in popBlockScope()
/external/llvm/include/llvm/Bitcode/
DBitstreamWriter.h56 std::vector<Block> BlockScope; variable
90 assert(BlockScope.empty() && CurAbbrevs.empty() && "Block imbalance"); in ~BitstreamWriter()
222 BlockScope.emplace_back(OldCodeSize, BlockSizeWordIndex); in EnterSubblock()
223 BlockScope.back().PrevAbbrevs.swap(CurAbbrevs); in EnterSubblock()
234 assert(!BlockScope.empty() && "Block scope imbalance!"); in ExitBlock()
235 const Block &B = BlockScope.back(); in ExitBlock()
252 BlockScope.pop_back(); in ExitBlock()
DBitstreamReader.h428 SmallVector<Block, 8> BlockScope; variable
550 if (BlockScope.empty()) return true; in ReadBlockEnd()
563 CurCodeSize = BlockScope.back().PrevCodeSize; in popBlockScope()
565 CurAbbrevs = std::move(BlockScope.back().PrevAbbrevs); in popBlockScope()
566 BlockScope.pop_back(); in popBlockScope()
/external/llvm-project/llvm/include/llvm/Bitstream/
DBitstreamWriter.h66 std::vector<Block> BlockScope; variable
124 assert(BlockScope.empty() && CurAbbrevs.empty() && "Block imbalance"); in ~BitstreamWriter()
300 BlockScope.emplace_back(OldCodeSize, BlockSizeWordIndex); in EnterSubblock()
301 BlockScope.back().PrevAbbrevs.swap(CurAbbrevs); in EnterSubblock()
312 assert(!BlockScope.empty() && "Block scope imbalance!"); in ExitBlock()
313 const Block &B = BlockScope.back(); in ExitBlock()
330 BlockScope.pop_back(); in ExitBlock()
DBitstreamReader.h356 SmallVector<Block, 8> BlockScope; variable
501 if (BlockScope.empty()) return true; in ReadBlockEnd()
513 CurCodeSize = BlockScope.back().PrevCodeSize; in popBlockScope()
515 CurAbbrevs = std::move(BlockScope.back().PrevAbbrevs); in popBlockScope()
516 BlockScope.pop_back(); in popBlockScope()
/external/llvm-project/clang/lib/Sema/
DScope.cpp42 if ((Flags & (FnScope | ClassScope | BlockScope | TemplateParamScope | in setFlags()
67 if (flags & BlockScope) BlockParent = this; in setFlags()
152 {BlockScope, "BlockScope"}, in dumpImpl()
DSema.cpp1874 void Sema::PushBlockScope(Scope *BlockScope, BlockDecl *Block) { in PushBlockScope() argument
1876 BlockScope, Block)); in PushBlockScope()
DSemaDecl.cpp14674 Scope *BlockScope = S; in ImplicitlyDefineFunction() local
14675 while (!BlockScope->isCompoundStmtScope() && BlockScope->getParent()) in ImplicitlyDefineFunction()
14676 BlockScope = BlockScope->getParent(); in ImplicitlyDefineFunction()
14678 Scope *ContextScope = BlockScope; in ImplicitlyDefineFunction()
14691 PushOnScopeChains(ExternCPrev, BlockScope, /*AddToContext*/false); in ImplicitlyDefineFunction()
14771 FunctionDecl *FD = cast<FunctionDecl>(ActOnDeclarator(BlockScope, D)); in ImplicitlyDefineFunction()
/external/clang/include/clang/Sema/
DScope.h70 BlockScope = 0x40, enumerator
214 bool isBlockScope() const { return Flags & BlockScope; } in isBlockScope()
386 Scope::BlockScope | Scope::TemplateParamScope | in isSwitchScope()
DScopeInfo.h609 BlockScopeInfo(DiagnosticsEngine &Diag, Scope *BlockScope, BlockDecl *Block) in BlockScopeInfo() argument
611 TheScope(BlockScope) in BlockScopeInfo()
/external/llvm-project/clang/include/clang/Sema/
DScope.h71 BlockScope = 0x40, enumerator
225 bool isBlockScope() const { return Flags & BlockScope; } in isBlockScope()
418 Scope::BlockScope | Scope::TemplateParamScope | in isSwitchScope()
DScopeInfo.h749 BlockScopeInfo(DiagnosticsEngine &Diag, Scope *BlockScope, BlockDecl *Block) in BlockScopeInfo() argument
751 TheScope(BlockScope) { in BlockScopeInfo()
/external/swiftshader/third_party/subzero/pnacl-llvm/
DNaClBitstreamReader.cpp74 BlockScope.push_back(Block(BitStream->getBlockInfo(BlockID), CodeAbbrev)); in EnterSubBlock()
81 if (BlockScope.back().getCodeAbbrev().NumBits == 0 || AtEndOfStream()) in EnterSubBlock()
255 NaClBitCodeAbbrev *Abbv = BlockScope.back().appendLocalCreate(); in ReadAbbrevRecord()
392 Block &CurBlock = BlockScope.back(); in ReadBlockInfoBlock()
/external/llvm/lib/Bitcode/Reader/
DBitstreamReader.cpp23 BlockScope.clear(); in freeState()
30 BlockScope.push_back(Block(CurCodeSize)); in EnterSubBlock()
31 BlockScope.back().PrevAbbrevs.swap(CurAbbrevs); in EnterSubBlock()
/external/llvm-project/clang/lib/AST/Interp/
DByteCodeStmtGen.cpp136 BlockScope<Emitter> Scope(this); in visitCompoundStmt()
190 BlockScope<Emitter> IfScope(this); in visitIfStmt()
DByteCodeExprGen.h309 template <class Emitter> class BlockScope final : public LocalScope<Emitter> {
311 BlockScope(ByteCodeExprGen<Emitter> *Ctx) : LocalScope<Emitter>(Ctx) {} in BlockScope() function
/external/llvm-project/llvm/lib/Bitstream/Reader/
DBitstreamReader.cpp23 BlockScope.push_back(Block(CurCodeSize)); in EnterSubBlock()
24 BlockScope.back().PrevAbbrevs.swap(CurAbbrevs); in EnterSubBlock()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitstream/Reader/
DBitstreamReader.cpp23 BlockScope.push_back(Block(CurCodeSize)); in EnterSubBlock()
24 BlockScope.back().PrevAbbrevs.swap(CurAbbrevs); in EnterSubBlock()
/external/clang/lib/Parse/
DParseExpr.cpp2774 ParseScope BlockScope(this, Scope::BlockScope | Scope::FnScope | in ParseBlockLiteralExpression() local
2856 BlockScope.Exit(); in ParseBlockLiteralExpression()
/external/llvm-project/clang/lib/Parse/
DParseExpr.cpp3448 ParseScope BlockScope(this, Scope::BlockScope | Scope::FnScope | in ParseBlockLiteralExpression() local
3526 BlockScope.Exit(); in ParseBlockLiteralExpression()

12