[Mlir-commits] [mlir] [mlir][LLVM] `ControlFlowToLLVM`: Add 1:N type conversion support (PR #153937)

Tobias Gysi llvmlistbot at llvm.org
Sat Aug 16 02:59:37 PDT 2025


================
@@ -125,22 +125,33 @@ static FailureOr<Block *> getConvertedBlock(ConversionPatternRewriter &rewriter,
   return rewriter.applySignatureConversion(block, *conversion, converter);
 }
 
+/// Flatten the given value ranges into a single vector of values.
+static SmallVector<Value> flattenValues(ArrayRef<ValueRange> values) {
+  SmallVector<Value> result;
+  for (const auto &vals : values)
----------------
gysit wrote:

```suggestion
  for (const ValueRange &vals : values)
```
nit:

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


More information about the Mlir-commits mailing list