[all-commits] [llvm/llvm-project] ade0e1: [cir] Refine cir::CastOp semantics for int <-> flo...

Andrzej Warzyński via All-commits all-commits at lists.llvm.org
Tue Jun 2 07:52:40 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ade0e1a49c2118a98b0b34b3136661747bc5aaa0
      https://github.com/llvm/llvm-project/commit/ade0e1a49c2118a98b0b34b3136661747bc5aaa0
  Author: Andrzej Warzyński <andrzej.warzynski at arm.com>
  Date:   2026-06-02 (Tue, 02 Jun 2026)

  Changed paths:
    M clang/lib/CIR/Dialect/IR/CIRDialect.cpp
    M clang/test/CIR/IR/invalid-cast.cir
    M clang/test/CIR/Lowering/cast.cir

  Log Message:
  -----------
  [cir] Refine cir::CastOp semantics for int <-> float casts (#200005)

Int-to-float and float-to-int casts in cir::CastOp are lowered directly
to their LLVM equivalents. Update the verifier to reflect this semantics
and ensure that, for vector casts, the source and destination vectors have
the same length.

This lets the CIR verifier reject invalid casts earlier, instead of relying
on errors reported later at the LLVM IR level.



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