Thanks Milind for the great suggestions. Try to follow alone the tutorial and see if you can create a loop pass.
On top of that I would suggest to also get familiar with
- The LoopNest class
- llvm/include/llvm/Analysis/LoopNestAnalysis.h
- llvm/lib/Analysis/LoopNestAnalysis.cpp
- Different PassAdaptor classes (e.g. FunctionToLoopPassAdaptor)
- llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
Please feel free to email me or Ettore if you encounter any blockers, or have further questions.
Regards,
Whitney Tsang