[mlir] Add asserts when changing various MLIRContext configurationsThis helps to prevent tsan failures when users inadvertantly mutate thecontext in a non-safe way.Differential Revision: https:/
[mlir] Add asserts when changing various MLIRContext configurationsThis helps to prevent tsan failures when users inadvertantly mutate thecontext in a non-safe way.Differential Revision: https://reviews.llvm.org/D112021
show more ...
Apply clang-tidy fixes for performance-move-const-arg in ReductionNode.cpp (NFC)
Apply clang-tidy fixes for performance-unnecessary-value-param to MLIR (NFC)
Apply clang-tidy fixes for performance-move-const-arg to MLIR (NFC)
Apply clang-tidy fixes for performance-for-range-copy to MLIR (NFC)
Apply clang-tidy fixes for modernize-use-default-member-init to MLIR ReductionNode.cpp (NFC)
Apply clang-tidy fixes for readability-container-size-empty for MLIR (NFC)Reviewed By: rriddle, MogballDifferential Revision: https://reviews.llvm.org/D116252
Apply clang-tidy fixes for performance-unnecessary-value-param to MLIR (NFC)Reviewed By: MogballDifferential Revision: https://reviews.llvm.org/D116250
Fix more clang-tidy cleanups in mlir/ (NFC)
Adjust "end namespace" comment in MLIR to match new agree'd coding styleSee D115115 and this mailing list discussion:https://lists.llvm.org/pipermail/llvm-dev/2021-December/154199.htmlDifferenti
Adjust "end namespace" comment in MLIR to match new agree'd coding styleSee D115115 and this mailing list discussion:https://lists.llvm.org/pipermail/llvm-dev/2021-December/154199.htmlDifferential Revision: https://reviews.llvm.org/D115309
[mlir] Replace report_fatal_error(std::string) uses with report_fatal_error(Twine)As described on D111049, we're trying to remove the <string> dependency from error handling and replace uses of rep
[mlir] Replace report_fatal_error(std::string) uses with report_fatal_error(Twine)As described on D111049, we're trying to remove the <string> dependency from error handling and replace uses of report_fatal_error(const std::string&) with the Twine() variant which can be forward declared.
[mlir-reduce] Fix the memory leak and recycle unused modules.Reviewed By: jpienaarDifferential Revision: https://reviews.llvm.org/D105416
[mlir-reduce] Improve diagnostic message and clean build dependencyReviewed By: rriddleDifferential Revision: https://reviews.llvm.org/D104443
[mlir-reduce] Create MlirReduceLibMove the core reducer algorithm into a library so that it'll be easierfor porting to different projects.Depends On D101046Reviewed By: jpienaar, rriddleDiff
[mlir-reduce] Create MlirReduceLibMove the core reducer algorithm into a library so that it'll be easierfor porting to different projects.Depends On D101046Reviewed By: jpienaar, rriddleDifferential Revision: https://reviews.llvm.org/D101607
Fix CMake error: TableGen targets must be in the DEPENDS list instead of LINK_LIBS
Add missing CMake dependency for mlir/lib/Reducer (NFC)The `OptReductionPass.cpp` file depends on the TableGen generated`mlir/Reducer/Passes.h.inc` file.
[mlir-reduce] Reducer refactor.* A Reducer is a kind of RewritePattern, so it's just the same aswriting graph rewrite.* ReductionTreePass operates on Operation rather than ModuleOp, so that* we
[mlir-reduce] Reducer refactor.* A Reducer is a kind of RewritePattern, so it's just the same aswriting graph rewrite.* ReductionTreePass operates on Operation rather than ModuleOp, so that* we are able to reduce a nested structure(e.g., module in module) by* self-nesting.Reviewed By: jpienaar, rriddleDifferential Revision: https://reviews.llvm.org/D101046
Refactor the architecture of mlir-reduceAdd iterator for ReductionNode traversal and use range to indicate theregion we would like to keep. Refactor the interaction betweenPass/Tester/ReductionNo
Refactor the architecture of mlir-reduceAdd iterator for ReductionNode traversal and use range to indicate theregion we would like to keep. Refactor the interaction betweenPass/Tester/ReductionNode.Now it'll be easier to add new traversal type and OpReducerReviewed By: jpienaar, rriddleDifferential Revision: https://reviews.llvm.org/D99713
Revert "Refactor the architecture of mlir-reduce"This reverts commit a32846b1d0147f30f6dde4bfec453cd681937005.The build is broken with -DBUILD_SHARED_LIBS=ON:tools/mlir/lib/Reducer/CMakeFiles/o
Revert "Refactor the architecture of mlir-reduce"This reverts commit a32846b1d0147f30f6dde4bfec453cd681937005.The build is broken with -DBUILD_SHARED_LIBS=ON:tools/mlir/lib/Reducer/CMakeFiles/obj.MLIRReduce.dir/Tester.cpp.o: In function `mlir::Tester::isInteresting(mlir::ModuleOp) const':Tester.cpp:(.text._ZNK4mlir6Tester13isInterestingENS_8ModuleOpE+0xa8): undefined reference to `mlir::OpPrintingFlags::OpPrintingFlags()'Tester.cpp:(.text._ZNK4mlir6Tester13isInterestingENS_8ModuleOpE+0xc6): undefined reference to `mlir::Operation::print(llvm::raw_ostream&, mlir::OpPrintingFlags)'
Refactor the architecture of mlir-reduceAdd iterator for ReductionNode traversal and use range to indicate the region we would like to keep. Refactor the interaction between Pass/Tester/ReductionNo
Refactor the architecture of mlir-reduceAdd iterator for ReductionNode traversal and use range to indicate the region we would like to keep. Refactor the interaction between Pass/Tester/ReductionNode.Now it'll be easier to add new traversal type and OpReducerReviewed By: jpienaar, rriddleDifferential Revision: https://reviews.llvm.org/D99713
[mlir] NFC: fix trivial typosfix typos in comments and documentsReviewed By: jpienaarDifferential Revision: https://reviews.llvm.org/D90089
Create Reduction Tree PassImplement the Reduction Tree Pass framework as part of the MLIR Reduce tool. This is a parametarizable pass that allows for the implementation of custom reductions passes
Create Reduction Tree PassImplement the Reduction Tree Pass framework as part of the MLIR Reduce tool. This is a parametarizable pass that allows for the implementation of custom reductions passes in the tool.Implement the FunctionReducer class as an example of a Reducer class parameter for the instantiation of a Reduction Tree Pass.Create a pass pipeline with a Reduction Tree Pass with the FunctionReducer class specified as parameter.Reviewed By: jpienaarDifferential Revision: https://reviews.llvm.org/D83969
Create the MLIR Reduce frameworkCreate the framework and testing environment for MLIR Reduce - a toolwith the objective to reduce large test cases into smaller ones whilepreserving their interest
Create the MLIR Reduce frameworkCreate the framework and testing environment for MLIR Reduce - a toolwith the objective to reduce large test cases into smaller ones whilepreserving their interesting behavior.Implement the functionality to parse command line arguments, parse theMLIR test cases into modules and run the interestingness tests onthe modules.Reviewed By: jpienaarDifferential Revision: https://reviews.llvm.org/D82803
Revert "Create the framework and testing environment for MLIR Reduce - a tool"This reverts commit 28a45d54a7fe722248233165fc7fdbd18d18d233.Windows bot is broken with:LLVM ERROR: Error running i
Revert "Create the framework and testing environment for MLIR Reduce - a tool"This reverts commit 28a45d54a7fe722248233165fc7fdbd18d18d233.Windows bot is broken with:LLVM ERROR: Error running interestingness test: posix_spawn failed: Permission denied
Create the framework and testing environment for MLIR Reduce - a toolwith the objective to reduce large test cases into smaller ones whilepreserving their interesting behavior.Implement the frame
Create the framework and testing environment for MLIR Reduce - a toolwith the objective to reduce large test cases into smaller ones whilepreserving their interesting behavior.Implement the framework to parse the command line arguments, parse theinput MLIR test case into a module and call reduction passes on the MLIR module.Implement the Tester class which allows the different reduction passes to test theinteresting behavior of the generated reduced variants of the test case and keep trackof the most reduced generated variant.