[llvm] [mlir][Transform] Create a transform interpreter and a preloader pass (PR #68661)

Nicolas Vasilache via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 11:29:16 PDT 2023


================
@@ -60,9 +60,13 @@ ArrayRef<Operation *>
 transform::TransformState::getPayloadOpsView(Value value) const {
   const TransformOpMapping &operationMapping = getMapping(value).direct;
   auto iter = operationMapping.find(value);
-  assert(
-      iter != operationMapping.end() &&
-      "cannot find mapping for payload handle (param/value handle provided?)");
+
+  if (iter == operationMapping.end()) {
+    value.dump();
----------------
nicolasvasilache wrote:

I wanted to print the actual value before the assert, I think there si a convoluted Twine way but meh.


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


More information about the llvm-commits mailing list