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

William Moses via All-commits all-commits at lists.llvm.org
Tue Nov 16 09:00:50 PST 2021


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

  Changed paths:
    M flang/test/Fir/convert-to-llvm.fir
    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