X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FWritingAnLLVMPass.html;h=7dbaa9e6bdadad0799ec565b0dd13d6e16fcdfe4;hb=d826e65ef2a1af0851be0901b1afd227362a912c;hp=de73db3fe5c61afb045513fc21dfec5d5131380d;hpb=8291e0465b3864050c050a61db4fcd844cc0b52e;p=oota-llvm.git diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index de73db3fe5c..7dbaa9e6bda 100644 --- a/docs/WritingAnLLVMPass.html +++ b/docs/WritingAnLLVMPass.html @@ -1,299 +1,389 @@ - -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 +getAnalysisIfAvailable<> 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 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

    -
    -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 Oct 21 14:52:55 CDT 2002 - -
    +
    +
    + Valid CSS + Valid HTML 4.01 + + Chris Lattner
    + The LLVM Compiler Infrastructure
    + Last modified: $Date$ +
    + + +