[Mlir-commits] [mlir] [mlir][Conversion] `FuncToLLVM`: Simplify bare-pointer handling (PR #96393)
Matthias Springer
llvmlistbot at llvm.org
Sun Jun 23 10:18:27 PDT 2024
matthias-springer wrote:
That's right, this implementation would have been feasible back then. My best guess is that the author was confused about `addArgumentMaterialization` and did not know that the given `ValueRange` is always a list of bbargs that belong to a newly added block.
I'm thinking of adding a different `MaterializationCallbackFn` type for argument materializations:
```
using ArgumentMaterializationCallbackFn = std::function<std::optional<Value>(
OpBuilder &, Type, BlockArgListType, Location)>;
```
But that could be a larger change and I'd rather do that in a separate PR.
https://github.com/llvm/llvm-project/pull/96393
More information about the Mlir-commits
mailing list