X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=docs%2FWritingAnLLVMPass.html;h=136f8fbd55713c6aac76fdad5988697ea3fb9544;hb=9a767330f555f21d6ef311d3a348d3a44f306d35;hp=f537066547ac969b0a5b300e884f9236f18b4326;hpb=ef6a6a69ff1e1b709d0acb315b9f6c926c67a778;p=oota-llvm.git diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index f537066547a..136f8fbd557 100644 --- a/docs/WritingAnLLVMPass.html +++ b/docs/WritingAnLLVMPass.html @@ -1,305 +1,398 @@ - -Writing an LLVM Pass - - - - - -
  Writing an LLVM Pass
- + + + + + Writing an LLVM Pass + + + + +

+ Writing an LLVM Pass +

    -
  1. Introduction - What is a pass? +
  2. Introduction - What is a pass?
  3. Quick Start - Writing hello world +
  4. Setting up the build environment
  5. +
  6. Basic code required
  7. +
  8. Running a pass with opt
  9. +
  10. Pass classes and requirements
  11. The FunctionPass class + &) method
  12. + +
  13. The LoopPass class +
  14. +
  15. The RegionPass class +
  16. The BasicBlockPass class + &) method
  17. +
  18. The MachineFunctionPass class + runOnMachineFunction(MachineFunction &) method
  19. +
  20. Pass Registration +
  21. The print method
  22. +
  23. Specifying interactions between passes +
  24. The getAnalysisUsage + method
  25. +
  26. The AnalysisUsage::addRequired<> and AnalysisUsage::addRequiredTransitive<> methods
  27. +
  28. The AnalysisUsage::addPreserved<> method
  29. +
  30. Example implementations of getAnalysisUsage
  31. +
  32. The getAnalysis<> and +getAnalysisIfAvailable<> methods
  33. +
  34. Implementing Analysis Groups +
  35. Analysis Group Concepts
  36. +
  37. Using RegisterAnalysisGroup
  38. + +
  39. Pass Statistics
  40. What PassManager does +
  41. The releaseMemory method
  42. + +
  43. Registering dynamically loaded passes +
  44. Using GDB with dynamically loaded passes +
  45. Setting a breakpoint in your pass
  46. +
  47. Miscellaneous Problems
  48. +
  49. Future extensions planned - -

    Written by Chris Lattner

    -

- +

  • Multithreaded LLVM
  • + + +
    +

    Written by Chris Lattner and + Jim Laskey

    +
    - -
    -Introduction - What is a pass? -
    -
    -Quick Start - Writing hello world -
    -
       - -Setting up the build environment -


    -
       - -Basic code required -
    -
       - -Running a pass with opt or analyze -
    -
    -Pass classes and requirements -
    -
       - -The ImmutablePass class -
    -
       - -The Pass class -


    The run method

    -
       - -The FunctionPass class -


    The -doInitialization(Module &) method


    The runOnFunction method


    The doFinalization(Module &) method

    -
       - -The BasicBlockPass class -


    The -doInitialization(Function &) method


    The runOnBasicBlock method


    The doFinalization(Function -&) method

    -
       - -The MachineFunctionPass class -


    The -runOnMachineFunction(MachineFunction &MF) method

    -
    -Pass registration -


    The print method

    -
    -Specifying interactions between passes -


    The getAnalysisUsage method


    The getAnalysis<> method

    -
    -Implementing Analysis Groups -


    Analysis Group Concepts


    Using RegisterAnalysisGroup

    -
    -What PassManager does -


    The releaseMemory method

    -
    -Using GDB with dynamically loaded passes -


    Setting a breakpoint in your pass


    Miscellaneous Problems

    -
    -Future extensions planned -


    Multithreaded LLVM


    A new ModuleSource interface


    Pass's requiring FunctionPass's

    - - -
    -
    Chris Lattner
    - - -Last modified: Tue Jul 22 15:52:30 CDT 2003 - -
    +
    +
    + Valid CSS + Valid HTML 4.01 + + Chris Lattner
    + The LLVM Compiler Infrastructure
    + Last modified: $Date$ +
    + + +