Displaying 2 results from an estimated 2 matches for "findnodeorinsertpos".
2011 Sep 13
3
[LLVMdev] Handling of DebugLocs during CSE of SelectionDAG nodes.
...other suggestions?
02367 /// getNode - Gets or creates the specified node.
02368 ///
02369 SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, EVT VT) {
02370 FoldingSetNodeID ID;
02371 AddNodeIDNode(ID, Opcode, getVTList(VT), 0, 0);
02372 void *IP = 0;
02373 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP))
02374 return SDValue(E, 0);
02375
02376 SDNode *N = new (NodeAllocator) SDNode(Opcode, DL, getVTList(VT));
02377 CSEMap.InsertNode(N, IP);
02378
02379 AllNodes.push_back(N);
02380 #ifndef NDEBUG
02381 VerifySDNode(N);
02382 #endif
02383 return SDValue(N, 0);
02384 }
2011 Sep 13
0
[LLVMdev] Handling of DebugLocs during CSE of SelectionDAG nodes.
...getNode - Gets or creates the specified node.
> 02368 ///
> 02369 SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, EVT VT) {
> 02370 FoldingSetNodeID ID;
> 02371 AddNodeIDNode(ID, Opcode, getVTList(VT), 0, 0);
> 02372 void *IP = 0;
> 02373 if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP))
> 02374 return SDValue(E, 0);
> 02375
> 02376 SDNode *N = new (NodeAllocator) SDNode(Opcode, DL, getVTList(VT));
> 02377 CSEMap.InsertNode(N, IP);
> 02378
> 02379 AllNodes.push_back(N);
> 02380 #ifndef NDEBUG
> 02381 VerifySDNode(N);
> 02382 #endif...