Lines Matching refs:NodeAttrs

55   uint16_t Kind = NodeAttrs::kind(Attrs);  in operator <<()
56 uint16_t Flags = NodeAttrs::flags(Attrs); in operator <<()
57 switch (NodeAttrs::type(Attrs)) { in operator <<()
58 case NodeAttrs::Code: in operator <<()
60 case NodeAttrs::Func: in operator <<()
63 case NodeAttrs::Block: in operator <<()
66 case NodeAttrs::Stmt: in operator <<()
69 case NodeAttrs::Phi: in operator <<()
77 case NodeAttrs::Ref: in operator <<()
78 if (Flags & NodeAttrs::Undef) in operator <<()
80 if (Flags & NodeAttrs::Dead) in operator <<()
82 if (Flags & NodeAttrs::Preserving) in operator <<()
84 if (Flags & NodeAttrs::Clobbering) in operator <<()
87 case NodeAttrs::Use: in operator <<()
90 case NodeAttrs::Def: in operator <<()
93 case NodeAttrs::Block: in operator <<()
106 if (Flags & NodeAttrs::Shadow) in operator <<()
114 if (RA.Addr->getFlags() & NodeAttrs::Fixed) in printRefHeader()
162 case NodeAttrs::Def: in operator <<()
165 case NodeAttrs::Use: in operator <<()
166 if (P.Obj.Addr->getFlags() & NodeAttrs::PhiRef) in operator <<()
250 case NodeAttrs::Phi: in operator <<()
253 case NodeAttrs::Stmt: in operator <<()
403 assert(NodeAttrs::type(Attrs) == NodeAttrs::Ref); in getRegRef()
404 if (NodeAttrs::flags(Attrs) & NodeAttrs::PhiRef) in getRegRef()
413 assert(NodeAttrs::type(Attrs) == NodeAttrs::Ref); in setRegRef()
414 assert(NodeAttrs::flags(Attrs) & NodeAttrs::PhiRef); in setRegRef()
421 assert(NodeAttrs::type(Attrs) == NodeAttrs::Ref); in setRegRef()
422 assert(!(NodeAttrs::flags(Attrs) & NodeAttrs::PhiRef)); in setRegRef()
432 if (NA.Addr->getType() == NodeAttrs::Code) in getOwner()
530 assert(NA.Addr->getType() == NodeAttrs::Code); in getOwner()
531 if (NA.Addr->getKind() == NodeAttrs::Block) in getOwner()
546 assert(M.Addr->getType() == NodeAttrs::Code); in addPhi()
547 if (M.Addr->getKind() == NodeAttrs::Stmt) { in addPhi()
554 assert(M.Addr->getKind() == NodeAttrs::Phi); in addPhi()
559 assert(MN.Addr->getType() == NodeAttrs::Code); in addPhi()
560 } while (MN.Addr->getKind() == NodeAttrs::Phi); in addPhi()
788 if (NA.Addr->getType() == NodeAttrs::Ref) { in cloneNode()
792 if (NA.Addr->getKind() == NodeAttrs::Def) { in cloneNode()
804 Use UA = newNode(NodeAttrs::Ref | NodeAttrs::Use | Flags); in newUse()
811 PhiUse PUA = newNode(NodeAttrs::Ref | NodeAttrs::Use | Flags); in newPhiUse()
812 assert(Flags & NodeAttrs::PhiRef); in newPhiUse()
819 Def DA = newNode(NodeAttrs::Ref | NodeAttrs::Def | Flags); in newDef()
825 Def DA = newNode(NodeAttrs::Ref | NodeAttrs::Def | Flags); in newDef()
826 assert(Flags & NodeAttrs::PhiRef); in newDef()
832 Phi PA = newNode(NodeAttrs::Code | NodeAttrs::Phi); in newPhi()
838 Stmt SA = newNode(NodeAttrs::Code | NodeAttrs::Stmt); in newStmt()
845 Block BA = newNode(NodeAttrs::Code | NodeAttrs::Block); in newBlock()
852 Func FA = newNode(NodeAttrs::Code | NodeAttrs::Func); in newFunc()
928 uint16_t PhiFlags = NodeAttrs::PhiRef | NodeAttrs::Preserving; in build()
955 uint16_t PhiFlags = NodeAttrs::PhiRef | NodeAttrs::Preserving; in build()
1053 if (!(DA.Addr->getFlags() & NodeAttrs::Clobbering)) in pushClobbers()
1101 if (DA.Addr->getFlags() & NodeAttrs::Clobbering) in pushDefs()
1177 if (IA.Addr->getKind() == NodeAttrs::Stmt) { in getNextRelated()
1184 assert(IA.Addr->getKind() == NodeAttrs::Phi); in getNextRelated()
1188 if (TA.Addr->getKind() != NodeAttrs::Use) in getNextRelated()
1228 uint16_t Flags = RA.Addr->getFlags() | NodeAttrs::Shadow; in getNextShadow()
1238 NA.Addr->setFlags(Flags | NodeAttrs::Shadow); in getNextShadow()
1294 uint16_t Flags = NodeAttrs::None; in buildStmt()
1296 Flags |= NodeAttrs::Preserving; in buildStmt()
1299 Flags |= NodeAttrs::Undef; in buildStmt()
1302 Flags |= NodeAttrs::Clobbering; in buildStmt()
1304 Flags |= NodeAttrs::Fixed; in buildStmt()
1306 Flags |= NodeAttrs::Dead; in buildStmt()
1319 uint16_t Flags = NodeAttrs::Clobbering | NodeAttrs::Fixed | NodeAttrs::Dead; in buildStmt()
1342 uint16_t Flags = NodeAttrs::None; in buildStmt()
1344 Flags |= NodeAttrs::Preserving; in buildStmt()
1347 Flags |= NodeAttrs::Undef; in buildStmt()
1350 Flags |= NodeAttrs::Clobbering; in buildStmt()
1352 Flags |= NodeAttrs::Fixed; in buildStmt()
1356 Flags |= NodeAttrs::Dead; in buildStmt()
1370 uint16_t Flags = NodeAttrs::None; in buildStmt()
1372 Flags |= NodeAttrs::Undef; in buildStmt()
1374 Flags |= NodeAttrs::Fixed; in buildStmt()
1439 uint16_t PhiFlags = NodeAttrs::PhiRef | NodeAttrs::Preserving; in buildPhis()
1468 if (M.Addr->getKind() != NodeAttrs::Def) in removeUnusedPhis()
1537 TAP.Addr->setFlags(TAP.Addr->getFlags() | NodeAttrs::Shadow); in linkRefUp()
1559 assert(Kind == NodeAttrs::Def || Kind == NodeAttrs::Use); in linkStmtRefs()
1563 assert(Kind != NodeAttrs::Def || !Defs.count(RR)); in linkStmtRefs()
1571 if (Kind == NodeAttrs::Use) in linkStmtRefs()
1573 else if (Kind == NodeAttrs::Def) in linkStmtRefs()
1587 return IsDef(RA) && (RA.Addr->getFlags() & NodeAttrs::Clobbering); in linkBlockRefs()
1590 return IsDef(RA) && !(RA.Addr->getFlags() & NodeAttrs::Clobbering); in linkBlockRefs()
1600 if (IA.Addr->getKind() == NodeAttrs::Stmt) { in linkBlockRefs()
1608 if (IA.Addr->getKind() == NodeAttrs::Stmt) in linkBlockRefs()
1624 if (NA.Addr->getKind() != NodeAttrs::Use) in linkBlockRefs()
1626 assert(NA.Addr->getFlags() & NodeAttrs::PhiRef); in linkBlockRefs()