Lines Matching refs:NodeAttrs
52 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 <<()
67 if (Flags & NodeAttrs::Clobbering) in operator <<()
70 case NodeAttrs::Use: OS << 'u'; break; in operator <<()
71 case NodeAttrs::Def: OS << 'd'; break; in operator <<()
72 case NodeAttrs::Block: OS << 'b'; break; in operator <<()
81 if (Flags & NodeAttrs::Shadow) in operator <<()
91 if (RA.Addr->getFlags() & NodeAttrs::Fixed) in printRefHeader()
145 case NodeAttrs::Def: in operator <<()
148 case NodeAttrs::Use: in operator <<()
149 if (P.Obj.Addr->getFlags() & NodeAttrs::PhiRef) in operator <<()
221 case NodeAttrs::Phi: in operator <<()
224 case NodeAttrs::Stmt: in operator <<()
380 assert(NodeAttrs::type(Attrs) == NodeAttrs::Ref); in getRegRef()
381 if (NodeAttrs::flags(Attrs) & NodeAttrs::PhiRef) in getRegRef()
390 assert(NodeAttrs::type(Attrs) == NodeAttrs::Ref); in setRegRef()
391 assert(NodeAttrs::flags(Attrs) & NodeAttrs::PhiRef); in setRegRef()
398 assert(NodeAttrs::type(Attrs) == NodeAttrs::Ref); in setRegRef()
399 assert(!(NodeAttrs::flags(Attrs) & NodeAttrs::PhiRef)); in setRegRef()
408 if (NA.Addr->getType() == NodeAttrs::Code) in getOwner()
507 assert(NA.Addr->getType() == NodeAttrs::Code); in getOwner()
508 if (NA.Addr->getKind() == NodeAttrs::Block) in getOwner()
523 assert(M.Addr->getType() == NodeAttrs::Code); in addPhi()
524 if (M.Addr->getKind() == NodeAttrs::Stmt) { in addPhi()
531 assert(M.Addr->getKind() == NodeAttrs::Phi); in addPhi()
536 assert(MN.Addr->getType() == NodeAttrs::Code); in addPhi()
537 } while (MN.Addr->getKind() == NodeAttrs::Phi); in addPhi()
854 if (NA.Addr->getType() == NodeAttrs::Ref) { in cloneNode()
858 if (NA.Addr->getKind() == NodeAttrs::Def) { in cloneNode()
872 NodeAddr<UseNode*> UA = newNode(NodeAttrs::Ref | NodeAttrs::Use | Flags); in newUse()
879 NodeAddr<PhiUseNode*> PUA = newNode(NodeAttrs::Ref | NodeAttrs::Use | Flags); in newPhiUse()
880 assert(Flags & NodeAttrs::PhiRef); in newPhiUse()
888 NodeAddr<DefNode*> DA = newNode(NodeAttrs::Ref | NodeAttrs::Def | Flags); in newDef()
895 NodeAddr<DefNode*> DA = newNode(NodeAttrs::Ref | NodeAttrs::Def | Flags); in newDef()
896 assert(Flags & NodeAttrs::PhiRef); in newDef()
902 NodeAddr<PhiNode*> PA = newNode(NodeAttrs::Code | NodeAttrs::Phi); in newPhi()
909 NodeAddr<StmtNode*> SA = newNode(NodeAttrs::Code | NodeAttrs::Stmt); in newStmt()
917 NodeAddr<BlockNode*> BA = newNode(NodeAttrs::Code | NodeAttrs::Block); in newBlock()
924 NodeAddr<FuncNode*> FA = newNode(NodeAttrs::Code | NodeAttrs::Func); in newFunc()
956 uint16_t PhiFlags = NodeAttrs::PhiRef | NodeAttrs::Preserving; in build()
1100 if (TA.Addr->getKind() != NodeAttrs::Use) in getNextRelated()
1109 if (IA.Addr->getKind() == NodeAttrs::Stmt) in getNextRelated()
1147 uint16_t Flags = RA.Addr->getFlags() | NodeAttrs::Shadow; in getNextShadow()
1157 NA.Addr->setFlags(Flags | NodeAttrs::Shadow); in getNextShadow()
1167 uint16_t Flags = RA.Addr->getFlags() | NodeAttrs::Shadow; in getNextShadow()
1216 uint16_t Flags = NodeAttrs::None; in buildStmt()
1218 Flags |= NodeAttrs::Preserving; in buildStmt()
1220 Flags |= NodeAttrs::Clobbering; in buildStmt()
1222 Flags |= NodeAttrs::Fixed; in buildStmt()
1239 uint16_t Flags = NodeAttrs::None; in buildStmt()
1241 Flags |= NodeAttrs::Preserving; in buildStmt()
1243 Flags |= NodeAttrs::Clobbering; in buildStmt()
1245 Flags |= NodeAttrs::Fixed; in buildStmt()
1263 uint16_t Flags = NodeAttrs::None; in buildStmt()
1265 Flags |= NodeAttrs::Fixed; in buildStmt()
1311 assert(I.Addr->getType() == NodeAttrs::Code); in recordDefsForDF()
1312 assert(I.Addr->getKind() == NodeAttrs::Phi || in recordDefsForDF()
1313 I.Addr->getKind() == NodeAttrs::Stmt); in recordDefsForDF()
1416 uint16_t PhiFlags = NodeAttrs::PhiRef | NodeAttrs::Preserving; in buildPhis()
1453 if (M.Addr->getKind() != NodeAttrs::Def) in removeUnusedPhis()
1523 TAP.Addr->setFlags(TAP.Addr->getFlags() | NodeAttrs::Shadow); in linkRefUp()
1543 assert(Kind == NodeAttrs::Def || Kind == NodeAttrs::Use); in linkStmtRefs()
1546 if (Kind == NodeAttrs::Def && Defs.count(RR)) in linkStmtRefs()
1554 if (Kind == NodeAttrs::Use) in linkStmtRefs()
1556 else if (Kind == NodeAttrs::Def) in linkStmtRefs()
1576 if (IA.Addr->getKind() == NodeAttrs::Stmt) in linkBlockRefs()
1593 if (NA.Addr->getKind() != NodeAttrs::Use) in linkBlockRefs()
1595 assert(NA.Addr->getFlags() & NodeAttrs::PhiRef); in linkBlockRefs()