[Mlir-commits] [mlir] [mlir][ODS] Allow inferring operand types from multiple variables (PR #127517)
    Jeff Niu 
    llvmlistbot at llvm.org
       
    Tue Feb 18 09:51:41 PST 2025
    
    
  
================
@@ -457,8 +459,10 @@ void Operator::populateTypeInferenceInfo(
       // If the type of the result has already been inferred, do nothing.
       if (infer.inferred)
         continue;
-      int sourceIndex =
-          argumentsAndResultsIndex.lookup(def.getValueAsString("lhs"));
+      std::vector<StringRef> args = def.getValueAsListOfStrings("args");
+      assert(args.size() == 1 &&
+             "multiple arguments for result inference not yet supported.");
----------------
Mogball wrote:
ODS error handling isn't great, but `report_fatal_error` would at least mean the user is more likely to actually see the error message
https://github.com/llvm/llvm-project/pull/127517
    
    
More information about the Mlir-commits
mailing list