[all-commits] [llvm/llvm-project] 7d0b1d: [Examples] Add IRTransformations directory to exam...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Nov 12 06:17:19 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7d0b1d77b3d4d47df477519fd1bf099b3df6f899
      https://github.com/llvm/llvm-project/commit/7d0b1d77b3d4d47df477519fd1bf099b3df6f899
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2019-11-12 (Tue, 12 Nov 2019)

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

  Log Message:
  -----------
  [Examples] Add IRTransformations directory to examples.

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.

Reviewers: paquette, jfb, meikeb, lhames, kbarton

Reviewed By: paquette

Differential Revision: https://reviews.llvm.org/D69416




More information about the All-commits mailing list