[MLIR][LLVM] Permit integer types in switch other than i32
authorWilliam S. Moses <gh@wsmoses.com>
Tue, 16 Nov 2021 01:13:33 +0000 (20:13 -0500)
committerWilliam S. Moses <gh@wsmoses.com>
Tue, 16 Nov 2021 05:46:25 +0000 (00:46 -0500)
commit94992670fcc59d12d7f97cb08beb8d2eb15110ed
treefc31824a188b8e7747afb188fbd720f2e3c45ba2
parent7f00806a6a8833d70aaa8ec43159e5668d98ac66
[MLIR][LLVM] Permit integer types in switch other than i32

LLVM switchop currently only permits i32. Both LLVM IR and MLIR Standard switch permit other integer types leading to an illegal state when lowering an i8 switch from MLIR standard

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D113955
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/test/Conversion/AsyncToLLVM/convert-coro-to-llvm.mlir
mlir/test/Conversion/AsyncToLLVM/convert-to-llvm.mlir
mlir/test/Conversion/StandardToLLVM/standard-to-llvm.mlir
mlir/test/Dialect/LLVMIR/invalid.mlir
mlir/test/Dialect/LLVMIR/roundtrip.mlir
mlir/test/Target/LLVMIR/llvmir.mlir