summaryrefslogtreecommitdiff
path: root/mlir/lib/Support/InterfaceSupport.cpp
AgeCommit message (Collapse)Author
2023-05-30[mlir] [NFC] Add a newline to debug message at inserting of InterfaceMapKohei Yamaguchi
At inserting of InterfaceMap, a debug message lacked a newline, so it repeatedly displayed this message within a single line. Clean up the debug log by inserting a newline at the end of the message. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D150182
2023-01-18[mlir] Add support for interface inheritanceRiver Riddle
This allows for interfaces to define a set of "base classes", which are interfaces whose methods/extra class decls/etc. should be inherited by the derived interface. This more easily enables combining interfaces and their dependencies, without lots of awkard casting. Additional implicit conversion operators also greatly simplify the conversion process. One other aspect of this "inheritance" is that we also implicitly add the base interfaces to the attr/op/type. The user can still add them manually if desired, but this should help remove some of the boiler plate when an interface has dependencies. See https://discourse.llvm.org/t/interface-inheritance-and-dependencies-interface-method-visibility-interface-composition Differential Revision: https://reviews.llvm.org/D140198
2022-03-17[mlir] Move InterfaceMap::InterfaceMap to the cpp fileBenjamin Kramer
So we don't end up with a copy of std::sort in every dialect definition. NFCI.
2021-10-02Free memory leak on duplicate interface registrationMehdi Amini
I guess this is why we should use unique_ptr as much as possible. Also fix the InterfaceAttachmentTest.cpp test. Differential Revision: https://reviews.llvm.org/D110984
2021-06-17[mlir] Split things dependent on LLVM_DEBUG into a .cpp fileBenjamin Kramer
LLVM_DEBUG in headers is awkward, better avoid it. DEBUG_TYPE in a header results in a lot of macro redefinition warnings.