X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FWritingAnLLVMPass.html;h=07e736da691e55ae8a2aa1325e72dc0c9e2205f1;hb=53ebe352ab265aa029d16fe27426e32f07fef609;hp=7d81c81c0afd826ba08c3564e1aa77480e0d713b;hpb=ed2e7a9ce43f5db51224530197f17f90ef218525;p=oota-llvm.git diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index 7d81c81c0af..07e736da691 100644 --- a/docs/WritingAnLLVMPass.html +++ b/docs/WritingAnLLVMPass.html @@ -1,298 +1,385 @@ - -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. The BasicBlockPass class + &) method
  15. + +
  16. The MachineFunctionPass + class +
  17. Pass Registration +
  18. The print method
  19. +
  20. Specifying interactions between passes +
  21. The getAnalysisUsage + method
  22. +
  23. The AnalysisUsage::addRequired<> and AnalysisUsage::addRequiredTransitive<> methods
  24. +
  25. The AnalysisUsage::addPreserved<> method
  26. +
  27. Example implementations of getAnalysisUsage
  28. +
  29. The getAnalysis<> and getAnalysisToUpdate<> methods
  30. +
  31. Implementing Analysis Groups +
  32. Analysis Group Concepts
  33. +
  34. Using RegisterAnalysisGroup
  35. + +
  36. Pass Statistics
  37. What PassManager does +
  38. The releaseMemory method
  39. + +
  40. Registering dynamically loaded passes +
  41. Using GDB with dynamically loaded passes +
  42. Setting a breakpoint in your pass
  43. +
  44. Miscellaneous Problems
  45. +
  46. 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 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

    -
    -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: Mon Sep 16 17:37:27 CDT 2002 - -
    +
    +
    + Valid CSS! + Valid HTML 4.01! + + Chris Lattner
    + The LLVM Compiler Infrastructure
    + Last modified: $Date$ +
    + + +