[llvm-branch-commits] [mlir] [draft] Dialect Conversion without Rollback (PR #93412)

Oleksandr Alex Zinenko via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue May 28 08:18:13 PDT 2024


================
@@ -1819,6 +1822,22 @@ detail::ConversionPatternRewriterImpl &ConversionPatternRewriter::getImpl() {
   return *impl;
 }
 
+void ConversionPatternRewriter::setCurrentTypeConverter(
+    const TypeConverter *converter) {
+  impl->currentTypeConverter = converter;
+}
+
+const TypeConverter *
+ConversionPatternRewriter::getCurrentTypeConverter() const {
+  return impl->currentTypeConverter;
+}
+
+LogicalResult ConversionPatternRewriter::getAdapterOperands(
----------------
ftynse wrote:

Nit: can we agree on Adapter/Adaptor spelling? E.g., we already have `OpAdaptor`.

https://github.com/llvm/llvm-project/pull/93412


More information about the llvm-branch-commits mailing list