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