Re-apply "[Examples] Add IRTransformations directory to examples."
authorFlorian Hahn <flo@fhahn.com>
Sat, 4 Jan 2020 15:01:43 +0000 (15:01 +0000)
committerFlorian Hahn <flo@fhahn.com>
Sat, 4 Jan 2020 15:47:23 +0000 (15:47 +0000)
commit0bb22b91ea335b964b99862834164b0b3a866eb4
treed76e85a805f172466d61d3626b8a8c4e22891436
parentb7ecf1c1c373c53183ef6ef66efbe4237ff7b96d
Re-apply "[Examples] Add IRTransformations directory to examples."

This reverts commit 19fd8925a4afe6efd248688cce06aceff50efe0c.

Should include a fix for PR44197.
17 files changed:
llvm/CMakeLists.txt
llvm/cmake/modules/AddLLVM.cmake
llvm/examples/CMakeLists.txt
llvm/examples/IRTransforms/CMakeLists.txt [new file with mode: 0644]
llvm/examples/IRTransforms/InitializePasses.cpp [new file with mode: 0644]
llvm/examples/IRTransforms/InitializePasses.h [new file with mode: 0644]
llvm/examples/IRTransforms/SimplifyCFG.cpp [new file with mode: 0644]
llvm/examples/IRTransforms/SimplifyCFG.h [new file with mode: 0644]
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg-blockaddress.ll [new file with mode: 0644]
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg1.ll [new file with mode: 0644]
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg2-dead-block-order.ll [new file with mode: 0644]
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg3-phis.ll [new file with mode: 0644]
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg4-multiple-duplicate-cfg-updates.ll [new file with mode: 0644]
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg5-del-phis-for-dead-block.ll [new file with mode: 0644]
llvm/test/Examples/IRTransforms/SimplifyCFG/tut-simplify-cfg6-dead-self-loop.ll [new file with mode: 0644]
llvm/tools/opt/CMakeLists.txt
llvm/tools/opt/opt.cpp