search for: dbuild_examples

Displaying 1 result from an estimated 1 matches for "dbuild_examples".

Did you mean: build_examples
2019 Oct 24
7
RFC: Adding IR Transformation examples/tutorial code to llvm-project
...t 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 up a patch doing exactly that: https://reviews.llvm.org/D69416 and added a few reviewers, but pl...