[all-commits] [llvm/llvm-project] 1e6b6b: Add constrained fadd to FP operations
Serge Pavlov via All-commits
all-commits at lists.llvm.org
Sun Apr 20 11:02:09 PDT 2025
Branch: refs/heads/users/spavloff/fadd
Home: https://github.com/llvm/llvm-project
Commit: 1e6b6bfcc612d400761b8f8e0d56530cb6d695ed
https://github.com/llvm/llvm-project/commit/1e6b6bfcc612d400761b8f8e0d56530cb6d695ed
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.
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