When emitting masked load / store, set alignment from data layout.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
It now becomes evident it's better to specify target triple and data layout in llvm dialect.
It should be in the *->llvm conversion. However, the conversion is not very well structured for extension atm, and we would have to patch all *->llvm to take the data layout and forward it to the relevant palce.
mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp | ||
---|---|---|
755 | We tend to use arguments passed by-reference to return extra results, or named structs. | |
757 | Type converter mail fail and return nullptr, what's the contract with this function on it? |
@ftynse Revised the patch addressing your comments. Could you help review it again, and help get it landed should the patch is okay with you? Thanks.
This breaks transfer read/write operations when using the mlir cpu runner in JIT mode, probably due to inconsistencies between the data layouts.
mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp | ||
---|---|---|
755 | nit: Static functions should be marked static and in the top-level namespace, i.e., not within an anonymous namespace. |
We tend to use arguments passed by-reference to return extra results, or named structs.