summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FastISelEmitter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-22 00:28:15 +0000
committerDan Gohman <gohman@apple.com>2008-08-22 00:28:15 +0000
commit9b29ec7ba92b2303736e7ddc1e1cedfba018eb4d (patch)
treed923a4aabbcba23cfe750db1c4dc8c0f69b85a03 /llvm/utils/TableGen/FastISelEmitter.cpp
parent49e19e906fd445f8dcc90b6b6d620ade9dc2f7dd (diff)
downloadbcm5719-llvm-9b29ec7ba92b2303736e7ddc1e1cedfba018eb4d.tar.gz
bcm5719-llvm-9b29ec7ba92b2303736e7ddc1e1cedfba018eb4d.zip
Add a few comments.
llvm-svn: 55157
Diffstat (limited to 'llvm/utils/TableGen/FastISelEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/FastISelEmitter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/FastISelEmitter.cpp b/llvm/utils/TableGen/FastISelEmitter.cpp
index b343013b067..5868a24e193 100644
--- a/llvm/utils/TableGen/FastISelEmitter.cpp
+++ b/llvm/utils/TableGen/FastISelEmitter.cpp
@@ -181,6 +181,7 @@ void FastISelEmitter::run(std::ostream &OS) {
typedef std::map<OperandsSignature, OpcodeTypePredMap> OperandsOpcodeTypePredMap;
OperandsOpcodeTypePredMap SimplePatterns;
+ // Scan through all the patterns and record the simple ones.
for (CodeGenDAGPatterns::ptm_iterator I = CGP.ptm_begin(),
E = CGP.ptm_end(); I != E; ++I) {
const PatternToMatch &Pattern = *I;
@@ -394,6 +395,9 @@ void FastISelEmitter::run(std::ostream &OS) {
OS << "\n";
}
+ OS << "// Top-level FastEmit function.\n";
+ OS << "\n";
+
// Emit one function for the operand signature that demultiplexes based
// on opcode and type.
OS << "unsigned FastISel::FastEmit_";
OpenPOWER on IntegriCloud