[Mlir-commits] [mlir] [MLIR] Let matchers work on int ranges (PR	#102494)
    Christian Ulmann 
    llvmlistbot at llvm.org
       
    Fri Aug  9 01:50:00 PDT 2024
    
    
  
================
@@ -100,6 +101,41 @@ struct constant_op_binder {
   }
 };
 
+/// A matcher that matches operations that implement the
+/// `InferIntRangeInterface` interface, and binds the inferred range.
+struct infer_int_range_op_binder {
+  IntegerValueRange *bind_value;
+
+  infer_int_range_op_binder(IntegerValueRange *bind_value)
----------------
Dinistro wrote:
```suggestion
  explicit infer_int_range_op_binder(IntegerValueRange *bind_value)
```
or should this really be implicitly constructible? 
https://github.com/llvm/llvm-project/pull/102494
    
    
More information about the Mlir-commits
mailing list