summaryrefslogtreecommitdiff
path: root/utils
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
commit0bfb75277f6d6e160dd29d99e6870da927500b50 (patch)
treee9b4ffcdee17eeb62769e39efc73aaa3e1f619ef /utils
parent22bb31103de3337f0bb74c7bee16d1817d4dca14 (diff)
downloadllvm-0bfb75277f6d6e160dd29d99e6870da927500b50.tar.gz
llvm-0bfb75277f6d6e160dd29d99e6870da927500b50.tar.bz2
llvm-0bfb75277f6d6e160dd29d99e6870da927500b50.tar.xz
Add a few comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/FastISelEmitter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/TableGen/FastISelEmitter.cpp b/utils/TableGen/FastISelEmitter.cpp
index b343013b06..5868a24e19 100644
--- a/utils/TableGen/FastISelEmitter.cpp
+++ b/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_";