mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Track IR ordering of SelectionDAG nodes 2/4.
Change SelectionDAG::getXXXNode() interfaces as well as call sites of these functions to pass in SDLoc instead of DebugLoc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182703 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -109,7 +109,7 @@ bool XCoreDAGToDAGISel::SelectADDRspii(SDValue Addr, SDValue &Base,
|
||||
}
|
||||
|
||||
SDNode *XCoreDAGToDAGISel::Select(SDNode *N) {
|
||||
DebugLoc dl = N->getDebugLoc();
|
||||
SDLoc dl(N);
|
||||
switch (N->getOpcode()) {
|
||||
default: break;
|
||||
case ISD::Constant: {
|
||||
@@ -204,12 +204,12 @@ replaceInChain(SelectionDAG *CurDAG, SDValue Chain, SDValue Old, SDValue New)
|
||||
}
|
||||
if (!found)
|
||||
return SDValue();
|
||||
return CurDAG->getNode(ISD::TokenFactor, Chain->getDebugLoc(), MVT::Other,
|
||||
return CurDAG->getNode(ISD::TokenFactor, SDLoc(Chain), MVT::Other,
|
||||
&Ops[0], Ops.size());
|
||||
}
|
||||
|
||||
SDNode *XCoreDAGToDAGISel::SelectBRIND(SDNode *N) {
|
||||
DebugLoc dl = N->getDebugLoc();
|
||||
SDLoc dl(N);
|
||||
// (brind (int_xcore_checkevent (addr)))
|
||||
SDValue Chain = N->getOperand(0);
|
||||
SDValue Addr = N->getOperand(1);
|
||||
|
||||
Reference in New Issue
Block a user