Manual-sync mirror of chromium.googlesource.com/external/github.com/llvm/llvm-project (bare monorepo, no subtree suffix)
Find a file
Feng Zou 9466be2c87
[X86][APX] Fix per-function V3 unwind for EGPR functions on Windows x64 (#212924)
A function that saves a callee-saved EGPR (R16-R31) cannot be encoded with V1/V2 unwind info, so it must use V3 even when the module default stays on V1/V2 (e.g. an APX clone created by auto-dispatch alongside a baseline generic clone). The previous code rejected such functions with a recoverable backend diagnostic ("EGPR (R16-R31) requires V3 unwind info on Windows x64") instead of emitting valid V3 unwind info.

Introduce a single shared predicate, requiresWinX64UnwindV3(MF), that returns true when the whole module is in V3 mode, or when the function needs an unwind table and may use EGPR. It is consumed by X86FrameLowering (SEH prolog/epilog layout), the X86WinEHUnwindV2 pass (which skips such functions), and the X86WinEHUnwindV3 pass (which stamps a per-function .seh_unwindversion 3 on every WinEH frame -- the entry block and each funclet). Also widen the SEH_UnwindVersion pseudo operand from i1imm to i8imm since it holds 1, 2 or 3.
2026-08-01 12:43:17 +08:00
.ci [premerge] Route macOS build through a monolithic script to enable Job Summary (#211565) 2026-07-29 04:38:31 +02:00
.github workflows/llvm-abi-tests: Cache the baseline abi (#211968) 2026-07-31 16:32:37 -07:00
bolt [BOLT] Fix RELR addend updates for non-zero image bases (#213000) 2026-07-30 23:03:38 +01:00
clang [RISCV][MC] Add experimental Smcsps and Sscsps support (#211712) 2026-08-01 11:05:22 +08:00
clang-tools-extra [Clang] Treat line directives as header names. (#211512) 2026-07-29 19:04:17 +02:00
cmake Bump version to 24.0.0git (#209473) 2026-07-14 09:21:03 -04:00
compiler-rt [compiler-rt] [docs] Clean up explanation of __fixunsdfdi (#212624) 2026-07-31 23:43:07 +03:00
cross-project-tests [Clang][RISCV] Add packed pair byte intrinsics (#212589) 2026-07-30 02:24:02 +08:00
flang [flang][NFC] Rename modfile84.f90 to modfile85.f90 (#213371) 2026-07-31 19:02:09 -04:00
flang-rt [flang-rt][cuda] Skip scope-exit cleanup when the context has a sticky error (#213184) 2026-07-31 14:38:24 -07:00
libc [libc] Move generated elf header to include (#211428) 2026-07-31 16:37:32 -07:00
libclc libclc: Fix signed 0 handling in sincospi (#211260) 2026-07-23 06:24:44 +02:00
libcxx [libc++][ranges][test-suite][NFC] Consistency improvements after P3050 merge (#213062) 2026-07-31 21:23:54 +03:00
libcxxabi [libc++abi] Add a clang-tidy config and test (#207324) 2026-07-31 13:26:27 +02:00
libsycl [libsycl] Add liboffload context handler to default context (#213249) 2026-07-31 16:46:12 +02:00
libunwind [WebAssembly] Call EH personality function instead of Unwind_CallPersonality (#209282) 2026-07-28 20:05:45 -07:00
lld [lld] Fix -Wunused-result in e44068cc12 (#213296) 2026-07-31 16:03:37 +00:00
lldb [lldb] Launch the Wasm runtime with the file the target has (#213384) 2026-07-31 18:40:15 -07:00
llvm [X86][APX] Fix per-function V3 unwind for EGPR functions on Windows x64 (#212924) 2026-08-01 12:43:17 +08:00
llvm-libgcc [docs] Finish misc MyST migration (#210209) 2026-07-17 11:56:59 -07:00
mlir [mlir-c] Add mlirValueReplaceUsesWithIf (#206544) 2026-07-31 20:17:21 -07:00
offload [Offload] add 'olIterateSymbols' runtime function (#213036) 2026-07-31 14:29:06 -05:00
openmp [OpenMP][offload] Fix Global addrspace (#212529) 2026-07-28 16:16:31 +00:00
orc-rt [orc-rt] Reorder wrapper-fn args to trailing-callback style. (#212243) 2026-07-28 17:14:30 +10:00
polly [SCEV] Remove ptrtoint expression (NFC). (#212038) 2026-07-26 21:28:16 +01:00
runtimes Remove debug leftovers (#211068) 2026-07-21 23:23:13 -07:00
third-party [benchmark] Back port 2b0bff7 from upstream (#212278) 2026-07-29 21:37:13 +08:00
utils [libc] Move generated elf header to include (#211428) 2026-07-31 16:37:32 -07:00
.clang-format
.clang-format-ignore [Docs] Update coding standard for TD files (#200848) 2026-06-01 21:35:58 +01:00
.clang-tidy Add default empty header filter regex to root .clang-tidy (#167386) 2025-11-11 01:36:25 +03:00
.git-blame-ignore-revs Add "Split clang/lib/CodeGen/CGBuiltin.cpp" to .git-blame-ignore-revs (#203419) 2026-06-12 12:03:28 +01:00
.gitattributes [libclang/python] Enable packaging clang python bindings (#125806) 2025-11-24 17:21:24 -08:00
.gitignore gitignore: Add emacs lock files (#205055) 2026-06-22 18:19:29 +02:00
.mailmap mailmap: Add entries for Peter Collingbourne. (#210526) 2026-07-18 11:02:06 -07:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE.TXT
pyproject.toml [docs] Create utils/docs (#203962) 2026-06-24 15:12:48 -04:00
README.md [libc++] Rename pre-commit CI workflows (#211844) 2026-07-24 14:56:19 -04:00
SECURITY.md [SECURITY.md] add pointers to "what is a security issue" (#177372) 2026-01-22 17:19:09 -07:00

The LLVM Compiler Infrastructure

OpenSSF Scorecard OpenSSF Best Practices libc++

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.

Getting the Source Code and Building LLVM

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.

Getting in touch

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.