When lowering LinalgToStandard for named UnaryFn/BinaryFn ops, ensure the fun name appears in the generated library name. Further, for linalg.copy to/from different address spaces, ensure the to/from address spaces are appended onto the library name for uniqueness. This fixes the lowering error with the linalg.copy testcase shown in this patch.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp | ||
---|---|---|
1806 | There's no guarantee this cast succeeds. You likely want a dyn_cast and propagate failure. |
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp | ||
---|---|---|
1806 | getMemorySpaceAsInt is deprecated, and there is no guarantee it succeeds either. Furthermore, this is introducing a subtle behavior change where no suffix will be emitted for the address space 0 (this sounds desirable for the default memory space, but needs a test). Please do a dyn_cast and just return failure() if it fails... |
There's no guarantee this cast succeeds. You likely want a dyn_cast and propagate failure.