[Mlir-commits] [mlir] [mlir][LLVM] Improve lowering of `llvm.byval` function arguments (PR #100028)
River Riddle
llvmlistbot at llvm.org
Fri Aug 2 08:52:29 PDT 2024
================
@@ -75,6 +76,10 @@ class TypeConverter {
/// Return the argument types for the new signature.
ArrayRef<Type> getConvertedTypes() const { return argTypes; }
+ /// Get the converted type for the given argument only if there is a
+ /// one-to-one mapping for it. Otherwise, return std::nullptr.
+ std::optional<Type> getConvertedType(unsigned inputo) const;
----------------
River707 wrote:
```suggestion
std::optional<Type> getConvertedType(unsigned input) const;
```
https://github.com/llvm/llvm-project/pull/100028
More information about the Mlir-commits
mailing list