| commit | 6ff3b43700175dbff8f2e4b63c6f27835418e20c | [log] [tgz] |
|---|---|---|
| author | Craig Topper <craig.topper@sifive.com> | Wed Jul 02 13:09:35 2025 -0700 |
| committer | GitHub <noreply@github.com> | Wed Jul 02 13:09:35 2025 -0700 |
| tree | 2602bda0d64680fc6de270f3ba9a87a46a355ec0 | |
| parent | 8eb61d9154c5379c1a74f65aa850cac5060c8b0a [diff] |
[TableGen] More generically handle tied source operands in CompressInstEmitter. (#146183) Move the creation of OperandMap from createDagOperandMapping to the loop in addDagOperandMapping. Expand it to store the DAG operand number and the MI operand number which will be different when there are tied operands. Rename createDagOperandMapping to checkDagOperandMapping to better describe the remaining code. I didn't lift the restriction that a source instruction can only have one tied operand, but we should be able to if we have a use case. There's a slight difference in the generate output. We now check that operand 0 and 2 of QC_MVEQI are equal instead of operand 1 and 2. This should be equivalent since operand 0 and 1 have a tied constraint.
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.