diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-06-11 06:55:48 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-06-11 06:55:48 +0000 |
commit | c1fc518b59356db05f64e50b9af8f49985f903b3 (patch) | |
tree | 12ed64ec8e045f9276107cc0f977289931c067e6 /lib/Target/PIC16 | |
parent | dea40c9563cdee06fa9c8a688fc00ad89c077831 (diff) | |
download | external_llvm-c1fc518b59356db05f64e50b9af8f49985f903b3.zip external_llvm-c1fc518b59356db05f64e50b9af8f49985f903b3.tar.gz external_llvm-c1fc518b59356db05f64e50b9af8f49985f903b3.tar.bz2 |
More formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16')
-rw-r--r-- | lib/Target/PIC16/PIC16AsmPrinter.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/Target/PIC16/PIC16AsmPrinter.cpp b/lib/Target/PIC16/PIC16AsmPrinter.cpp index 09cfa75..d628227 100644 --- a/lib/Target/PIC16/PIC16AsmPrinter.cpp +++ b/lib/Target/PIC16/PIC16AsmPrinter.cpp @@ -168,11 +168,16 @@ void PIC16AsmPrinter::printOperand(const MachineInstr *MI, int opNum) { } } +/// printCCOperand - Print the cond code operand. +/// void PIC16AsmPrinter::printCCOperand(const MachineInstr *MI, int opNum) { int CC = (int)MI->getOperand(opNum).getImm(); O << PIC16CondCodeToString((PIC16CC::CondCodes)CC); } +/// printLibcallDecls - print the extern declarations for compiler +/// intrinsics. +/// void PIC16AsmPrinter::printLibcallDecls(void) { // If no libcalls used, return. if (LibcallDecls.empty()) return; @@ -190,6 +195,10 @@ void PIC16AsmPrinter::printLibcallDecls(void) { O << TAI->getCommentString() << "External decls for libcalls - END." <<"\n"; } +/// doInitialization - Perfrom Module level initializations here. +/// One task that we do here is to sectionize all global variables. +/// The MemSelOptimizer pass depends on the sectionizing. +/// bool PIC16AsmPrinter::doInitialization (Module &M) { bool Result = AsmPrinter::doInitialization(M); @@ -215,9 +224,10 @@ bool PIC16AsmPrinter::doInitialization (Module &M) { return Result; } -// Emit extern decls for functions imported from other modules, and emit -// global declarations for function defined in this module and which are -// available to other modules. +/// Emit extern decls for functions imported from other modules, and emit +/// global declarations for function defined in this module and which are +/// available to other modules. +/// void PIC16AsmPrinter::EmitFunctionDecls (Module &M) { // Emit declarations for external functions. O << TAI->getCommentString() << "Function Declarations - BEGIN." <<"\n"; |