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
Details
Diff Detail
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. |
Comment Actions
Changed the handling to drop all argument attributes in the case of a type expanding to multiple arguments
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.