X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FWritingAnLLVMBackend.html;h=d909a1a3fb72e5b1774929aa42f92ef7a7a90c93;hb=170f06ebe2e80ce8bda87425081541493056fb10;hp=29dc1127c576f0a4c8e697069ceefd7cf8454cd4;hpb=b6d667403fed489ef92174b3f19d4b87db5c39f7;p=oota-llvm.git diff --git a/docs/WritingAnLLVMBackend.html b/docs/WritingAnLLVMBackend.html index 29dc1127c57..d909a1a3fb7 100644 --- a/docs/WritingAnLLVMBackend.html +++ b/docs/WritingAnLLVMBackend.html @@ -354,8 +354,6 @@ public: // Pass Pipeline Configuration virtual bool addInstSelector(PassManagerBase &PM, bool Fast); virtual bool addPreEmitPass(PassManagerBase &PM, bool Fast); - virtual bool addAssemblyEmitter(PassManagerBase &PM, bool Fast, - std::ostream &Out); }; } // end namespace llvm @@ -451,7 +449,7 @@ the RegisterTarget template to register the target. For example, the Sp Target llvm::TheSparcTarget; extern "C" void LLVMInitializeSparcTargetInfo() { - RegisterTarget + RegisterTarget<Triple::sparc, /*HasJIT=*/false> X(TheSparcTarget, "sparc", "Sparc"); } @@ -469,7 +467,7 @@ example. Here is an example of registering the Sparc assembly printer:
 extern "C" void LLVMInitializeSparcAsmPrinter() { 
-  RegisterAsmPrinter X(TheSparcTarget);
+  RegisterAsmPrinter<SparcAsmPrinter> X(TheSparcTarget);
 }
 
@@ -563,8 +561,7 @@ def AL : Register<"AL">, DwarfRegNum<[0, 0, 0]>;

This defines the register AL and assigns it values (with DwarfRegNum) that are used by gcc, gdb, or a debug -information writer (such as DwarfWriter -in llvm/lib/CodeGen/AsmPrinter) to identify a register. For register +information writer to identify a register. For register AL, DwarfRegNum takes an array of 3 values representing 3 different modes: the first element is for X86-64, the second for exception handling (EH) on X86-32, and the third is generic. -1 is a special Dwarf number @@ -916,9 +913,6 @@ implementation in SparcRegisterInfo.cpp:

  • getCalleeSavedRegs — Returns a list of callee-saved registers in the order of the desired callee-save stack frame offset.
  • -
  • getCalleeSavedRegClasses — Returns a list of preferred - register classes with which to spill each callee saved register.
  • -
  • getReservedRegs — Returns a bitset indexed by physical register numbers, indicating if a particular register is unavailable.
  • @@ -2152,21 +2146,13 @@ in XXXGenAsmWriter.inc contains an implementation of the
  • printImplicitDef
  • printInlineAsm
  • - -
  • printLabel
  • - -
  • printPICJumpTableEntry
  • - -
  • printPICJumpTableSetLabel
  • The implementations of printDeclare, printImplicitDef, printInlineAsm, and printLabel in AsmPrinter.cpp are generally adequate for printing assembly and do not need to be -overridden. (printBasicBlockLabel is another method that is implemented -in AsmPrinter.cpp that may be directly used in an implementation of -XXXAsmPrinter.) +overridden.