This commit ensures that argument attributes are dropped from types
that are expanded to multiple function arguments. Previously, they
were attached to all arguments belonging to the memref, which
resulted in illegal LLVMIR, e.g., noalias on integers.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp | ||
---|---|---|
367–368 | Could this be done in the place where the argument (=memref) is unpacked to multiple arguments? It seems like this logic is very argument type specific. |
mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp | ||
---|---|---|
367–368 | Unfortunately, the SignatureConversion cannot do that for us. It might make sense to differentiate on the original type and only perform this change when it is a memref type. |
Changed the handling to drop all argument attributes in the case of a type expanding to multiple arguments
clang-format not found in user’s local PATH; not linting file.