diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-17 06:29:52 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-17 06:29:52 +0000 |
commit | 038ca4aa0fa20bfe0ef2b4c678345c364d5b319f (patch) | |
tree | 9351f38b550647338c73f4259784e046583160d2 /llvm/utils/TableGen | |
parent | 45a928b956e2da2d98d40545cbfb180abdbaef2f (diff) | |
download | bcm5719-llvm-038ca4aa0fa20bfe0ef2b4c678345c364d5b319f.tar.gz bcm5719-llvm-038ca4aa0fa20bfe0ef2b4c678345c364d5b319f.zip |
Add instruction names as comments to InstBits entries.
llvm-svn: 56275
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r-- | llvm/utils/TableGen/CodeEmitterGen.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.cpp b/llvm/utils/TableGen/CodeEmitterGen.cpp index e2278ad62ca..62df686ea28 100644 --- a/llvm/utils/TableGen/CodeEmitterGen.cpp +++ b/llvm/utils/TableGen/CodeEmitterGen.cpp @@ -100,8 +100,6 @@ void CodeEmitterGen::run(std::ostream &o) { const CodeGenInstruction *CGI = *IN; Record *R = CGI->TheDef; - if (IN != NumberedInstructions.begin()) o << ",\n"; - if (R->getName() == "PHI" || R->getName() == "INLINEASM" || R->getName() == "DBG_LABEL" || @@ -112,7 +110,7 @@ void CodeEmitterGen::run(std::ostream &o) { R->getName() == "INSERT_SUBREG" || R->getName() == "IMPLICIT_DEF" || R->getName() == "SUBREG_TO_REG") { - o << " 0U"; + o << " 0U,\n"; continue; } @@ -125,9 +123,9 @@ void CodeEmitterGen::run(std::ostream &o) { 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. std::map<std::string, std::vector<std::string> > CaseMap; |