commit | e947e760585c2a457775d8723e1503f7d5b56984 | [log] [tgz] |
---|---|---|
author | Cullen Rhodes <cullen.rhodes@arm.com> | Fri Jun 16 09:14:53 2023 +0000 |
committer | Cullen Rhodes <cullen.rhodes@arm.com> | Fri Jun 16 09:26:42 2023 +0000 |
tree | 186ca7038d26a8ce91845f2bf68fa381fe7b063d | |
parent | 7a12fbc05f4f53a49213adc20cbab34425cfbfa7 [diff] |
[mlir][ArmSME] Extend streaming-mode pass to support enabling ZA This patch extends the 'enable-arm-streaming' pass with a new option to enable the ZA storage array by adding the 'arm_za' attribute to 'func.func' ops. A later patch will insert `llvm.aarch64.sme.za.enable` at the beginning of 'func.func' ops and `llvm.aarch64.sme.za.disable` before `func.return` statements when lowering to LLVM dialect. Currently the pass only supports enabling ZA with streaming-mode on but the SME LDR, STR and ZERO instructions can access ZA when not in streaming-mode (section B1.1.1, IDGNQM [1]), so it may be worth making these options independent in the future. N.B. This patch is generally useful in the context of SME enablement in MLIR, but it will help enable writing an integration test for rewrite pattern that lowers `vector.transfer_write` -> `zero {za}` (D152508). [1] https://developer.arm.com/documentation/ddi0616/aa Reviewed By: awarzynski, dcaballe Differential Revision: https://reviews.llvm.org/D152695
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, or #llvm IRC channel on OFTC.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.