- Move isSupportedMemRefType() to ConvertToLLVMPatterns and check if the memref element type is supported there.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp | ||
---|---|---|
2438 | This is a leftover. Will remove it. |
Comment Actions
Would a test case be applicable here? I assume this leads to a pattern match failure and the op staying as is in a simple case.
Comment Actions
AFAICT it's not possible today to hit this, so this turns out to be just defensive programming. MemRef element type is either int/float/index/complex or a vector (which itself can only have int or float elements) and all these types seems to be convertible to LLVM types without any failures. As such, I don't think we will run into this issue today, but will guard against future extensions to MemRef types.
This is a leftover. Will remove it.