[all-commits] [llvm/llvm-project] a4d65f: [mlir][LLVMIR] Support switch without cases
aengelke via All-commits
all-commits at lists.llvm.org
Fri Jul 28 05:02:10 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a4d65fe67f7ce1b2a0dcc89bf6aa4672797cb92c
https://github.com/llvm/llvm-project/commit/a4d65fe67f7ce1b2a0dcc89bf6aa4672797cb92c
Author: Alexis Engelke <engelke at in.tum.de>
Date: 2023-07-28 (Fri, 28 Jul 2023)
Changed paths:
M mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp
M mlir/test/Target/LLVMIR/llvmir.mlir
Log Message:
-----------
[mlir][LLVMIR] Support switch without cases
LLVM supports switch ops without case values, for which the optional
caseValues has no value (i.e., std::nullopt, no the empty array).
Handle this case properly when translating MLIR-LLVM to LLVM-IR.
Reviewed By: Dinistro, Mogball
Differential Revision: https://reviews.llvm.org/D156431
More information about the All-commits
mailing list