[PATCH] D69416: [Examples] Add IRTransformations directory to examples.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 24 16:47:42 PDT 2019


fhahn created this revision.
fhahn added reviewers: paquette, jfb, meikeb, lhames, kbarton.
Herald added subscribers: dexonsmith, mgorny.
Herald added a project: LLVM.

This patch adds a new IRTransformations directory to llvm/examples/. This is
intended to serve as a new home for example transformations/analysis
code used by various tutorials.

If LLVM_BUILD_EXAMPLES is enabled, the ExamplesIRTransforms library is
linked into the opt binary and the example passes become available.

To start off with, it contains the CFG simplifications used in the IR
part of the 'Getting Started With LLVM: Basics' tutorial at the US LLVM
Developers Meeting 2019.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69416

Files:
  llvm/CMakeLists.txt
  llvm/examples/CMakeLists.txt
  llvm/examples/IRTransforms/CMakeLists.txt
  llvm/examples/IRTransforms/InitializePasses.cpp
  llvm/examples/IRTransforms/InitializePasses.h
  llvm/examples/IRTransforms/TutorialSimplifyCFG.cpp
  llvm/examples/IRTransforms/TutorialSimplifyCFG.h
  llvm/test/Examples/IRTransforms/TutorialSimplifyCFG/tut-simplify-cfg-blockaddress.ll
  llvm/test/Examples/IRTransforms/TutorialSimplifyCFG/tut-simplify-cfg1.ll
  llvm/test/Examples/IRTransforms/TutorialSimplifyCFG/tut-simplify-cfg2-dead-block-order.ll
  llvm/test/Examples/IRTransforms/TutorialSimplifyCFG/tut-simplify-cfg3-phis.ll
  llvm/test/Examples/IRTransforms/TutorialSimplifyCFG/tut-simplify-cfg4-multiple-duplicate-cfg-updates.ll
  llvm/test/Examples/IRTransforms/TutorialSimplifyCFG/tut-simplify-cfg5-del-phis-for-dead-block.ll
  llvm/test/Examples/IRTransforms/TutorialSimplifyCFG/tut-simplify-cfg6-dead-self-loop.ll
  llvm/tools/opt/CMakeLists.txt
  llvm/tools/opt/opt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69416.226358.patch
Type: text/x-patch
Size: 33410 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191024/f27cdfba/attachment.bin>


More information about the llvm-commits mailing list