[all-commits] [llvm/llvm-project] a8e370: Small changes in documentation

Serge Pavlov via All-commits all-commits at lists.llvm.org
Sun Apr 20 10:52:25 PDT 2025


  Branch: refs/heads/users/spavloff/fadd
  Home:   https://github.com/llvm/llvm-project
  Commit: a8e370ff2838050540eaaac035ee51235626f47a
      https://github.com/llvm/llvm-project/commit/a8e370ff2838050540eaaac035ee51235626f47a
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2025-04-21 (Mon, 21 Apr 2025)

  Changed paths:
    M llvm/docs/LangRef.rst

  Log Message:
  -----------
  Small changes in documentation


  Commit: 1910266f14282de7ff10abca86da271bcfd24a9e
      https://github.com/llvm/llvm-project/commit/1910266f14282de7ff10abca86da271bcfd24a9e
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2025-04-21 (Mon, 21 Apr 2025)

  Changed paths:
    M llvm/include/llvm/IR/FloatingPointOps.def
    M llvm/lib/IR/Instructions.cpp
    M llvm/unittests/IR/IRBuilderTest.cpp

  Log Message:
  -----------
  Add constrained fadd to FP operations

Constrained intrinsics are treated as regular intrinsicss from the
perspective of FP operand bundle mechanism, meaning they can have FP
operand bundles. The FP bundle API functions will report properties
based on the operand bundles rather than metadata arguments.

These hybrid entities are temporary objects that exist while both
alternative mechanisms remain available. Nevertheless, they can be
useful for development:

* They can represent FP instructions with bundles. For example, while
  there is currently no intrinsic that directly represents 'fadd'
  instruction (and bundles cannot be attached to a plain 'fadd' since it
  is not a call), a corresponding constrained intrinsic call can
  represent the operation while still carrying operand bundles.

* Constrained intrinsic with bundles can be assigned properties that
  otherwise cannot be expressed, such as denormal behavior.

This change adds 'experimental.constrained.fadd' to the list of FP
operations, enabling creation of tests for denormal behavior. It also
modifies methods `getRoundingMode` and `getExceptionBehavior` so that
they report information from metadata arguments if bundles are absent.
This adjustment should help incorporating constrained intrinsics into
algorithms based on operand bundles.


Compare: https://github.com/llvm/llvm-project/compare/a8e370ff2838%5E...1910266f1428

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