[all-commits] [llvm/llvm-project] 2b0665: [mlir][spirv] Fix integer type emulation with exte...

Lei Zhang via All-commits all-commits at lists.llvm.org
Sat Aug 12 18:42:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b066501b1bcb21c408310e6cfca31ba02068736
      https://github.com/llvm/llvm-project/commit/2b066501b1bcb21c408310e6cfca31ba02068736
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2023-08-12 (Sat, 12 Aug 2023)

  Changed paths:
    M mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp
    M mlir/test/Conversion/ArithToSPIRV/arith-to-spirv.mlir

  Log Message:
  -----------
  [mlir][spirv] Fix integer type emulation with extension/truncation

For integer extension or truncation with type emulation, we need
to make sure we perform masking or shifting to discard unwanted
bits to avoid pollute consumer ops.

Reviewed By: kuhar

Differential Revision: https://reviews.llvm.org/D157788




More information about the All-commits mailing list