[all-commits] [llvm/llvm-project] 949926: [MLIR][LLVM] Permit integer types in switch other ...

William Moses via All-commits all-commits at lists.llvm.org
Mon Nov 15 21:46:37 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94992670fcc59d12d7f97cb08beb8d2eb15110ed
      https://github.com/llvm/llvm-project/commit/94992670fcc59d12d7f97cb08beb8d2eb15110ed
  Author: William S. Moses <gh at wsmoses.com>
  Date:   2021-11-16 (Tue, 16 Nov 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/test/Conversion/AsyncToLLVM/convert-coro-to-llvm.mlir
    M mlir/test/Conversion/AsyncToLLVM/convert-to-llvm.mlir
    M mlir/test/Conversion/StandardToLLVM/standard-to-llvm.mlir
    M mlir/test/Dialect/LLVMIR/invalid.mlir
    M mlir/test/Dialect/LLVMIR/roundtrip.mlir
    M mlir/test/Target/LLVMIR/llvmir.mlir

  Log Message:
  -----------
  [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




More information about the All-commits mailing list