[all-commits] [llvm/llvm-project] 8be037: [MLIR][SPIRVToLLVM] Conversion of load and store S...
George Mitenkov via All-commits
all-commits at lists.llvm.org
Fri Jul 24 06:33:05 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8be0371eb79fb25ba22846410e1a31c88b4c89c2
https://github.com/llvm/llvm-project/commit/8be0371eb79fb25ba22846410e1a31c88b4c89c2
Author: George Mitenkov <georgemitenk0v at gmail.com>
Date: 2020-07-24 (Fri, 24 Jul 2020)
Changed paths:
M mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
M mlir/test/Conversion/SPIRVToLLVM/memory-ops-to-llvm.mlir
Log Message:
-----------
[MLIR][SPIRVToLLVM] Conversion of load and store SPIR-V ops
This patch introduces conversion pattern for `spv.Store` and `spv.Load`.
Only op with `Function` Storage Class is supported at the moment
because `spv.GlobalVariable` has not been introduced yet. If the op
has memory access attribute, then there are the following cases.
If the access is `Aligned`, add alignment to the op builder. Otherwise
the conversion fails as other cases are not supported yet because they
require additional attributes for `llvm.store`/`llvm.load` ops: e.g.
`volatile` and `nontemporal`.
Reviewed By: antiagainst
Differential Revision: https://reviews.llvm.org/D84236
More information about the All-commits
mailing list