Add a few comments.

llvm-svn: 55157
This commit is contained in:
Dan Gohman 2008-08-22 00:28:15 +00:00
parent 49e19e906f
commit 9b29ec7ba9
1 changed files with 4 additions and 0 deletions

View File

@ -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_";