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


    The runOnFunction method


    The doFinalization method

    -
       - -The BasicBlockPass class -


    The runOnBasicBlock 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: Thu Sep 5 15:06:01 CDT 2002 - -
    +
    +
    + Valid CSS! + Valid HTML 4.01! + + Chris Lattner
    + The LLVM Compiler Infrastructure
    + Last modified: $Date$ +
    + + +