llvm-project
84d9318f - [mlir][spirv-to-llvm] Add conversion for spirv.CopyMemory (#232944)

Commit
37 days ago
[mlir][spirv-to-llvm] Add conversion for spirv.CopyMemory (#232944) Convert `spirv.CopyMemory` to `llvm.intr.memcpy`. The byte size copied is computed from the converted pointee type using the module's data layout (`DataLayout::closest(op).getTypeSize(...)`) and passed as an `i64` constant. Runtime arrays (converted to 0-element LLVM arrays) and scalable types have no fixed static size and fail to match. Memory-access operands follow the SPIR-V 1.4 specification: when only a single mask is present it applies to both Target and Source, and when a second mask is present it applies to Source while the first applies to Target.
Parents
Loading