Home
last modified time | relevance | path

Searched refs:NodeType (Results 1 – 25 of 84) sorted by relevance

1234

/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DDirectedGraph.h28 template <class NodeType, class EdgeType> class DGEdge {
32 explicit DGEdge(NodeType &N) : TargetNode(N) {} in DGEdge()
33 explicit DGEdge(const DGEdge<NodeType, EdgeType> &E) in DGEdge() argument
35 DGEdge<NodeType, EdgeType> &operator=(const DGEdge<NodeType, EdgeType> &E) {
48 const NodeType &getTargetNode() const { return TargetNode; } in getTargetNode()
49 NodeType &getTargetNode() { in getTargetNode()
50 return const_cast<NodeType &>( in getTargetNode()
51 static_cast<const DGEdge<NodeType, EdgeType> &>(*this).getTargetNode()); in getTargetNode()
55 void setTargetNode(const NodeType &N) { TargetNode = N; } in setTargetNode()
68 NodeType &TargetNode;
[all …]
H A DSCCIterator.h253 using NodeType = typename GT::NodeType; variable
255 using NodesType = std::vector<NodeType *>;
294 std::unordered_map<NodeType *, NodeInfo> NodeInfoMap;
350 std::queue<NodeType *> Queue; in scc_member_iterator()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DDependenceGraphBuilder.h36 using NodeType = typename GraphType::NodeType;
41 using NodeListType = SmallVector<NodeType *, 4>;
113 virtual NodeType &createRootNode() = 0;
116 virtual NodeType &createFineGrainedNode(Instruction &I) = 0;
120 virtual NodeType &createPiBlock(const NodeListType &L) = 0;
123 virtual EdgeType &createDefUseEdge(NodeType &Src, NodeType &Tgt) = 0;
126 virtual EdgeType &createMemoryEdge(NodeType &Src, NodeType &Tgt) = 0;
129 virtual EdgeType &createRootedEdge(NodeType &Src, NodeType &Tgt) = 0;
133 virtual const NodeListType &getNodesInPiBlock(const NodeType &N) = 0;
139 virtual void destroyNode(NodeType &N) { delete &N; } in destroyNode()
[all …]
H A DDDG.h255 template <typename NodeType> class DependenceGraphInfo {
271 NodeType &getRoot() const { in getRoot()
280 bool getDependencies(const NodeType &Src, const NodeType &Dst,
286 std::string getDependenceString(const NodeType &Src,
287 const NodeType &Dst) const;
300 NodeType *Root = nullptr;
311 using NodeType = DDGNode;
324 const PiBlockDDGNode *getPiBlock(const NodeType &N) const;
330 bool addNode(NodeType &N);
333 using PiBlockMapType = DenseMap<const NodeType *, const PiBlockDDGNode *>;
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DDependenceGraphBuilder.cpp81 df_iterator_default_set<const NodeType *, 4> Visited; in createAndConnectRootNode()
125 llvm::sort(NL, [&](NodeType *LHS, NodeType *RHS) { in createPiBlocks()
129 NodeType &PiNode = createPiBlock(NL); in createPiBlocks()
134 SmallPtrSet<NodeType *, 4> NodesInSCC(NL.begin(), NL.end()); in createPiBlocks()
138 for (NodeType *N : Graph) { in createPiBlocks()
162 auto createEdgeOfKind = [this](NodeType &Src, NodeType &Dst, in createPiBlocks()
179 auto reconnectEdges = [&](NodeType *Src, NodeType *Dst, NodeType *New, in createPiBlocks()
211 for (NodeType *SCCNode : NL) { in createPiBlocks()
229 for (NodeType *N : Graph) { in createDefUseEdges()
236 SmallPtrSet<NodeType *, 4> VisitedTargets; in createDefUseEdges()
[all …]
/openbsd-src/gnu/llvm/clang/utils/TableGen/
H A DClangSyntaxEmitter.cpp50 for (NodeType &N : AllTypes) { in Hierarchy()
51 llvm::sort(N.Derived, [](const NodeType *L, const NodeType *R) { in Hierarchy()
61 struct NodeType { struct in __anonc0f6d4e20111::Hierarchy
63 const NodeType *Base = nullptr; argument
64 std::vector<const NodeType *> Derived; argument
68 NodeType &get(llvm::StringRef Name = "Node") { in get()
75 void visit(llvm::function_ref<void(const NodeType &)> CB, in visit()
76 const NodeType *Start = nullptr) { in visit()
80 for (const NodeType *D : Start->Derived) in visit()
100 std::deque<NodeType> AllTypes;
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/Tooling/Syntax/
H A DSyntax.td37 // Defs derived from NodeType correspond to syntax tree node types.
38 // NodeType is also a syntax constraint: one node of this type.
39 class NodeType : Syntax {
40 // The NodeType that this node is derived from in the Node class hierarchy.
41 NodeType base = ?;
48 class External<NodeType base_> : NodeType { let base = base_; }
60 class Alternatives<NodeType base_ = Tree> : NodeType { let base = base_; }
64 class Unconstrained<NodeType base_ = Tree> : NodeType { let base = base_; }
79 class Sequence<NodeType base_ = Tree> : NodeType {
81 // Children must be Role or have a default role derived from the NodeType.
/openbsd-src/gnu/llvm/clang/include/clang/ASTMatchers/
H A DASTMatchersMacros.h232 template <typename NodeType> \
234 : public ::clang::ast_matchers::internal::MatcherInterface<NodeType> { \
236 bool matches(const NodeType &Node, \
248 template <typename NodeType> \
249 bool internal::matcher_##DefineMatcher##Matcher<NodeType>::matches( \
250 const NodeType &Node, \
271 template <typename NodeType, typename ParamT> \
273 : public ::clang::ast_matchers::internal::MatcherInterface<NodeType> { \
278 bool matches(const NodeType &Node, \
298 template <typename NodeType, typename ParamT> \
[all …]
H A DASTMatchersInternal.h1975 template <typename NodeType>
1977 equivalentBinaryOperator(const NodeType &Node) {
2056 template <typename NodeType>
2058 equivalentUnaryOperator(const NodeType &Node) {
2100 template <typename NodeType> inline const Expr *getLHS(const NodeType &Node) {
2110 template <typename NodeType> inline const Expr *getRHS(const NodeType &Node) {
2120 template <typename NodeType>
2121 inline const Expr *getSubExpr(const NodeType &Node) {
H A DASTMatchers.h5494 const Stmt *const Statement = internal::GetBodyMatcher<NodeType>::get(Node); in AST_POLYMORPHIC_MATCHER_P()
5538 const CompoundStmt *CS = CompoundStmtMatcher<NodeType>::get(Node); in AST_POLYMORPHIC_MATCHER_P()
5597 return internal::ValueEqualsMatcher<NodeType, ParamT>(Value)
5606 return internal::ValueEqualsMatcher<NodeType, ParamT>(Value)
5616 return internal::ValueEqualsMatcher<NodeType, ParamT>(Value)
5733 return internal::VariadicDynCastAllOfMatcher<Stmt, NodeType>()( in AST_POLYMORPHIC_MATCHER_P()
5753 return internal::VariadicDynCastAllOfMatcher<Stmt, NodeType>()( in AST_POLYMORPHIC_MATCHER_P2()
5795 internal::GetSourceExpressionMatcher<NodeType>::get(Node); in AST_POLYMORPHIC_MATCHER_P()
5820 const QualType NodeType = Node.getTypeAsWritten(); in AST_MATCHER_P() local
5821 return InnerMatcher.matches(NodeType, Finder, Builder); in AST_MATCHER_P()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/Analysis/
H A DCallGraph.h244 using NodeType = clang::CallGraphNode;
246 using ChildIteratorType = NodeType::iterator;
248 static NodeType *getEntryNode(clang::CallGraphNode *CGN) { return CGN; }
249 static ChildIteratorType child_begin(NodeType *N) { return N->begin(); }
250 static ChildIteratorType child_end(NodeType *N) { return N->end(); }
254 using NodeType = const clang::CallGraphNode;
256 using ChildIteratorType = NodeType::const_iterator;
258 static NodeType *getEntryNode(const clang::CallGraphNode *CGN) { return CGN; }
259 static ChildIteratorType child_begin(NodeType *N) { return N->begin();}
260 static ChildIteratorType child_end(NodeType *N) { return N->end(); }
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/IPO/
H A DProfiledCallGraph.h185 using NodeType = ProfiledCallGraphNode;
187 using EdgeType = NodeType::edge;
188 using ChildIteratorType = NodeType::const_iterator;
/openbsd-src/gnu/llvm/llvm/lib/Target/Lanai/
H A DLanaiISelDAGToDAG.cpp172 ISD::NodeType AluOperator = static_cast<ISD::NodeType>(Addr.getOpcode()); in selectAddrRiSpls()
227 ISD::NodeType AluOperator = static_cast<ISD::NodeType>(Addr.getOpcode()); in selectAddrRr()
H A DLanaiAluCode.h118 inline static AluCode isdToLanaiAluCode(ISD::NodeType Node_type) { in isdToLanaiAluCode()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DISDOpcodes.h40 enum NodeType { enum
1332 NodeType getVecReduceBaseOpcode(unsigned VecReduceOpcode);
1412 NodeType getExtForLoadExtType(bool IsFP, LoadExtType);
H A DSelectionDAGNodes.h466 int32_t NodeType;
644 unsigned getOpcode() const { return (unsigned)NodeType; }
648 bool isTargetOpcode() const { return NodeType >= ISD::BUILTIN_OP_END; }
656 return NodeType >= ISD::FIRST_TARGET_STRICTFP_OPCODE;
663 return NodeType >= ISD::FIRST_TARGET_MEMORY_OPCODE;
667 bool isUndef() const { return NodeType == ISD::UNDEF; }
675 return (NodeType == ISD::INTRINSIC_W_CHAIN ||
676 NodeType == ISD::INTRINSIC_VOID) &&
682 switch (NodeType) {
699 bool isMachineOpcode() const { return NodeType < 0; }
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DVPlanDominatorTree.h27 using NodeType = VPBlockBase;
/openbsd-src/gnu/llvm/llvm/utils/TableGen/
H A DDAGISelMatcher.cpp365 MVT::SimpleValueType NodeType = getOpcode().getKnownType(CT->getResNo()); in isContradictoryImpl() local
366 if (NodeType != MVT::Other) in isContradictoryImpl()
367 return TypesAreContradictory(NodeType, CT->getType()); in isContradictoryImpl()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64SelectionDAGInfo.h22 SDValue EmitMOPS(AArch64ISD::NodeType SDOpcode, SelectionDAG &DAG,
/openbsd-src/gnu/llvm/llvm/lib/Target/LoongArch/
H A DLoongArchISelLowering.h26 enum NodeType : unsigned { enum
173 ISD::NodeType getExtendForAtomicOps() const override { in getExtendForAtomicOps()
/openbsd-src/gnu/llvm/llvm/lib/Target/VE/
H A DVEISelLowering.h24 enum NodeType : unsigned { enum
121 ISD::NodeType getExtendForAtomicOps() const override { in getExtendForAtomicOps()
/openbsd-src/gnu/llvm/llvm/lib/Target/ARC/
H A DARCISelLowering.h29 enum NodeType : unsigned { enum
/openbsd-src/gnu/llvm/llvm/lib/Target/BPF/
H A DBPFISelLowering.h24 enum NodeType : unsigned { enum
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.h28 enum NodeType : unsigned { enum
481 ISD::NodeType getExtendForAtomicOps() const override { in getExtendForAtomicOps()
485 ISD::NodeType getExtendForAtomicCmpSwapArg() const override { in getExtendForAtomicCmpSwapArg()
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.h26 enum NodeType : unsigned { enum
603 ISD::NodeType getExtendForAtomicOps() const override { in getExtendForAtomicOps()
606 ISD::NodeType getExtendForAtomicCmpSwapArg() const override { in getExtendForAtomicCmpSwapArg()

1234