• Home
  • Raw
  • Download

Lines Matching refs:SDNode

111 bool ISD::isBuildVectorAllOnes(const SDNode *N) {  in isBuildVectorAllOnes()
152 bool ISD::isBuildVectorAllZeros(const SDNode *N) { in isBuildVectorAllZeros()
192 bool ISD::isScalarToVector(const SDNode *N) { in isScalarToVector()
356 static void AddNodeIDCustom(FoldingSetNodeID &ID, const SDNode *N) { in AddNodeIDCustom()
459 static void AddNodeIDNode(FoldingSetNodeID &ID, const SDNode *N) { in AddNodeIDNode()
492 static bool doNotCSE(SDNode *N) { in doNotCSE()
518 SmallVector<SDNode*, 128> DeadNodes; in RemoveDeadNodes()
533 void SelectionDAG::RemoveDeadNodes(SmallVectorImpl<SDNode *> &DeadNodes, in RemoveDeadNodes()
539 SDNode *N = DeadNodes.pop_back_val(); in RemoveDeadNodes()
549 for (SDNode::op_iterator I = N->op_begin(), E = N->op_end(); I != E; ) { in RemoveDeadNodes()
551 SDNode *Operand = Use.getNode(); in RemoveDeadNodes()
563 void SelectionDAG::RemoveDeadNode(SDNode *N, DAGUpdateListener *UpdateListener){ in RemoveDeadNode()
564 SmallVector<SDNode*, 16> DeadNodes(1, N); in RemoveDeadNode()
568 void SelectionDAG::DeleteNode(SDNode *N) { in DeleteNode()
577 void SelectionDAG::DeleteNodeNotInCSEMaps(SDNode *N) { in DeleteNodeNotInCSEMaps()
587 void SelectionDAG::DeallocateNode(SDNode *N) { in DeallocateNode()
610 bool SelectionDAG::RemoveNodeFromCSEMaps(SDNode *N) { in RemoveNodeFromCSEMaps()
667 SelectionDAG::AddModifiedNodeToCSEMaps(SDNode *N, in AddModifiedNodeToCSEMaps()
672 SDNode *Existing = CSEMap.GetOrInsertNode(N); in AddModifiedNodeToCSEMaps()
697 SDNode *SelectionDAG::FindModifiedNodeSlot(SDNode *N, SDValue Op, in FindModifiedNodeSlot()
706 SDNode *Node = CSEMap.FindNodeOrInsertPos(ID, InsertPos); in FindModifiedNodeSlot()
714 SDNode *SelectionDAG::FindModifiedNodeSlot(SDNode *N, in FindModifiedNodeSlot()
724 SDNode *Node = CSEMap.FindNodeOrInsertPos(ID, InsertPos); in FindModifiedNodeSlot()
733 SDNode *SelectionDAG::FindModifiedNodeSlot(SDNode *N, in FindModifiedNodeSlot()
742 SDNode *Node = CSEMap.FindNodeOrInsertPos(ID, InsertPos); in FindModifiedNodeSlot()
748 static void VerifyNodeCommon(SDNode *N) { in VerifyNodeCommon()
772 for (SDNode::op_iterator I = N->op_begin(), E = N->op_end(); I != E; ++I) in VerifyNodeCommon()
783 static void VerifySDNode(SDNode *N) { in VerifySDNode()
811 static void VerifyMachineNode(SDNode *N) { in VerifyMachineNode()
870 static_cast<SDNode*>(0)); in clear()
936 SDNode *N = NULL; in getConstant()
978 SDNode *N = NULL; in getConstantFP()
1049 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getGlobalAddress()
1052 SDNode *N = new (NodeAllocator) GlobalAddressSDNode(Opc, DL, GV, VT, in getGlobalAddress()
1065 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getFrameIndex()
1068 SDNode *N = new (NodeAllocator) FrameIndexSDNode(FI, VT, isTarget); in getFrameIndex()
1084 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getJumpTable()
1087 SDNode *N = new (NodeAllocator) JumpTableSDNode(JTI, VT, isTarget, in getJumpTable()
1110 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getConstantPool()
1113 SDNode *N = new (NodeAllocator) ConstantPoolSDNode(isTarget, C, VT, Offset, in getConstantPool()
1137 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getConstantPool()
1140 SDNode *N = new (NodeAllocator) ConstantPoolSDNode(isTarget, C, VT, Offset, in getConstantPool()
1152 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getBasicBlock()
1155 SDNode *N = new (NodeAllocator) BasicBlockSDNode(MBB); in getBasicBlock()
1166 SDNode *&N = VT.isExtended() ? in getValueType()
1176 SDNode *&N = ExternalSymbols[Sym]; in getExternalSymbol()
1185 SDNode *&N = in getTargetExternalSymbol()
1295 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getVectorShuffle()
1325 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getConvertRndSat()
1340 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getRegister()
1343 SDNode *N = new (NodeAllocator) RegisterSDNode(RegNo, VT); in getRegister()
1355 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getEHLabel()
1358 SDNode *N = new (NodeAllocator) EHLabelSDNode(dl, Root, Label); in getEHLabel()
1375 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getBlockAddress()
1378 SDNode *N = new (NodeAllocator) BlockAddressSDNode(Opc, VT, BA, TargetFlags); in getBlockAddress()
1393 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getSrcValue()
1396 SDNode *N = new (NodeAllocator) SrcValueSDNode(V); in getSrcValue()
1409 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getMDNode()
1412 SDNode *N = new (NodeAllocator) MDNodeSDNode(MD); in getMDNode()
2356 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getNode()
2359 SDNode *N = new (NodeAllocator) SDNode(Opcode, DL, getVTList(VT)); in getNode()
2593 SDNode *N; in getNode()
2600 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getNode()
3061 SDNode *N; in getNode()
3068 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getNode()
3153 SDNode *N; in getNode()
3160 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getNode()
3201 for (SDNode::use_iterator U = getEntryNode().getNode()->use_begin(), in getStackArgumentTokenFactor()
3849 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) { in getAtomic()
3853 SDNode *N = new (NodeAllocator) AtomicSDNode(Opcode, dl, VTs, MemVT, Chain, in getAtomic()
3906 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) { in getAtomic()
3910 SDNode *N = new (NodeAllocator) AtomicSDNode(Opcode, dl, VTs, MemVT, Chain, in getAtomic()
3983 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) { in getMemIntrinsicNode()
4098 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) { in getLoad()
4102 SDNode *N = new (NodeAllocator) LoadSDNode(Ops, dl, VTs, AM, ExtType, in getLoad()
4184 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) { in getStore()
4188 SDNode *N = new (NodeAllocator) StoreSDNode(Ops, dl, VTs, ISD::UNINDEXED, in getStore()
4251 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) { in getTruncStore()
4255 SDNode *N = new (NodeAllocator) StoreSDNode(Ops, dl, VTs, ISD::UNINDEXED, in getTruncStore()
4275 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getIndexedStore()
4278 SDNode *N = new (NodeAllocator) StoreSDNode(Ops, dl, VTs, AM, in getIndexedStore()
4342 SDNode *N; in getNode()
4350 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getNode()
4353 N = new (NodeAllocator) SDNode(Opcode, DL, VTs, Ops, NumOps); in getNode()
4356 N = new (NodeAllocator) SDNode(Opcode, DL, VTs, Ops, NumOps); in getNode()
4410 SDNode *N; in getNode()
4415 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getNode()
4426 N = new (NodeAllocator) SDNode(Opcode, DL, VTList, Ops, NumOps); in getNode()
4438 N = new (NodeAllocator) SDNode(Opcode, DL, VTList, Ops, NumOps); in getNode()
4485 return makeVTList(SDNode::getValueTypeList(VT), 1); in getVTList()
4574 SDNode *SelectionDAG::UpdateNodeOperands(SDNode *N, SDValue Op) { in UpdateNodeOperands()
4582 if (SDNode *Existing = FindModifiedNodeSlot(N, Op, InsertPos)) in UpdateNodeOperands()
4598 SDNode *SelectionDAG::UpdateNodeOperands(SDNode *N, SDValue Op1, SDValue Op2) { in UpdateNodeOperands()
4607 if (SDNode *Existing = FindModifiedNodeSlot(N, Op1, Op2, InsertPos)) in UpdateNodeOperands()
4626 SDNode *SelectionDAG::
4627 UpdateNodeOperands(SDNode *N, SDValue Op1, SDValue Op2, SDValue Op3) { in UpdateNodeOperands()
4632 SDNode *SelectionDAG::
4633 UpdateNodeOperands(SDNode *N, SDValue Op1, SDValue Op2, in UpdateNodeOperands()
4639 SDNode *SelectionDAG::
4640 UpdateNodeOperands(SDNode *N, SDValue Op1, SDValue Op2, in UpdateNodeOperands()
4646 SDNode *SelectionDAG::
4647 UpdateNodeOperands(SDNode *N, const SDValue *Ops, unsigned NumOps) { in UpdateNodeOperands()
4665 if (SDNode *Existing = FindModifiedNodeSlot(N, Ops, NumOps, InsertPos)) in UpdateNodeOperands()
4685 void SDNode::DropOperands() { in DropOperands()
4697 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4703 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4710 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4718 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4726 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4733 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4740 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4746 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4753 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4760 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4768 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4776 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4785 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4794 SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc, in SelectNodeTo()
4815 SDNode *SelectionDAG::MorphNodeTo(SDNode *N, unsigned Opc, in MorphNodeTo()
4823 if (SDNode *ON = CSEMap.FindNodeOrInsertPos(ID, IP)) in MorphNodeTo()
4837 SmallPtrSet<SDNode*, 16> DeadNodeSet; in MorphNodeTo()
4838 for (SDNode::op_iterator I = N->op_begin(), E = N->op_end(); I != E; ) { in MorphNodeTo()
4840 SDNode *Used = Use.getNode(); in MorphNodeTo()
4880 SmallVector<SDNode *, 16> DeadNodes; in MorphNodeTo()
4881 for (SmallPtrSet<SDNode *, 16>::iterator I = DeadNodeSet.begin(), in MorphNodeTo()
5028 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getMachineNode()
5062 SDNode *Subreg = getMachineNode(TargetOpcode::EXTRACT_SUBREG, DL, in getTargetExtractSubreg()
5073 SDNode *Result = getMachineNode(TargetOpcode::INSERT_SUBREG, DL, in getTargetInsertSubreg()
5080 SDNode *SelectionDAG::getNodeIfExists(unsigned Opcode, SDVTList VTList, in getNodeIfExists()
5086 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP)) in getNodeIfExists()
5095 SelectionDAG::getDbgValue(MDNode *MDPtr, SDNode *N, unsigned R, uint64_t Off, in getDbgValue()
5123 SDNode::use_iterator &UI;
5124 SDNode::use_iterator &UE;
5126 virtual void NodeDeleted(SDNode *N, SDNode *E) { in NodeDeleted()
5135 virtual void NodeUpdated(SDNode *N) { in NodeUpdated()
5142 SDNode::use_iterator &ui, in RAUWUpdateListener()
5143 SDNode::use_iterator &ue) in RAUWUpdateListener()
5156 SDNode *From = FromN.getNode(); in ReplaceAllUsesWith()
5168 SDNode::use_iterator UI = From->use_begin(), UE = From->use_end(); in ReplaceAllUsesWith()
5171 SDNode *User = *UI; in ReplaceAllUsesWith()
5198 void SelectionDAG::ReplaceAllUsesWith(SDNode *From, SDNode *To, in ReplaceAllUsesWith()
5213 SDNode::use_iterator UI = From->use_begin(), UE = From->use_end(); in ReplaceAllUsesWith()
5216 SDNode *User = *UI; in ReplaceAllUsesWith()
5242 void SelectionDAG::ReplaceAllUsesWith(SDNode *From, in ReplaceAllUsesWith()
5250 SDNode::use_iterator UI = From->use_begin(), UE = From->use_end(); in ReplaceAllUsesWith()
5253 SDNode *User = *UI; in ReplaceAllUsesWith()
5291 SDNode::use_iterator UI = From.getNode()->use_begin(), in ReplaceAllUsesOfValueWith()
5295 SDNode *User = *UI; in ReplaceAllUsesOfValueWith()
5337 SDNode *User;
5366 SDNode *FromNode = From[i].getNode(); in ReplaceAllUsesOfValuesWith()
5367 for (SDNode::use_iterator UI = FromNode->use_begin(), in ReplaceAllUsesOfValuesWith()
5384 SDNode *User = Uses[UseIndex].User; in ReplaceAllUsesOfValuesWith()
5427 SDNode *N = I++; in AssignTopologicalOrder()
5447 SDNode *N = I; in AssignTopologicalOrder()
5451 for (SDNode::use_iterator UI = N->use_begin(), UE = N->use_end(); in AssignTopologicalOrder()
5453 SDNode *P = *UI; in AssignTopologicalOrder()
5471 SDNode *S = ++I; in AssignTopologicalOrder()
5496 void SelectionDAG::AssignOrdering(const SDNode *SD, unsigned Order) { in AssignOrdering()
5502 unsigned SelectionDAG::GetOrdering(const SDNode *SD) const { in GetOrdering()
5509 void SelectionDAG::AddDbgValue(SDDbgValue *DB, SDNode *SD, bool isParameter) { in AddDbgValue()
5519 SDNode *FromNode = From.getNode(); in TransferDbgValues()
5520 SDNode *ToNode = To.getNode(); in TransferDbgValues()
5549 : SDNode(Opc, DL, getSDVTList(VT)), Offset(o), TargetFlags(TF) { in GlobalAddressSDNode()
5555 : SDNode(Opc, dl, VTs), MemoryVT(memvt), MMO(mmo) { in MemSDNode()
5567 : SDNode(Opc, dl, VTs, Ops, NumOps), in MemSDNode()
5577 void SDNode::Profile(FoldingSetNodeID &ID) const { in Profile()
5599 const EVT *SDNode::getValueTypeList(EVT VT) { in getValueTypeList()
5613 bool SDNode::hasNUsesOfValue(unsigned NUses, unsigned Value) const { in hasNUsesOfValue()
5617 for (SDNode::use_iterator UI = use_begin(), E = use_end(); UI != E; ++UI) { in hasNUsesOfValue()
5632 bool SDNode::hasAnyUseOfValue(unsigned Value) const { in hasAnyUseOfValue()
5635 for (SDNode::use_iterator UI = use_begin(), E = use_end(); UI != E; ++UI) in hasAnyUseOfValue()
5645 bool SDNode::isOnlyUserOf(SDNode *N) const { in isOnlyUserOf()
5647 for (SDNode::use_iterator I = N->use_begin(), E = N->use_end(); I != E; ++I) { in isOnlyUserOf()
5648 SDNode *User = *I; in isOnlyUserOf()
5660 bool SDValue::isOperandOf(SDNode *N) const { in isOperandOf()
5667 bool SDNode::isOperandOf(SDNode *N) const { in isOperandOf()
5708 bool SDNode::hasPredecessor(const SDNode *N) const { in hasPredecessor()
5709 SmallPtrSet<const SDNode *, 32> Visited; in hasPredecessor()
5710 SmallVector<const SDNode *, 16> Worklist; in hasPredecessor()
5714 bool SDNode::hasPredecessorHelper(const SDNode *N, in hasPredecessorHelper()
5715 SmallPtrSet<const SDNode *, 32> &Visited, in hasPredecessorHelper() argument
5716 SmallVector<const SDNode *, 16> &Worklist) const { in hasPredecessorHelper() argument
5728 const SDNode *M = Worklist.pop_back_val(); in hasPredecessorHelper()
5730 SDNode *Op = M->getOperand(i).getNode(); in hasPredecessorHelper()
5741 uint64_t SDNode::getConstantOperandVal(unsigned Num) const { in getConstantOperandVal()
5746 std::string SDNode::getOperationName(const SelectionDAG *G) const { in getOperationName()
6019 const char *SDNode::getIndexedModeName(ISD::MemIndexedMode AM) { in getIndexedModeName()
6058 void SDNode::dump() const { dump(0); } in dump()
6059 void SDNode::dump(const SelectionDAG *G) const { in dump()
6064 void SDNode::print_types(raw_ostream &OS, const SelectionDAG *G) const { in print_types()
6077 void SDNode::print_details(raw_ostream &OS, const SelectionDAG *G) const { in print_details()
6235 void SDNode::print(raw_ostream &OS, const SelectionDAG *G) const { in print()
6246 static void printrWithDepthHelper(raw_ostream &OS, const SDNode *N, in printrWithDepthHelper()
6269 void SDNode::printrWithDepth(raw_ostream &OS, const SelectionDAG *G, in printrWithDepth()
6274 void SDNode::printrFull(raw_ostream &OS, const SelectionDAG *G) const { in printrFull()
6279 void SDNode::dumprWithDepth(const SelectionDAG *G, unsigned depth) const { in dumprWithDepth()
6283 void SDNode::dumprFull(const SelectionDAG *G) const { in dumprFull()
6288 static void DumpNodes(const SDNode *N, unsigned indent, const SelectionDAG *G) { in DumpNodes()
6302 SDValue SelectionDAG::UnrollVectorOp(SDNode *N, unsigned ResNE) { in UnrollVectorOp()
6462 const SDNode *N = I; in dump()
6472 void SDNode::printr(raw_ostream &OS, const SelectionDAG *G) const { in printr()
6477 typedef SmallPtrSet<const SDNode *, 128> VisitedSDNodeSet;
6478 static void DumpNodesr(raw_ostream &OS, const SDNode *N, unsigned indent, in DumpNodesr()
6489 const SDNode *child = N->getOperand(i).getNode(); in DumpNodesr()
6509 const SDNode *child = N->getOperand(i).getNode(); in DumpNodesr()
6514 void SDNode::dumpr() const { in dumpr()
6519 void SDNode::dumpr(const SelectionDAG *G) const { in dumpr()
6620 static void checkForCyclesHelper(const SDNode *N, in checkForCyclesHelper()
6621 SmallPtrSet<const SDNode*, 32> &Visited, in checkForCyclesHelper() argument
6622 SmallPtrSet<const SDNode*, 32> &Checked) { in checkForCyclesHelper()
6644 void llvm::checkForCycles(const llvm::SDNode *N) { in checkForCycles()
6647 SmallPtrSet<const SDNode*, 32> visited; in checkForCycles()
6648 SmallPtrSet<const SDNode*, 32> checked; in checkForCycles()