mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
fit in 80 cols
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96541 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fd6037d613
commit
dcdcef2cb3
@ -1047,8 +1047,10 @@ PatternCodeEmitter::EmitResultCode(TreePatternNode *N,
|
|||||||
"N->getDebugLoc(), MVT::Other, "
|
"N->getDebugLoc(), MVT::Other, "
|
||||||
"&InChains[0], InChains.size());");
|
"&InChains[0], InChains.size());");
|
||||||
if (GenDebug) {
|
if (GenDebug) {
|
||||||
emitCode("CurDAG->setSubgraphColor(" + ChainName +".getNode(), \"yellow\");");
|
emitCode("CurDAG->setSubgraphColor(" + ChainName +
|
||||||
emitCode("CurDAG->setSubgraphColor(" + ChainName +".getNode(), \"black\");");
|
".getNode(), \"yellow\");");
|
||||||
|
emitCode("CurDAG->setSubgraphColor(" + ChainName +
|
||||||
|
".getNode(), \"black\");");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1755,15 +1757,17 @@ void DAGISelEmitter::EmitInstructionSelector(raw_ostream &OS) {
|
|||||||
// Replace the emission code within selection routines with calls to the
|
// Replace the emission code within selection routines with calls to the
|
||||||
// emission functions.
|
// emission functions.
|
||||||
if (GenDebug)
|
if (GenDebug)
|
||||||
GeneratedCode.push_back(std::make_pair(0, "CurDAG->setSubgraphColor(N, \"red\");"));
|
GeneratedCode.push_back(std::make_pair(0,
|
||||||
CallerCode = "SDNode *Result = Emit_" + utostr(EmitFuncNum) + CallerCode;
|
"CurDAG->setSubgraphColor(N, \"red\");"));
|
||||||
|
CallerCode = "SDNode *Result = Emit_" + utostr(EmitFuncNum) +CallerCode;
|
||||||
GeneratedCode.push_back(std::make_pair(3, CallerCode));
|
GeneratedCode.push_back(std::make_pair(3, CallerCode));
|
||||||
if (GenDebug) {
|
if (GenDebug) {
|
||||||
GeneratedCode.push_back(std::make_pair(0, "if(Result) {"));
|
GeneratedCode.push_back(std::make_pair(0, "if(Result) {"));
|
||||||
GeneratedCode.push_back(std::make_pair(0, " CurDAG->setSubgraphColor(Result, \"yellow\");"));
|
GeneratedCode.push_back(std::make_pair(0,
|
||||||
GeneratedCode.push_back(std::make_pair(0, " CurDAG->setSubgraphColor(Result, \"black\");"));
|
" CurDAG->setSubgraphColor(Result, \"yellow\");"));
|
||||||
|
GeneratedCode.push_back(std::make_pair(0,
|
||||||
|
" CurDAG->setSubgraphColor(Result, \"black\");"));
|
||||||
GeneratedCode.push_back(std::make_pair(0, "}"));
|
GeneratedCode.push_back(std::make_pair(0, "}"));
|
||||||
//GeneratedCode.push_back(std::make_pair(0, "CurDAG->setSubgraphColor(N, \"black\");"));
|
|
||||||
}
|
}
|
||||||
GeneratedCode.push_back(std::make_pair(0, "return Result;"));
|
GeneratedCode.push_back(std::make_pair(0, "return Result;"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user