llvm-project/mlir/test/Conversion/SPIRVToLLVM
Alex Zinenko f50cfc44d6 [mlir] Require struct indices in LLVM::GEPOp to be constant
Recent commits added a possibility for indices in LLVM dialect GEP operations
to be supplied directly as constant attributes to ensure they remain such until
translation to LLVM IR happens. Make this required for indexing into LLVM
struct types to match LLVM IR requirements, otherwise the translation would
assert on constructing such IR.

For better compatibility with MLIR-style operation construction interface,
allow GEP operations to be constructed programmatically using Values pointing
to known constant operations as struct indices.

Depends On D116758

Reviewed By: wsmoses

Differential Revision: https://reviews.llvm.org/D116759
2022-01-07 09:56:05 +01:00
..
arithmetic-ops-to-llvm.mlir [mlir] use built-in vector types instead of LLVM dialect types when possible 2021-01-12 10:04:28 +01:00
bitwise-ops-to-llvm.mlir [mlir] use built-in vector types instead of LLVM dialect types when possible 2021-01-12 10:04:28 +01:00
cast-ops-to-llvm.mlir [mlir] use built-in vector types instead of LLVM dialect types when possible 2021-01-12 10:04:28 +01:00
comparison-ops-to-llvm.mlir [mlir] use built-in vector types instead of LLVM dialect types when possible 2021-01-12 10:04:28 +01:00
constant-op-to-llvm.mlir [MLIR][SPIRV] Rename `spv.constant` to `spv.Constant`. 2021-03-04 16:15:56 -05:00
control-flow-ops-to-llvm.mlir [MLIR][SPIRV] Rename `spv.selection` to `spv.mlir.selection`. 2021-03-06 16:05:31 +01:00
func-ops-to-llvm.mlir [mlir] use built-in vector types instead of LLVM dialect types when possible 2021-01-12 10:04:28 +01:00
glsl-ops-to-llvm.mlir [mlir] use built-in vector types instead of LLVM dialect types when possible 2021-01-12 10:04:28 +01:00
logical-ops-to-llvm.mlir [mlir] use built-in vector types instead of LLVM dialect types when possible 2021-01-12 10:04:28 +01:00
lower-host-to-llvm-calls.mlir [MLIR] Replace std ops with arith dialect ops 2021-10-13 03:07:03 +00:00
memory-ops-to-llvm.mlir [mlir] Require struct indices in LLVM::GEPOp to be constant 2022-01-07 09:56:05 +01:00
misc-ops-to-llvm.mlir [mlir][SPIRVToLLVM] Add shufflevector conversion 2021-11-01 23:05:37 +08:00
module-ops-to-llvm.mlir [mlir][spirv] Use SingleBlock + NoTerminator for spv.module 2021-06-09 14:00:06 -04:00
shift-ops-to-llvm.mlir [mlir] use built-in vector types instead of LLVM dialect types when possible 2021-01-12 10:04:28 +01:00
spirv-types-to-llvm-invalid.mlir [MLIR][SPIRV] Support identified and recursive structs. 2020-10-13 10:18:21 -04:00
spirv-types-to-llvm.mlir [mlir] use built-in vector types instead of LLVM dialect types when possible 2021-01-12 10:04:28 +01:00