| /llvm-project-15.0.7/llvm/utils/TableGen/GlobalISel/ |
| H A D | GIMatchTree.cpp | 44 if (!Leaf.isFullyTraversed()) in writeDOTGraphNode() 46 if (!Leaf.isFullyTested()) in writeDOTGraphNode() 55 if (Leaf.isFullyTested()) in writeDOTGraphNode() 57 OS << "\\n" << Leaf.getName() << ": " << &Leaf; in writeDOTGraphNode() 222 LLVM_DEBUG(dbgs() << " " << Leaf.getName() << " (" << &Leaf.getInfo() << "\n"); in runStep() 223 TreeNode->addPossibleLeaf(Leaf.getInfo(), Leaf.isFullyTraversed(), in runStep() 288 Leaf.dump(errs()); in runStep() 362 for (auto &Leaf : Leaves) { in run() local 363 LLVM_DEBUG(Leaf.getMatchDag().writeDOTGraph(dbgs(), Leaf.getName())); in run() 365 *(Leaf.getMatchDag().roots().begin() + Leaf.getRootIdx()); in run() [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Syntax/ |
| H A D | Nodes.cpp | 222 return cast_or_null<syntax::Leaf>( in getSwitchKeyword() 232 return cast_or_null<syntax::Leaf>( in getCaseKeyword() 247 return cast_or_null<syntax::Leaf>( in getDefaultKeyword() 257 return cast_or_null<syntax::Leaf>( in getIfKeyword() 276 return cast_or_null<syntax::Leaf>( in getForKeyword() 286 return cast_or_null<syntax::Leaf>( in getWhileKeyword() 296 return cast_or_null<syntax::Leaf>( in getContinueKeyword() 301 return cast_or_null<syntax::Leaf>( in getBreakKeyword() 306 return cast_or_null<syntax::Leaf>( in getReturnKeyword() 316 return cast_or_null<syntax::Leaf>( in getForKeyword() [all …]
|
| H A D | Tree.cpp | 35 syntax::Leaf::Leaf(syntax::TokenManager::Key K) : Node(NodeKind::Leaf), K(K) {} in Leaf() function in syntax::Leaf 186 if (const auto *L = dyn_cast<syntax::Leaf>(N)) { in dumpNode() 231 if (const auto *L = dyn_cast<syntax::Leaf>(N)) { in dumpTokens() 268 assert(isa<Leaf>(C)); in assertInvariants() 283 const syntax::Leaf *syntax::Tree::findFirstLeaf() const { in findFirstLeaf() 285 if (const auto *L = dyn_cast<syntax::Leaf>(&C)) in findFirstLeaf() 293 const syntax::Leaf *syntax::Tree::findLastLeaf() const { in findLastLeaf() 295 if (const auto *L = dyn_cast<syntax::Leaf>(C)) in findLastLeaf() 328 Children.push_back({ElementWithoutDelimiter, cast<syntax::Leaf>(&C)}); in getElementsAsNodesAndDelimiters()
|
| H A D | Synthesis.cpp | 40 syntax::Leaf *clang::syntax::createLeaf(syntax::Arena &A, in createLeaf() 50 auto *Leaf = new (A.getAllocator()) syntax::Leaf( in createLeaf() local 52 syntax::FactoryImpl::setCanModify(Leaf); in createLeaf() 53 Leaf->assertInvariants(); in createLeaf() 54 return Leaf; in createLeaf() 57 syntax::Leaf *clang::syntax::createLeaf(syntax::Arena &A, in createLeaf() 72 case syntax::NodeKind::Leaf: in allocateTree() 220 if (const auto *L = dyn_cast<syntax::Leaf>(N)) in deepCopyExpandingMacros()
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Syntax/ |
| H A D | Nodes.h | 271 Leaf *getIfKeyword(); 282 Leaf *getForKeyword(); 326 Leaf *getForKeyword(); 344 Leaf *getLbrace(); 347 Leaf *getRbrace(); 507 Leaf *getLparen(); 508 Leaf *getRparen(); 520 Leaf *getLbracket(); 522 Leaf *getRbracket(); 564 Leaf *getLparen(); [all …]
|
| H A D | Tree.h | 132 class Leaf final : public Node { 134 Leaf(TokenManager::Key K); 184 const Leaf *findFirstLeaf() const; 185 Leaf *findFirstLeaf() { in findFirstLeaf() 186 return const_cast<Leaf *>(const_cast<const Tree *>(this)->findFirstLeaf()); in findFirstLeaf() 189 const Leaf *findLastLeaf() const; 190 Leaf *findLastLeaf() { in findLastLeaf() 191 return const_cast<Leaf *>(const_cast<const Tree *>(this)->findLastLeaf()); in findLastLeaf() 258 Leaf *delimiter;
|
| H A D | BuildTree.h | 33 syntax::Leaf *createLeaf(syntax::Arena &A, TokenBufferTokenManager &TBTM, 38 syntax::Leaf *createLeaf(syntax::Arena &A, TokenBufferTokenManager &TBTM,
|
| H A D | Syntax.td | 12 // - Leaves, owning exactly one token. (syntax::Leaf) 52 def Leaf : External<Node> {} 78 // are permitted (for Leaf nodes). These invariants are not enforced.
|
| /llvm-project-15.0.7/clang/unittests/Tooling/Syntax/ |
| H A D | SynthesisTest.cpp | 47 auto *Leaf = createLeaf(*Arena, *TM, tok::comma); in TEST_P() local 49 EXPECT_TRUE(treeDumpEqual(Leaf, R"txt( in TEST_P() 60 auto *Leaf = createLeaf(*Arena, *TM, tok::coloncolon); in TEST_P() local 62 EXPECT_TRUE(treeDumpEqual(Leaf, R"txt( in TEST_P() 70 auto *Leaf = createLeaf(*Arena, *TM, tok::kw_if); in TEST_P() local 72 EXPECT_TRUE(treeDumpEqual(Leaf, R"txt( in TEST_P() 83 auto *Leaf = createLeaf(*Arena, *TM, tok::kw_nullptr); in TEST_P() local 85 EXPECT_TRUE(treeDumpEqual(Leaf, R"txt( in TEST_P() 93 auto *Leaf = createLeaf(*Arena, *TM, tok::identifier, "a"); in TEST_P() local 95 EXPECT_TRUE(treeDumpEqual(Leaf, R"txt( in TEST_P() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | LowerSwitch.cpp | 167 if (Leaf.Low == Leaf.High) { in NewLeafBlock() 173 if (Leaf.Low == LowerBound) { in NewLeafBlock() 175 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SLE, Val, Leaf.High, in NewLeafBlock() 177 } else if (Leaf.High == UpperBound) { in NewLeafBlock() 179 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_SGE, Val, Leaf.Low, in NewLeafBlock() 181 } else if (Leaf.Low->isZero()) { in NewLeafBlock() 183 Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_ULE, Val, Leaf.High, in NewLeafBlock() 187 Constant *NegLo = ConstantExpr::getNeg(Leaf.Low); in NewLeafBlock() 190 Constant *UpperBound = ConstantExpr::getAdd(NegLo, Leaf.High); in NewLeafBlock() 197 BasicBlock *Succ = Leaf.BB; in NewLeafBlock() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerIO.cpp | 171 static bool MkDirRecursiveInner(const std::string &Leaf) { in MkDirRecursiveInner() argument 173 if (Leaf == ".") in MkDirRecursiveInner() 176 const std::string &Dir = DirName(Leaf); in MkDirRecursiveInner() 179 MkDir(Leaf); in MkDirRecursiveInner() 180 return IsDirectory(Leaf); in MkDirRecursiveInner() 189 MkDir(Leaf); in MkDirRecursiveInner() 190 return IsDirectory(Leaf); in MkDirRecursiveInner()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | IntervalMap.h | 1196 Leaf *L = newNode<Leaf>(); in branchRoot() 1393 return &path.template leaf<Leaf>() == &RHS.path.template leaf<Leaf>(); 1637 Leaf &Node = P.leaf<Leaf>(); in canCoalesceLeft() 1641 Leaf &Node = NR.get<Leaf>(); in canCoalesceLeft() 1666 Leaf &Node = P.leaf<Leaf>(); in canCoalesceRight() 1669 Leaf &Node = NR.get<Leaf>(); in canCoalesceRight() 1830 Leaf &SibLeaf = Sib.get<Leaf>(); in treeInsert() 1839 Leaf &CurLeaf = P.leaf<Leaf>(); in treeInsert() 1865 if (Size > Leaf::Capacity) { in treeInsert() 1866 overflow<Leaf>(P.height()); in treeInsert() [all …]
|
| /llvm-project-15.0.7/clang/lib/Rewrite/ |
| H A D | RewriteRope.cpp | 621 if (auto *Leaf = dyn_cast<RopePieceBTreeLeaf>(this)) in Destroy() local 622 delete Leaf; in Destroy() 635 if (auto *Leaf = dyn_cast<RopePieceBTreeLeaf>(this)) in split() local 636 return Leaf->split(Offset); in split() 649 if (auto *Leaf = dyn_cast<RopePieceBTreeLeaf>(this)) in insert() local 650 return Leaf->insert(Offset, R); in insert() 658 if (auto *Leaf = dyn_cast<RopePieceBTreeLeaf>(this)) in erase() local 659 return Leaf->erase(Offset, NumBytes); in erase() 739 if (auto *Leaf = dyn_cast<RopePieceBTreeLeaf>(getRoot(Root))) in clear() local 740 Leaf->clear(); in clear()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86InstrSGX.td | 18 // ENCLS - Execute an Enclave System Function of Specified Leaf Number 22 // ENCLU - Execute an Enclave User Function of Specified Leaf Number 26 // ENCLV - Execute an Enclave VMM Function of Specified Leaf Number
|
| /llvm-project-15.0.7/llvm/test/MC/COFF/ |
| H A D | cv-def-range.s | 42 .short 4609 # Leaf type: LF_ARGLIST 45 .short 4104 # Leaf type: LF_PROCEDURE 52 .short 5633 # Leaf type: LF_FUNC_ID
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Thumb2/ |
| H A D | frame-pointer.ll | 5 ; Leaf function, no frame so no need for a frame pointer. 15 ; Leaf function, frame pointer is requested but we don't need any stack frame, 26 ; Leaf function, frame pointer is requested and we need a stack frame, so we 37 ; Leaf function, frame pointer is requested and we need a stack frame, so we 52 ; Leaf function, frame pointer requested for non-leaf functions only, so no
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | subclassing-restricted-attr.m | 6 @interface Leaf // okay interface 10 @interface SubClassOfLeaf : Leaf // expected-note {{class is declared here}}
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | SuffixTree.h | 299 for (SuffixTreeNode *Leaf : LeafChildren) in advance() 300 RS.StartIndices.push_back(Leaf->SuffixIdx); in advance()
|
| /llvm-project-15.0.7/llvm/utils/TableGen/ |
| H A D | GICombinerEmitter.cpp | 735 for (const auto &Leaf : Tree.possible_leaves()) { in generateCodeForTree() local 736 OS << Indent << "// Leaf name: " << Leaf.getName() << "\n"; in generateCodeForTree() 738 const CombineRule *Rule = Leaf.getTargetData<CombineRule>(); in generateCodeForTree() 746 for (const auto &VarBinding : Leaf.var_bindings()) { in generateCodeForTree() 774 for (const GIMatchDagPredicate *Predicate : Leaf.untested_predicates()) { in generateCodeForTree() 822 assert(Leaf.isFullyTraversed()); in generateCodeForTree() 828 if (Leaf.isFullyTested() && in generateCodeForTree()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/ |
| H A D | CVTypeVisitor.cpp | 171 TypeLeafKind Leaf; in visitFieldListMemberStream() local 173 if (auto EC = Reader.readEnum(Leaf)) in visitFieldListMemberStream() 177 Record.Kind = Leaf; in visitFieldListMemberStream()
|
| H A D | CodeViewRecordIO.cpp | 93 uint8_t Leaf = Reader->peek(); in skipPadding() local 94 if (Leaf < LF_PAD0) in skipPadding() 98 unsigned BytesToAdvance = Leaf & 0x0F; in skipPadding()
|
| /llvm-project-15.0.7/llvm/lib/ObjectYAML/ |
| H A D | CodeViewYAMLTypes.cpp | 683 Result.Leaf = Impl; in fromCodeViewRecordImpl() 705 return Leaf->toCodeViewRecord(Serializer); in toCodeViewRecord() 726 Obj.Leaf = std::make_shared<LeafRecordImpl<ConcreteType>>(Kind); in mapLeafRecordImpl() 729 Obj.Leaf->map(IO); in mapLeafRecordImpl() 731 IO.mapRequired(Class, *Obj.Leaf); in mapLeafRecordImpl() 737 Kind = Obj.Leaf->Kind; in mapping() 809 for (const auto &Leaf : Leafs) { in toDebugT() local 810 CVType T = Leaf.Leaf->toCodeViewRecord(TS); in toDebugT()
|
| /llvm-project-15.0.7/mlir/lib/TableGen/ |
| H A D | Predicate.cpp | 92 Leaf, enumerator 120 return PredCombinerKind::Leaf; in getPredCombinerKind() 318 if (root.kind == PredCombinerKind::Leaf) in getCombinedCondition()
|
| /llvm-project-15.0.7/llvm/tools/llvm-xray/ |
| H A D | xray-stacks.cpp | 467 auto *Leaf = *CurrentStack.begin(); in printStack() local 469 std::accumulate(Leaf->ExtraData.TerminalDurations.begin(), in printStack() 470 Leaf->ExtraData.TerminalDurations.end(), 0LL); in printStack() 471 auto LeafFuncId = FN.SymbolOrNumber(Leaf->FuncId); in printStack() 475 Leaf->ExtraData.TerminalDurations.size(), LeafSum); in printStack()
|
| /llvm-project-15.0.7/llvm/include/llvm/ObjectYAML/ |
| H A D | CodeViewYAMLTypes.h | 46 std::shared_ptr<detail::LeafRecordBase> Leaf; member
|