├── .gitee └── ISSUE_TEMPLATE.en.md ├── .gitignore ├── LICENSE ├── README.en.md ├── README.md ├── log └── 202012.md ├── mlir-toy ├── CMakeLists.txt ├── README.md ├── docs │ ├── images │ │ ├── conv.png │ │ ├── full.png │ │ ├── gpu_grid_block_thread.png │ │ ├── lu.png │ │ ├── matrixmultiply.jpg │ │ ├── pythonlu.png │ │ ├── reverse.png │ │ ├── same.png │ │ ├── transpose.png │ │ └── valid.png │ ├── intro_to_the_codes.md │ ├── mlir-cuda-usage.md │ └── mlir-toy2020.md ├── include │ ├── CMakeLists.txt │ └── toy │ │ ├── AST.h │ │ ├── AnalysisPass.h │ │ ├── CMakeLists.txt │ │ ├── Dialect.h │ │ ├── Lexer.h │ │ ├── MLIRGen.h │ │ ├── Ops.td │ │ ├── Parser.h │ │ ├── Passes.h │ │ ├── ShapeInferenceInterface.h │ │ └── ShapeInferenceInterface.td ├── mlir │ ├── Dialect.cpp │ ├── LowerToAffineLoops.cpp │ ├── LowerToGPU.cpp │ ├── LowerToLLVM.cpp │ ├── MLIRGen.cpp │ ├── ShapeInferencePass.cpp │ ├── ToyCombine.cpp │ └── ToyCombine.td ├── parser │ └── AST.cpp ├── tests │ ├── add.toy │ ├── conv.toy │ ├── conv_3types.toy │ ├── divide.toy │ ├── lu.toy │ ├── lu_and_det.toy │ ├── matrixmul.toy │ ├── print.toy │ ├── reshape.toy │ ├── reverse.toy │ ├── simple.toy │ ├── subtract.toy │ └── transpose.toy ├── toy-cuda-runner ├── toyc.cpp ├── 选做部分-v2.pptx └── 选做部分.pptx ├── my-llvm-driver ├── .gitignore ├── CMakeLists.txt ├── LICENSE ├── README.en.md ├── README.md ├── docs │ ├── A fast algorithm for finding dominators in a flowgraph.pdf │ ├── ClangStaticAnalyzer.md │ ├── CodingSpecChecker.md │ ├── DataFlow.md │ ├── LLVM-11.0.0-install.md │ ├── LoopSearch.md │ ├── image │ │ ├── image-20201223215920748.png │ │ ├── loop1.png │ │ ├── loop2.png │ │ ├── loop4.png │ │ ├── loop5.png │ │ └── loop6.png │ ├── report.md │ ├── slide │ │ └── 必做部分.pptx │ └── 支配树算法说明.pdf ├── include │ ├── Analysis │ │ └── LoopStatisticsPass.hpp │ ├── Checker │ │ ├── SimpleDivZeroChecker.h │ │ └── myAnalysisAction.h │ ├── Driver │ │ └── driver.h │ └── optimization │ │ ├── LoopSearchPass.hpp │ │ └── MyPasses.hpp ├── main.cpp ├── script │ └── diagram ├── src │ ├── Checker │ │ ├── SimpleDivZeroChecker.cpp │ │ └── myAnalysisAction.cpp │ └── Driver │ │ └── driver.cpp └── tests │ ├── checkertest.cpp │ ├── constant_prop.cpp │ ├── dce.c │ ├── dce.cpp │ ├── for.cpp │ ├── functions.c │ ├── helloworld.c │ ├── helloworld.cpp │ ├── if_else.c │ ├── loop.cpp │ ├── loop1.cpp │ ├── loop2.cpp │ ├── loop3.cpp │ ├── loop4.cpp │ ├── loop5.cpp │ ├── loop6.cpp │ ├── mem2reg_test.c │ ├── simple.cpp │ ├── simple_loop.cpp │ └── test.cpp ├── 必做部分.pptx └── 必做部分_v2.pptx /.gitee/ISSUE_TEMPLATE.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/.gitee/ISSUE_TEMPLATE.en.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/LICENSE -------------------------------------------------------------------------------- /README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/README.en.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/README.md -------------------------------------------------------------------------------- /log/202012.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/log/202012.md -------------------------------------------------------------------------------- /mlir-toy/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/CMakeLists.txt -------------------------------------------------------------------------------- /mlir-toy/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/README.md -------------------------------------------------------------------------------- /mlir-toy/docs/images/conv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/docs/images/conv.png -------------------------------------------------------------------------------- /mlir-toy/docs/images/full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/docs/images/full.png -------------------------------------------------------------------------------- /mlir-toy/docs/images/gpu_grid_block_thread.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/docs/images/gpu_grid_block_thread.png -------------------------------------------------------------------------------- /mlir-toy/docs/images/lu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/docs/images/lu.png -------------------------------------------------------------------------------- /mlir-toy/docs/images/matrixmultiply.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/docs/images/matrixmultiply.jpg -------------------------------------------------------------------------------- /mlir-toy/docs/images/pythonlu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/docs/images/pythonlu.png -------------------------------------------------------------------------------- /mlir-toy/docs/images/reverse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/docs/images/reverse.png -------------------------------------------------------------------------------- /mlir-toy/docs/images/same.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/docs/images/same.png -------------------------------------------------------------------------------- /mlir-toy/docs/images/transpose.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/docs/images/transpose.png -------------------------------------------------------------------------------- /mlir-toy/docs/images/valid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/docs/images/valid.png -------------------------------------------------------------------------------- /mlir-toy/docs/intro_to_the_codes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/docs/intro_to_the_codes.md -------------------------------------------------------------------------------- /mlir-toy/docs/mlir-cuda-usage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/docs/mlir-cuda-usage.md -------------------------------------------------------------------------------- /mlir-toy/docs/mlir-toy2020.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/docs/mlir-toy2020.md -------------------------------------------------------------------------------- /mlir-toy/include/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(toy) 2 | -------------------------------------------------------------------------------- /mlir-toy/include/toy/AST.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/include/toy/AST.h -------------------------------------------------------------------------------- /mlir-toy/include/toy/AnalysisPass.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/include/toy/AnalysisPass.h -------------------------------------------------------------------------------- /mlir-toy/include/toy/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/include/toy/CMakeLists.txt -------------------------------------------------------------------------------- /mlir-toy/include/toy/Dialect.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/include/toy/Dialect.h -------------------------------------------------------------------------------- /mlir-toy/include/toy/Lexer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/include/toy/Lexer.h -------------------------------------------------------------------------------- /mlir-toy/include/toy/MLIRGen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/include/toy/MLIRGen.h -------------------------------------------------------------------------------- /mlir-toy/include/toy/Ops.td: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/include/toy/Ops.td -------------------------------------------------------------------------------- /mlir-toy/include/toy/Parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/include/toy/Parser.h -------------------------------------------------------------------------------- /mlir-toy/include/toy/Passes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/include/toy/Passes.h -------------------------------------------------------------------------------- /mlir-toy/include/toy/ShapeInferenceInterface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/include/toy/ShapeInferenceInterface.h -------------------------------------------------------------------------------- /mlir-toy/include/toy/ShapeInferenceInterface.td: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/include/toy/ShapeInferenceInterface.td -------------------------------------------------------------------------------- /mlir-toy/mlir/Dialect.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/mlir/Dialect.cpp -------------------------------------------------------------------------------- /mlir-toy/mlir/LowerToAffineLoops.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/mlir/LowerToAffineLoops.cpp -------------------------------------------------------------------------------- /mlir-toy/mlir/LowerToGPU.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/mlir/LowerToGPU.cpp -------------------------------------------------------------------------------- /mlir-toy/mlir/LowerToLLVM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/mlir/LowerToLLVM.cpp -------------------------------------------------------------------------------- /mlir-toy/mlir/MLIRGen.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/mlir/MLIRGen.cpp -------------------------------------------------------------------------------- /mlir-toy/mlir/ShapeInferencePass.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/mlir/ShapeInferencePass.cpp -------------------------------------------------------------------------------- /mlir-toy/mlir/ToyCombine.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/mlir/ToyCombine.cpp -------------------------------------------------------------------------------- /mlir-toy/mlir/ToyCombine.td: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/mlir/ToyCombine.td -------------------------------------------------------------------------------- /mlir-toy/parser/AST.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/parser/AST.cpp -------------------------------------------------------------------------------- /mlir-toy/tests/add.toy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/tests/add.toy -------------------------------------------------------------------------------- /mlir-toy/tests/conv.toy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/tests/conv.toy -------------------------------------------------------------------------------- /mlir-toy/tests/conv_3types.toy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/tests/conv_3types.toy -------------------------------------------------------------------------------- /mlir-toy/tests/divide.toy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/tests/divide.toy -------------------------------------------------------------------------------- /mlir-toy/tests/lu.toy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/tests/lu.toy -------------------------------------------------------------------------------- /mlir-toy/tests/lu_and_det.toy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/tests/lu_and_det.toy -------------------------------------------------------------------------------- /mlir-toy/tests/matrixmul.toy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/tests/matrixmul.toy -------------------------------------------------------------------------------- /mlir-toy/tests/print.toy: -------------------------------------------------------------------------------- 1 | def main() { 2 | var a<1,2> = [1.0, 2.0]; 3 | print(a); 4 | } -------------------------------------------------------------------------------- /mlir-toy/tests/reshape.toy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/tests/reshape.toy -------------------------------------------------------------------------------- /mlir-toy/tests/reverse.toy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/tests/reverse.toy -------------------------------------------------------------------------------- /mlir-toy/tests/simple.toy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/tests/simple.toy -------------------------------------------------------------------------------- /mlir-toy/tests/subtract.toy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/tests/subtract.toy -------------------------------------------------------------------------------- /mlir-toy/tests/transpose.toy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/tests/transpose.toy -------------------------------------------------------------------------------- /mlir-toy/toy-cuda-runner: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/toy-cuda-runner -------------------------------------------------------------------------------- /mlir-toy/toyc.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/toyc.cpp -------------------------------------------------------------------------------- /mlir-toy/选做部分-v2.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/选做部分-v2.pptx -------------------------------------------------------------------------------- /mlir-toy/选做部分.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/mlir-toy/选做部分.pptx -------------------------------------------------------------------------------- /my-llvm-driver/.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | _output/ 3 | .vscode/ 4 | *.ll 5 | -------------------------------------------------------------------------------- /my-llvm-driver/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/CMakeLists.txt -------------------------------------------------------------------------------- /my-llvm-driver/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/LICENSE -------------------------------------------------------------------------------- /my-llvm-driver/README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/README.en.md -------------------------------------------------------------------------------- /my-llvm-driver/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/README.md -------------------------------------------------------------------------------- /my-llvm-driver/docs/A fast algorithm for finding dominators in a flowgraph.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/A fast algorithm for finding dominators in a flowgraph.pdf -------------------------------------------------------------------------------- /my-llvm-driver/docs/ClangStaticAnalyzer.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/ClangStaticAnalyzer.md -------------------------------------------------------------------------------- /my-llvm-driver/docs/CodingSpecChecker.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/CodingSpecChecker.md -------------------------------------------------------------------------------- /my-llvm-driver/docs/DataFlow.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/DataFlow.md -------------------------------------------------------------------------------- /my-llvm-driver/docs/LLVM-11.0.0-install.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/LLVM-11.0.0-install.md -------------------------------------------------------------------------------- /my-llvm-driver/docs/LoopSearch.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/LoopSearch.md -------------------------------------------------------------------------------- /my-llvm-driver/docs/image/image-20201223215920748.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/image/image-20201223215920748.png -------------------------------------------------------------------------------- /my-llvm-driver/docs/image/loop1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/image/loop1.png -------------------------------------------------------------------------------- /my-llvm-driver/docs/image/loop2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/image/loop2.png -------------------------------------------------------------------------------- /my-llvm-driver/docs/image/loop4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/image/loop4.png -------------------------------------------------------------------------------- /my-llvm-driver/docs/image/loop5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/image/loop5.png -------------------------------------------------------------------------------- /my-llvm-driver/docs/image/loop6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/image/loop6.png -------------------------------------------------------------------------------- /my-llvm-driver/docs/report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/report.md -------------------------------------------------------------------------------- /my-llvm-driver/docs/slide/必做部分.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/slide/必做部分.pptx -------------------------------------------------------------------------------- /my-llvm-driver/docs/支配树算法说明.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/docs/支配树算法说明.pdf -------------------------------------------------------------------------------- /my-llvm-driver/include/Analysis/LoopStatisticsPass.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/include/Analysis/LoopStatisticsPass.hpp -------------------------------------------------------------------------------- /my-llvm-driver/include/Checker/SimpleDivZeroChecker.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/include/Checker/SimpleDivZeroChecker.h -------------------------------------------------------------------------------- /my-llvm-driver/include/Checker/myAnalysisAction.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/include/Checker/myAnalysisAction.h -------------------------------------------------------------------------------- /my-llvm-driver/include/Driver/driver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/include/Driver/driver.h -------------------------------------------------------------------------------- /my-llvm-driver/include/optimization/LoopSearchPass.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/include/optimization/LoopSearchPass.hpp -------------------------------------------------------------------------------- /my-llvm-driver/include/optimization/MyPasses.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/include/optimization/MyPasses.hpp -------------------------------------------------------------------------------- /my-llvm-driver/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/main.cpp -------------------------------------------------------------------------------- /my-llvm-driver/script/diagram: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/script/diagram -------------------------------------------------------------------------------- /my-llvm-driver/src/Checker/SimpleDivZeroChecker.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/src/Checker/SimpleDivZeroChecker.cpp -------------------------------------------------------------------------------- /my-llvm-driver/src/Checker/myAnalysisAction.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/src/Checker/myAnalysisAction.cpp -------------------------------------------------------------------------------- /my-llvm-driver/src/Driver/driver.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/src/Driver/driver.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/checkertest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/checkertest.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/constant_prop.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/constant_prop.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/dce.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/dce.c -------------------------------------------------------------------------------- /my-llvm-driver/tests/dce.cpp: -------------------------------------------------------------------------------- 1 | int main(){ 2 | 3 | } -------------------------------------------------------------------------------- /my-llvm-driver/tests/for.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/for.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/functions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/functions.c -------------------------------------------------------------------------------- /my-llvm-driver/tests/helloworld.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/helloworld.c -------------------------------------------------------------------------------- /my-llvm-driver/tests/helloworld.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/helloworld.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/if_else.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/if_else.c -------------------------------------------------------------------------------- /my-llvm-driver/tests/loop.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/loop.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/loop1.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/loop1.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/loop2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/loop2.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/loop3.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/loop3.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/loop4.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/loop4.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/loop5.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/loop5.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/loop6.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/loop6.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/mem2reg_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/mem2reg_test.c -------------------------------------------------------------------------------- /my-llvm-driver/tests/simple.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/simple.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/simple_loop.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/simple_loop.cpp -------------------------------------------------------------------------------- /my-llvm-driver/tests/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/my-llvm-driver/tests/test.cpp -------------------------------------------------------------------------------- /必做部分.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/必做部分.pptx -------------------------------------------------------------------------------- /必做部分_v2.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/code-nowww/2020-USTC-Compiler-Lab-MLIR/HEAD/必做部分_v2.pptx --------------------------------------------------------------------------------