| commit | 30836781e8019dc34995f7bb0ef163c4c3660c54 | [log] [tgz] |
|---|---|---|
| author | Brandt Bucher <brandtbucher@microsoft.com> | Mon Jul 07 02:02:47 2025 -0700 |
| committer | GitHub <noreply@github.com> | Mon Jul 07 10:02:47 2025 +0100 |
| tree | be73701296134dfe4ac021ef6f06399b0865ba66 | |
| parent | 8a221a585ca70dede85f191992a0364e43cfdbf0 [diff] |
[X86] Don't use `rbp` when it's reserved (#146638) This fixes the x86 backend to properly reserve `rbp` when the `frame-pointer=reserved` option is used. Currently, this option is ignored. Disassembly of the new test case before: ```s pushq %rbp pushq %rbx pushq %rax movl %esi, %ebx movl %edi, %ebp callq bar@PLT movl %ebp, %edi movl %ebx, %esi callq bar@PLT addq $8, %rsp popq %rbx popq %rbp retq ``` ...and after (`r14` is used as scratch space in place of `rbp`): ```s pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movl %edi, %r14d callq bar@PLT movl %r14d, %edi movl %ebx, %esi callq bar@PLT addq $8, %rsp popq %rbx popq %r14 retq ``` Fixes #117178.
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.