commit | 1e6b6bfcc612d400761b8f8e0d56530cb6d695ed | [log] [tgz] |
---|---|---|
author | Serge Pavlov <sepavloff@gmail.com> | Thu Apr 17 15:28:01 2025 +0700 |
committer | Serge Pavlov <sepavloff@gmail.com> | Mon Apr 21 01:01:24 2025 +0700 |
tree | 56aba7514c90627f7a2b5eba5ef150e4a32d5c24 | |
parent | ad480e9de4015a9acc17b80d9f2d6ce5f39d13e5 [diff] |
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.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.