├── .gitignore ├── CMakeLists.txt ├── LICENCE ├── README.md ├── helloPass ├── CMakeLists.txt ├── Hello.cpp ├── README.md ├── run.sh.in ├── run_pass_in_clang.sh.in └── simple_prog.c ├── stripDeadFunctionsDemo ├── CMakeLists.txt ├── README.md ├── simple.c └── strip.sh.in ├── toolDemo ├── CMakeLists.txt └── tool.cpp ├── usingAnalyses ├── CMakeLists.txt ├── CycleDetect.cpp ├── README.md ├── has_cycle.c ├── no_cycle.c └── run.sh.in ├── usingIRBuilder ├── CMakeLists.txt ├── README.md ├── ReplaceGetGlobalID.cpp ├── foo.cl └── run.sh.in └── visualisationDemos ├── CMakeLists.txt ├── README.md ├── call_graph.sh.in ├── calls.c ├── control_flow_graph.sh.in ├── dominator_tree.sh.in ├── loop.c └── region_graph.sh.in /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/.gitignore -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENCE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/LICENCE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/README.md -------------------------------------------------------------------------------- /helloPass/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/helloPass/CMakeLists.txt -------------------------------------------------------------------------------- /helloPass/Hello.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/helloPass/Hello.cpp -------------------------------------------------------------------------------- /helloPass/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/helloPass/README.md -------------------------------------------------------------------------------- /helloPass/run.sh.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/helloPass/run.sh.in -------------------------------------------------------------------------------- /helloPass/run_pass_in_clang.sh.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/helloPass/run_pass_in_clang.sh.in -------------------------------------------------------------------------------- /helloPass/simple_prog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/helloPass/simple_prog.c -------------------------------------------------------------------------------- /stripDeadFunctionsDemo/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/stripDeadFunctionsDemo/CMakeLists.txt -------------------------------------------------------------------------------- /stripDeadFunctionsDemo/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/stripDeadFunctionsDemo/README.md -------------------------------------------------------------------------------- /stripDeadFunctionsDemo/simple.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/stripDeadFunctionsDemo/simple.c -------------------------------------------------------------------------------- /stripDeadFunctionsDemo/strip.sh.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/stripDeadFunctionsDemo/strip.sh.in -------------------------------------------------------------------------------- /toolDemo/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/toolDemo/CMakeLists.txt -------------------------------------------------------------------------------- /toolDemo/tool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/toolDemo/tool.cpp -------------------------------------------------------------------------------- /usingAnalyses/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/usingAnalyses/CMakeLists.txt -------------------------------------------------------------------------------- /usingAnalyses/CycleDetect.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/usingAnalyses/CycleDetect.cpp -------------------------------------------------------------------------------- /usingAnalyses/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/usingAnalyses/README.md -------------------------------------------------------------------------------- /usingAnalyses/has_cycle.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/usingAnalyses/has_cycle.c -------------------------------------------------------------------------------- /usingAnalyses/no_cycle.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/usingAnalyses/no_cycle.c -------------------------------------------------------------------------------- /usingAnalyses/run.sh.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/usingAnalyses/run.sh.in -------------------------------------------------------------------------------- /usingIRBuilder/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/usingIRBuilder/CMakeLists.txt -------------------------------------------------------------------------------- /usingIRBuilder/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/usingIRBuilder/README.md -------------------------------------------------------------------------------- /usingIRBuilder/ReplaceGetGlobalID.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/usingIRBuilder/ReplaceGetGlobalID.cpp -------------------------------------------------------------------------------- /usingIRBuilder/foo.cl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/usingIRBuilder/foo.cl -------------------------------------------------------------------------------- /usingIRBuilder/run.sh.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/usingIRBuilder/run.sh.in -------------------------------------------------------------------------------- /visualisationDemos/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/visualisationDemos/CMakeLists.txt -------------------------------------------------------------------------------- /visualisationDemos/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/visualisationDemos/README.md -------------------------------------------------------------------------------- /visualisationDemos/call_graph.sh.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/visualisationDemos/call_graph.sh.in -------------------------------------------------------------------------------- /visualisationDemos/calls.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/visualisationDemos/calls.c -------------------------------------------------------------------------------- /visualisationDemos/control_flow_graph.sh.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/visualisationDemos/control_flow_graph.sh.in -------------------------------------------------------------------------------- /visualisationDemos/dominator_tree.sh.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/visualisationDemos/dominator_tree.sh.in -------------------------------------------------------------------------------- /visualisationDemos/loop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/visualisationDemos/loop.c -------------------------------------------------------------------------------- /visualisationDemos/region_graph.sh.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/delcypher/srg-llvm-pass-tutorial/HEAD/visualisationDemos/region_graph.sh.in --------------------------------------------------------------------------------