commit | edf21314c98a4fe05d48f83dfab2b201ed8bfe9c | [log] [tgz] |
---|---|---|
author | Simon Tatham <simon.tatham@arm.com> | Thu Apr 10 17:08:45 2025 +0100 |
committer | GitHub <noreply@github.com> | Thu Apr 10 17:08:45 2025 +0100 |
tree | c6f802133ce7b5a276023b4300ad8cd88848dd10 | |
parent | aaaa2a325bd1abb8c87e0171384fd2c42da5e38a [diff] |
[AArch64][v8.5A] Omit BTI for non-addr-taken static fns in ELF (#135043) This follows up commit 7af2b51e761f499, which removed the BTI at the start of functions with internal linkage (provided they weren't indirectly called inside the translation unit) for Linux targets. Now we leave out the BTI for any ELF target, including bare-metal, because the AAELF64 document in the Arm ABI has been updated to make the same guarantee as SYSVABI64: if the linker wants to insert an indirect branch at link time (e.g. as part of a long branch thunk) it's responsible for making a BTI-equipped landing pad. That was too difficult to test in the existing codegen test `patchable-function-entry-bti.ll`, because so much of LLVM's detailed asm output changes for non-ELF targets. So I've simplified that back to how it was before 7af2b51e761f499 (except that now it expects no BTI in the disputed function), and made a new test checking specifically the difference in BTI between the formats.
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.