[mlir][tosa][tosa-to-linalg] Fix rescale with double rounding failing validation (#184787) The validation pass added attribute checks on rescale rounding mode, but the tosa-to-linalg-pipeline did not specify support for the doubleround extension, causing rescale with doubleround to be rejected by the validation in the tosa-to-linalg-pipeline. One method of fixing this would be to only enable the attribute checks when the "strictOpSpecAlignment" validation option is enabled. However, I feel this is the wrong direction of travel. Long-term it would be nice if the tosa-to-linalg-pipeline specified all the extensions it supports, gracefully rejecting operations that require unsupported extensions. Therefore, this change declares support for the doubleround extension to fix the legalization failure with the ambition of adding more extensions in the future.
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.