[all-commits] [llvm/llvm-project] 233c1d: [mlir][Arith][EmitC] Add tests for bail-out on ari...

ioana ghiban via All-commits all-commits at lists.llvm.org
Mon Jun 8 09:09:58 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 233c1d22c1ae5ae4159dd8b89fa0a6834d8580a2
      https://github.com/llvm/llvm-project/commit/233c1d22c1ae5ae4159dd8b89fa0a6834d8580a2
  Author: ioana ghiban <ioana.ghiban at arm.com>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M mlir/test/Conversion/ArithToEmitC/arith-to-emitc-failed.mlir

  Log Message:
  -----------
  [mlir][Arith][EmitC] Add tests for bail-out on arith.constant conversion (#201565)

ArithToEmitC avoids rewriting memref constants to `emitc.constant`,
since the type conversion changes the result type but the attribute
cannot be converted into a valid EmitC initializer.

This patch does not add support for converting these memrefs. It only
makes the existing limitation explicit at the conversion boundary by
adding tests for the standalone conversion pass. This pass marks its
source ops illegal, so when a pattern bails-out the pass reports a
legalization failure. This is the expected behavior and tests document
the unsupported cases directly.

Assisted-by: Codex (refine description). I reviewed all text before
submission.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list