commit | b64d7baf9c0d37893ebabbe2539e725eb70b46e9 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@sifive.com> | Tue Jul 15 14:49:54 2025 -0700 |
committer | GitHub <noreply@github.com> | Tue Jul 15 14:49:54 2025 -0700 |
tree | 89344c8daadb77dd726a388cb6fadab1e3eb8b1b | |
parent | bec508ad1719dfc8f0d85c5343ce44c3d1f326e1 [diff] |
[RISCV] Change the InstFormat for Zicbop prefetch instructions to InstFormatOther. (#148934) The lower 5-bits of the immediate are not part of the address unlike other InstFormatS instructions. We use InstFormatS in RISCVRegisterInfo::needsFrameBaseReg and RISCVRegisterInfo::getFrameIndexInstrOffset which is not aware of this special encoding. Force the format to InstFormatOther so those functions will ignore it. InstFormatS is also used by relocation emission, but I don't believe we ever emit these instructions with a relocation because of the encoding.
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.