| commit | 9c606ae0c0ae051144ff26832ccd5dcd9c94e678 | [log] [tgz] |
|---|---|---|
| author | Yuvaraj Venkatesh <yuvaraj.venkatesh@arm.com> | Mon Jul 28 10:44:21 2025 +0100 |
| committer | GitHub <noreply@github.com> | Mon Jul 28 10:44:21 2025 +0100 |
| tree | 5098f174fa3987555351a8e07ab96e46b157ed5f | |
| parent | 51194a4ae238f41c4f65730c95416e312dc369cb [diff] |
[MLIR][TOSA] Update IfOp print/parse to support ranked condition tens… (#149791) …or and optional block arguments This change extends the TOSA `cond_if` operation's print and parse logic to handle the following: - The condition operand may now have any rank, as long as the total number of elements sums to 1. %1 = tosa.cond_if %0 : tensor<1x1x1xi1> -> tensor<4xf32> - The `then` and `else` regions can now include optional block arguments. The updated IR syntax reflects this: %1 = tosa.cond_if %0 (%arg2 = %arg0, %arg3 = %arg1) : tensor<i1> (tensor<4xf32>, tensor<4xf32>) -> tensor<4xf32> - Removed parentheses around single result types in the printed representation, aligning with the `AsmPrinter` conventions. Co-authored-by: Luke Hutton <luke.hutton@arm.com>
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.