search for: initializeexampleirtransform

Displaying 3 results from an estimated 3 matches for "initializeexampleirtransform".

2019 Oct 25
2
RFC: Adding IR Transformation examples/tutorial code to llvm-project
...n will be applied to all examples should also work for the IR pass examples. I think he would like to remove LLVM_BUILD_EXAMPLES altogether. That is, any "cmake" will execute any CMakeLists.txt, "make all" will always build TutorialSimplyCFG and any execution of `opt` will call initializeExampleIRTransforms. I am in favor of adding (more) tutorials to the repository, joint trying to point out items to consider. Michael
2019 Oct 24
7
RFC: Adding IR Transformation examples/tutorial code to llvm-project
...be valuable to have the code examples for various tutorials in-tree to keep them from bit-rotting and make it very easy to build them. I’d suggest adding new IR pass examples to llvm/examples/IRTransforms. The passes in that directory will be built as an ExamplesIRTransforms library, which exposes initializeExampleIRTransforms to initialise the passes. Additionally, if LLVM_BUILD_EXAMPLES=On, we add a -DBUILD_EXAMPLES define, which is then used in opt to make the example passes available if LLVM_BUILD_EXAMPLES=On. I think that allows for relatively friction-less integration of the example passes into `opt`. I’ve put u...
2019 Oct 25
2
RFC: Adding IR Transformation examples/tutorial code to llvm-project
On Fri, Oct 25, 2019 at 2:43 PM Michael Kruse via llvm-dev < llvm-dev at lists.llvm.org> wrote: > I like the idea and already discussed it with Kit Barton. > > Two concerns that I had: > > 1. Keeping them in-tree requires them to be up-to-date, a potential > additional maintenance burden. This might be what we want, but I get > less enthusiastic when thinking about