search for: postinstructionact

Displaying 1 result from an estimated 1 matches for "postinstructionact".

2007 Aug 10
2
[LLVMdev] Extending AsmPrinter
...ch target O << '\n'; } for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end(); II != E; ++II) { // Print the assembly for the instruction. O << "\t"; printInstruction(II); // Overridden for each target postInstructionAction(II); // New API for comment printing, etc. O << "\n"; ++EmittedInsts; } } } Then TableGen wouldn't have to worry about printing newlines either. The best thing is that parts of postInstructionAction are independent of the target. Comment printing is a go...