[Mlir-commits] [mlir] [mlir][dataflow] Fix for integer range analysis propagation bug (PR #93199)

Spenser Bauman llvmlistbot at llvm.org
Fri May 24 03:38:16 PDT 2024


================
@@ -27,6 +27,9 @@ namespace intrange {
 using InferRangeFn =
     function_ref<ConstantIntRanges(ArrayRef<ConstantIntRanges>)>;
 
+using OptionalRangeFn =
+    std::function<OptionalIntRanges(ArrayRef<OptionalIntRanges>)>;
----------------
sabauma wrote:

I was a uncomfortable using `function-ref` since some functions return `OptionalRangeFn`.

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


More information about the Mlir-commits mailing list