[all-commits] [llvm/llvm-project] 005b38: [CIR] Add fenv attribute to compare operations (#2...

Andy Kaylor via All-commits all-commits at lists.llvm.org
Thu Jul 30 10:55:39 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 005b3858f602ec5a193740cb166244d5234ce98f
      https://github.com/llvm/llvm-project/commit/005b3858f602ec5a193740cb166244d5234ce98f
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2026-07-30 (Thu, 30 Jul 2026)

  Changed paths:
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/lib/CIR/Dialect/IR/CIRDialect.cpp
    M clang/test/CIR/IR/fenv.cir
    A clang/test/CIR/IR/invalid-cmp.cir
    M clang/test/CIR/Transforms/vector-cmp-fold.cir
    M clang/unittests/CIR/FenvOpTest.cpp

  Log Message:
  -----------
  [CIR] Add fenv attribute to compare operations (#213072)

This adds the #cir.fenv attribute to the cir.cmp and cir.vec.cmp and
adds verfiers to enforce that the attribute is only present when the
comparison involves floating-point values.

The cir.vec.cmp operation has an existing folder which is skipped in
this change when the fenv attribute is present. In most circumstance,
this folding could still be done, but the implementation is
intentionally conservative at this point. Proper checking of the
conditions under which folding would be legal will be added later.

The cir.cmp operation does not currently have a folder.

Assisted-by: Cursor / various models



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