llvm-project
1e6b6bfc - Add constrained fadd to FP operations

Commit
311 days ago
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.
Author
Committer
Parents
Loading