Lines Matching refs:NodeAttrs
68 uint16_t Kind = NodeAttrs::kind(Attrs); in operator <<()
69 uint16_t Flags = NodeAttrs::flags(Attrs); in operator <<()
70 switch (NodeAttrs::type(Attrs)) { in operator <<()
71 case NodeAttrs::Code: in operator <<()
73 case NodeAttrs::Func: OS << 'f'; break; in operator <<()
74 case NodeAttrs::Block: OS << 'b'; break; in operator <<()
75 case NodeAttrs::Stmt: OS << 's'; break; in operator <<()
76 case NodeAttrs::Phi: OS << 'p'; break; in operator <<()
80 case NodeAttrs::Ref: in operator <<()
81 if (Flags & NodeAttrs::Undef) in operator <<()
83 if (Flags & NodeAttrs::Dead) in operator <<()
85 if (Flags & NodeAttrs::Preserving) in operator <<()
87 if (Flags & NodeAttrs::Clobbering) in operator <<()
90 case NodeAttrs::Use: OS << 'u'; break; in operator <<()
91 case NodeAttrs::Def: OS << 'd'; break; in operator <<()
92 case NodeAttrs::Block: OS << 'b'; break; in operator <<()
101 if (Flags & NodeAttrs::Shadow) in operator <<()
110 if (RA.Addr->getFlags() & NodeAttrs::Fixed) in printRefHeader()
159 case NodeAttrs::Def: in operator <<()
162 case NodeAttrs::Use: in operator <<()
163 if (P.Obj.Addr->getFlags() & NodeAttrs::PhiRef) in operator <<()
250 case NodeAttrs::Phi: in operator <<()
253 case NodeAttrs::Stmt: in operator <<()
407 assert(NodeAttrs::type(Attrs) == NodeAttrs::Ref); in getRegRef()
408 if (NodeAttrs::flags(Attrs) & NodeAttrs::PhiRef) in getRegRef()
417 assert(NodeAttrs::type(Attrs) == NodeAttrs::Ref); in setRegRef()
418 assert(NodeAttrs::flags(Attrs) & NodeAttrs::PhiRef); in setRegRef()
425 assert(NodeAttrs::type(Attrs) == NodeAttrs::Ref); in setRegRef()
426 assert(!(NodeAttrs::flags(Attrs) & NodeAttrs::PhiRef)); in setRegRef()
436 if (NA.Addr->getType() == NodeAttrs::Code) in getOwner()
535 assert(NA.Addr->getType() == NodeAttrs::Code); in getOwner()
536 if (NA.Addr->getKind() == NodeAttrs::Block) in getOwner()
551 assert(M.Addr->getType() == NodeAttrs::Code); in addPhi()
552 if (M.Addr->getKind() == NodeAttrs::Stmt) { in addPhi()
559 assert(M.Addr->getKind() == NodeAttrs::Phi); in addPhi()
564 assert(MN.Addr->getType() == NodeAttrs::Code); in addPhi()
565 } while (MN.Addr->getKind() == NodeAttrs::Phi); in addPhi()
791 if (NA.Addr->getType() == NodeAttrs::Ref) { in cloneNode()
795 if (NA.Addr->getKind() == NodeAttrs::Def) { in cloneNode()
808 NodeAddr<UseNode*> UA = newNode(NodeAttrs::Ref | NodeAttrs::Use | Flags); in newUse()
815 NodeAddr<PhiUseNode*> PUA = newNode(NodeAttrs::Ref | NodeAttrs::Use | Flags); in newPhiUse()
816 assert(Flags & NodeAttrs::PhiRef); in newPhiUse()
824 NodeAddr<DefNode*> DA = newNode(NodeAttrs::Ref | NodeAttrs::Def | Flags); in newDef()
831 NodeAddr<DefNode*> DA = newNode(NodeAttrs::Ref | NodeAttrs::Def | Flags); in newDef()
832 assert(Flags & NodeAttrs::PhiRef); in newDef()
838 NodeAddr<PhiNode*> PA = newNode(NodeAttrs::Code | NodeAttrs::Phi); in newPhi()
845 NodeAddr<StmtNode*> SA = newNode(NodeAttrs::Code | NodeAttrs::Stmt); in newStmt()
853 NodeAddr<BlockNode*> BA = newNode(NodeAttrs::Code | NodeAttrs::Block); in newBlock()
860 NodeAddr<FuncNode*> FA = newNode(NodeAttrs::Code | NodeAttrs::Func); in newFunc()
909 uint16_t PhiFlags = NodeAttrs::PhiRef | NodeAttrs::Preserving; in build()
934 uint16_t PhiFlags = NodeAttrs::PhiRef | NodeAttrs::Preserving; in build()
1032 if (!(DA.Addr->getFlags() & NodeAttrs::Clobbering)) in pushClobbers()
1078 if (DA.Addr->getFlags() & NodeAttrs::Clobbering) in pushDefs()
1155 if (TA.Addr->getKind() != NodeAttrs::Use) in getNextRelated()
1164 if (IA.Addr->getKind() == NodeAttrs::Stmt) in getNextRelated()
1202 uint16_t Flags = RA.Addr->getFlags() | NodeAttrs::Shadow; in getNextShadow()
1212 NA.Addr->setFlags(Flags | NodeAttrs::Shadow); in getNextShadow()
1222 uint16_t Flags = RA.Addr->getFlags() | NodeAttrs::Shadow; in getNextShadow()
1280 uint16_t Flags = NodeAttrs::None; in buildStmt()
1282 Flags |= NodeAttrs::Preserving; in buildStmt()
1285 Flags |= NodeAttrs::Undef; in buildStmt()
1288 Flags |= NodeAttrs::Clobbering; in buildStmt()
1290 Flags |= NodeAttrs::Fixed; in buildStmt()
1292 Flags |= NodeAttrs::Dead; in buildStmt()
1305 uint16_t Flags = NodeAttrs::Clobbering | NodeAttrs::Fixed | in buildStmt()
1306 NodeAttrs::Dead; in buildStmt()
1326 uint16_t Flags = NodeAttrs::None; in buildStmt()
1328 Flags |= NodeAttrs::Preserving; in buildStmt()
1331 Flags |= NodeAttrs::Undef; in buildStmt()
1334 Flags |= NodeAttrs::Clobbering; in buildStmt()
1336 Flags |= NodeAttrs::Fixed; in buildStmt()
1340 Flags |= NodeAttrs::Dead; in buildStmt()
1354 uint16_t Flags = NodeAttrs::None; in buildStmt()
1356 Flags |= NodeAttrs::Undef; in buildStmt()
1358 Flags |= NodeAttrs::Fixed; in buildStmt()
1474 uint16_t PhiFlags = NodeAttrs::PhiRef | NodeAttrs::Preserving; in buildPhis()
1510 if (M.Addr->getKind() != NodeAttrs::Def) in removeUnusedPhis()
1580 TAP.Addr->setFlags(TAP.Addr->getFlags() | NodeAttrs::Shadow); in linkRefUp()
1603 assert(Kind == NodeAttrs::Def || Kind == NodeAttrs::Use); in linkStmtRefs()
1607 assert(Kind != NodeAttrs::Def || !Defs.count(RR)); in linkStmtRefs()
1615 if (Kind == NodeAttrs::Use) in linkStmtRefs()
1617 else if (Kind == NodeAttrs::Def) in linkStmtRefs()
1631 return IsDef(RA) && (RA.Addr->getFlags() & NodeAttrs::Clobbering); in linkBlockRefs()
1634 return IsDef(RA) && !(RA.Addr->getFlags() & NodeAttrs::Clobbering); in linkBlockRefs()
1644 if (IA.Addr->getKind() == NodeAttrs::Stmt) { in linkBlockRefs()
1652 if (IA.Addr->getKind() == NodeAttrs::Stmt) in linkBlockRefs()
1668 if (NA.Addr->getKind() != NodeAttrs::Use) in linkBlockRefs()
1670 assert(NA.Addr->getFlags() & NodeAttrs::PhiRef); in linkBlockRefs()