summaryrefslogtreecommitdiff
path: root/mlir/lib/Dialect/Transform/Transforms/InferEffects.cpp
AgeCommit message (Collapse)Author
2025-07-11[mlir] Remove unused includes (NFC) (#148119)Kazu Hirata
These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures.
2024-03-20[mlir] split transform interfaces into a separate library (#85221)Oleksandr "Alex" Zinenko
Transform interfaces are implemented, direction or via extensions, in libraries belonging to multiple other dialects. Those dialects don't need to depend on the non-interface part of the transform dialect, which includes the growing number of ops and transitive dependency footprint. Split out the interfaces into a separate library. This in turn requires flipping the dependency from the interface on the dialect that has crept in because both co-existed in one library. The interface shouldn't depend on the transform dialect either. As a consequence of splitting, the capability of the interpreter to automatically walk the payload IR to identify payload ops of a certain kind based on the type used for the entry point symbol argument is disabled. This is a good move by itself as it simplifies the interpreter logic. This functionality can be trivially replaced by a `transform.structured.match` operation.
2023-08-31[mlir] Move FunctionInterfaces to Interfaces directory and inherit from ↵Martin Erhart
CallableOpInterface Functions are always callable operations and thus every operation implementing the `FunctionOpInterface` also implements the `CallableOpInterface`. The only exception was the FuncOp in the toy example. To make implementation of the `FunctionOpInterface` easier, this commit lets `FunctionOpInterface` inherit from `CallableOpInterface` and merges some of their methods. More precisely, the `CallableOpInterface` has methods to get the argument and result attributes and a method to get the result types of the callable region. These methods are always implemented the same way as their analogues in `FunctionOpInterface` and thus this commit moves all the argument and result attribute handling methods to the callable interface as well as the methods to get the argument and result types. The `FuntionOpInterface` then does not have to declare them as well, but just inherits them from the `CallableOpInterface`. Adding the inheritance relation also required to move the `FunctionOpInterface` from the IR directory to the Interfaces directory since IR should not depend on Interfaces. Reviewed By: jpienaar, springerm Differential Revision: https://reviews.llvm.org/D157988
2023-04-04[mlir] add readonly/consume annotations to transform named sequencesAlex Zinenko
Use the argument attribute mechanism for function-like operations to annotate the arguments of named transform sequences as consuming or only reading the handles passed as arguments. This makes it possible to correctly specify handle invalidation for external named sequences by requiring their declarations to always provide such annotations. Additionally, these annotations remove the need to analyze the body of a named sequence to understand its effects on the arguments. Make them required for named sequences that are called from the same file, in addition to external sequences. Provide a convenience pass that infers annotations by analyzing bodies of named sequences provided they are not called from the same file. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D147223