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

    Written by Chris Lattner

    -

- +

  • Multithreaded LLVM
  • +
  • ModulePasses requiring + FunctionPasses
  • + + +
    +

    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 -
    -
    -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 Jul 14 12:12:53 CDT 2003 - -
    +
    +
    + Valid CSS! + Valid HTML 4.01! + + Chris Lattner
    + The LLVM Compiler Infrastructure
    + Last modified: $Date$ +
    + + +