Home
last modified time | relevance | path

Searched refs:NodeAttrs (Results 1 – 14 of 14) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DRDFGraph.cpp73 uint16_t Kind = NodeAttrs::kind(Attrs); in operator <<()
74 uint16_t Flags = NodeAttrs::flags(Attrs); in operator <<()
75 switch (NodeAttrs::type(Attrs)) { in operator <<()
76 case NodeAttrs::Code: in operator <<()
78 case NodeAttrs::Func: OS << 'f'; break; in operator <<()
79 case NodeAttrs::Block: OS << 'b'; break; in operator <<()
80 case NodeAttrs::Stmt: OS << 's'; break; in operator <<()
81 case NodeAttrs::Phi: OS << 'p'; break; in operator <<()
85 case NodeAttrs::Ref: in operator <<()
86 if (Flags & NodeAttrs::Undef) in operator <<()
[all …]
DRDFGraph.h265 struct NodeAttrs { struct
455 uint16_t getType() const { return NodeAttrs::type(Attrs); } in getType()
456 uint16_t getKind() const { return NodeAttrs::kind(Attrs); } in getKind()
457 uint16_t getFlags() const { return NodeAttrs::flags(Attrs); } in getFlags()
462 void setFlags(uint16_t F) { setAttrs(NodeAttrs::set_flags(getAttrs(), F)); } in setFlags()
522 assert(!(getFlags() & NodeAttrs::PhiRef)); in getOp()
544 assert(getType() == NodeAttrs::Ref); in isUse()
545 return getKind() == NodeAttrs::Use; in isUse()
549 assert(getType() == NodeAttrs::Ref); in isDef()
550 return getKind() == NodeAttrs::Def; in isDef()
[all …]
DRDFLiveness.cpp120 if (RefA.Addr->getFlags() & NodeAttrs::Undef) in getAllReachingDefs()
144 if (TA.Addr->getFlags() & NodeAttrs::PhiRef) in getAllReachingDefs()
163 bool IsPhi = TA.Addr->getFlags() & NodeAttrs::PhiRef; in getAllReachingDefs()
172 if (IA.Addr->getKind() == NodeAttrs::Stmt) in getAllReachingDefs()
174 assert(IA.Addr->getKind() == NodeAttrs::Phi); in getAllReachingDefs()
188 bool StmtA = OA.Addr->getKind() == NodeAttrs::Stmt; in getAllReachingDefs()
189 bool StmtB = OB.Addr->getKind() == NodeAttrs::Stmt; in getAllReachingDefs()
229 return TA.Addr->getKind() == NodeAttrs::Def && in getAllReachingDefs()
236 bool IsPhi = DFG.IsCode<NodeAttrs::Phi>(TA); in getAllReachingDefs()
256 if (!FullChain || !(Flags & NodeAttrs::PhiRef)) in getAllReachingDefs()
[all …]
DRDFDeadCode.cpp84 if (!DFG.IsCode<NodeAttrs::Stmt>(IA)) in scanInstr()
162 if (DFG.IsCode<NodeAttrs::Stmt>(IA)) in collect()
190 if (Type == NodeAttrs::Ref) { in erase()
197 if (Kind == NodeAttrs::Stmt || Kind == NodeAttrs::Phi) { in erase()
211 if (KindA == NodeAttrs::Use && KindB == NodeAttrs::Def) in erase()
213 if (KindA == NodeAttrs::Def && KindB == NodeAttrs::Use) in erase()
234 if (!DFG.IsCode<NodeAttrs::Stmt>(IA)) in erase()
DRDFCopy.cpp74 if (DFG.IsCode<NodeAttrs::Stmt>(IA)) { in scanBlock()
93 if (RA.Addr->getKind() == NodeAttrs::Def) in getLocalReachingDef()
95 assert(RA.Addr->getKind() == NodeAttrs::Use); in getLocalReachingDef()
160 if ((F & NodeAttrs::PhiRef) || (F & NodeAttrs::Fixed)) in run()
166 assert(DFG.IsCode<NodeAttrs::Stmt>(IA)); in run()
DHexagonOptAddrMode.cpp180 if (UA.Addr->getFlags() & NodeAttrs::PhiRef) in canRemoveAddasl()
190 if ((OffsetRegDN.Addr->getFlags() & NodeAttrs::PhiRef) && in canRemoveAddasl()
261 if (UA.Addr->getFlags() & NodeAttrs::PhiRef) { in getAllRealUses()
304 if (UA.Addr->getFlags() & NodeAttrs::PhiRef) in isSafeToExtLR()
317 if ((LRExtRegDN.Addr->getFlags() & NodeAttrs::PhiRef) && in isSafeToExtLR()
395 assert(!(UseN.Addr->getFlags() & NodeAttrs::PhiRef) && in processAddUses()
613 assert(!(UseUN.Addr->getFlags() & NodeAttrs::PhiRef) && in changeAddAsl()
688 if (!DFG->IsCode<NodeAttrs::Stmt>(IA)) in processBlock()
742 assert(!(UseN.Addr->getFlags() & NodeAttrs::PhiRef) && in processBlock()
DHexagonRDFOpt.cpp164 for (auto TA : BA.Addr->members_if(DFG.IsCode<NodeAttrs::Stmt>, DFG)) { in run()
216 if (!getDFG().IsCode<NodeAttrs::Stmt>(IA)) in rewrite()
/external/llvm/lib/Target/Hexagon/
DRDFGraph.cpp52 uint16_t Kind = NodeAttrs::kind(Attrs); in operator <<()
53 uint16_t Flags = NodeAttrs::flags(Attrs); in operator <<()
54 switch (NodeAttrs::type(Attrs)) { in operator <<()
55 case NodeAttrs::Code: in operator <<()
57 case NodeAttrs::Func: OS << 'f'; break; in operator <<()
58 case NodeAttrs::Block: OS << 'b'; break; in operator <<()
59 case NodeAttrs::Stmt: OS << 's'; break; in operator <<()
60 case NodeAttrs::Phi: OS << 'p'; break; in operator <<()
64 case NodeAttrs::Ref: in operator <<()
65 if (Flags & NodeAttrs::Preserving) in operator <<()
[all …]
DRDFGraph.h228 struct NodeAttrs { struct
417 uint16_t getType() const { return NodeAttrs::type(Attrs); } in getType()
418 uint16_t getKind() const { return NodeAttrs::kind(Attrs); } in getKind()
419 uint16_t getFlags() const { return NodeAttrs::flags(Attrs); } in getFlags()
424 void setFlags(uint16_t F) { setAttrs(NodeAttrs::set_flags(getAttrs(), F)); } in setFlags()
480 assert(!(getFlags() & NodeAttrs::PhiRef)); in getOp()
498 assert(getType() == NodeAttrs::Ref); in isUse()
499 return getKind() == NodeAttrs::Use; in isUse()
502 assert(getType() == NodeAttrs::Ref); in isDef()
503 return getKind() == NodeAttrs::Def; in isDef()
[all …]
DRDFLiveness.cpp108 if (TA.Addr->getFlags() & NodeAttrs::PhiRef) in getAllReachingDefs()
114 if (!(Flags & NodeAttrs::Preserving)) in getAllReachingDefs()
129 bool IsPhi = TA.Addr->getFlags() & NodeAttrs::PhiRef; in getAllReachingDefs()
138 if (IA.Addr->getKind() == NodeAttrs::Stmt) in getAllReachingDefs()
140 assert(IA.Addr->getKind() == NodeAttrs::Phi); in getAllReachingDefs()
154 bool StmtA = OA.Addr->getKind() == NodeAttrs::Stmt; in getAllReachingDefs()
155 bool StmtB = OB.Addr->getKind() == NodeAttrs::Stmt; in getAllReachingDefs()
196 return TA.Addr->getKind() == NodeAttrs::Def && in getAllReachingDefs()
203 bool IsPhi = DFG.IsCode<NodeAttrs::Phi>(TA); in getAllReachingDefs()
223 if (!FullChain || !(Flags & NodeAttrs::PhiRef)) in getAllReachingDefs()
[all …]
DRDFDeadCode.cpp73 if (!DFG.IsCode<NodeAttrs::Stmt>(IA)) in scanInstr()
151 if (DFG.IsCode<NodeAttrs::Stmt>(IA)) in collect()
179 if (Type == NodeAttrs::Ref) { in erase()
186 if (Kind == NodeAttrs::Stmt || Kind == NodeAttrs::Phi) { in erase()
200 if (KindA == NodeAttrs::Use && KindB == NodeAttrs::Def) in erase()
202 if (KindA == NodeAttrs::Def && KindB == NodeAttrs::Use) in erase()
223 if (!DFG.IsCode<NodeAttrs::Stmt>(IA)) in erase()
DRDFCopy.cpp123 if (DFG.IsCode<NodeAttrs::Stmt>(IA)) { in scanBlock()
198 if ((F & NodeAttrs::PhiRef) || (F & NodeAttrs::Fixed)) in run()
204 assert(DFG.IsCode<NodeAttrs::Stmt>(IA)); in run()
DHexagonOptAddrMode.cpp161 if ((UA.Addr->getFlags() & NodeAttrs::PhiRef) || in canRemoveAddasl()
168 if ((OffsetRegDN.Addr->getFlags() & NodeAttrs::PhiRef) && in canRemoveAddasl()
229 if (UA.Addr->getFlags() & NodeAttrs::PhiRef) { in getAllRealUses()
435 assert(!(UseUN.Addr->getFlags() & NodeAttrs::PhiRef) && in changeAddAsl()
510 if (!DFG->IsCode<NodeAttrs::Stmt>(IA)) in processBlock()
546 assert(!(UseN.Addr->getFlags() & NodeAttrs::PhiRef) && in processBlock()
DHexagonRDFOpt.cpp148 for (auto TA : BA.Addr->members_if(DFG.IsCode<NodeAttrs::Stmt>, DFG)) { in run()
202 if (!getDFG().IsCode<NodeAttrs::Stmt>(IA)) in rewrite()