mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-01 04:29:57 +00:00
Add instruction names as comments to InstBits entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
682d5a8834
commit
bc95b23156
@ -100,8 +100,6 @@ void CodeEmitterGen::run(std::ostream &o) {
|
|||||||
const CodeGenInstruction *CGI = *IN;
|
const CodeGenInstruction *CGI = *IN;
|
||||||
Record *R = CGI->TheDef;
|
Record *R = CGI->TheDef;
|
||||||
|
|
||||||
if (IN != NumberedInstructions.begin()) o << ",\n";
|
|
||||||
|
|
||||||
if (R->getName() == "PHI" ||
|
if (R->getName() == "PHI" ||
|
||||||
R->getName() == "INLINEASM" ||
|
R->getName() == "INLINEASM" ||
|
||||||
R->getName() == "DBG_LABEL" ||
|
R->getName() == "DBG_LABEL" ||
|
||||||
@ -112,7 +110,7 @@ void CodeEmitterGen::run(std::ostream &o) {
|
|||||||
R->getName() == "INSERT_SUBREG" ||
|
R->getName() == "INSERT_SUBREG" ||
|
||||||
R->getName() == "IMPLICIT_DEF" ||
|
R->getName() == "IMPLICIT_DEF" ||
|
||||||
R->getName() == "SUBREG_TO_REG") {
|
R->getName() == "SUBREG_TO_REG") {
|
||||||
o << " 0U";
|
o << " 0U,\n";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,9 +123,9 @@ void CodeEmitterGen::run(std::ostream &o) {
|
|||||||
Value |= B->getValue() << (e-i-1);
|
Value |= B->getValue() << (e-i-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
o << " " << Value << "U";
|
o << " " << Value << "U," << '\t' << "// " << R->getName() << "\n";
|
||||||
}
|
}
|
||||||
o << "\n };\n";
|
o << " 0U\n };\n";
|
||||||
|
|
||||||
// Map to accumulate all the cases.
|
// Map to accumulate all the cases.
|
||||||
std::map<std::string, std::vector<std::string> > CaseMap;
|
std::map<std::string, std::vector<std::string> > CaseMap;
|
||||||
|
Loading…
Reference in New Issue
Block a user