Manual-sync mirror of chromium.googlesource.com/external/github.com/llvm/llvm-project (bare monorepo, no subtree suffix)
Find a file
Demetrius Kanios 1d4e04f7a7
[WebAssembly] Call EH personality function instead of Unwind_CallPersonality (#209282)
On Wasm, it's not currently possibly to change which `personality` is
attached to a given IR function. This is primarily because no matter
what `personality` is attached, codegen creates a call to a
`Unwind_CallPersonality` wrapper hard-coded to call c++abi's
personality.

In order to allow alternative personalities without introducing bloat at
each personality call site, this PR adjusts the ABI of the personality
on Wasm. `Unwind_CallPersonality` is moved to `libcxxabi` under the name
`__gxx_wasm_personality_v0`, with the "real" personality code renamed
`__gxx_personality_imp` and called by `__gxx_wasm_personality_v0` (after
resetting the landing pad context).

The signature of EH personalities on Wasm is now `int personality(void*
exception_object)` (where the int return is `_Unwind_Reason_Code` and
the `void*` is `_Unwind_Exception*`), and personalities are expected to
`__wasm_lpad_context.selector = 0;`.

Based on #175202
2026-07-28 20:05:45 -07:00
.ci [premerge] Route macOS build through a monolithic script to enable Job Summary (#211565) 2026-07-29 04:38:31 +02:00
.github [premerge] Route macOS build through a monolithic script to enable Job Summary (#211565) 2026-07-29 04:38:31 +02:00
bolt [RFC][BOLT] Enable lite mode by default on AArch64 (#205545) 2026-07-28 15:52:44 +01:00
clang [WebAssembly] Call EH personality function instead of Unwind_CallPersonality (#209282) 2026-07-28 20:05:45 -07:00
clang-tools-extra [include-cleaner] Support ObjC interface and protocol declarations in LocateSymbol (#212617) 2026-07-28 23:19:34 +02:00
cmake Bump version to 24.0.0git (#209473) 2026-07-14 09:21:03 -04:00
compiler-rt [compiler-rt][builtins] add libc-backed arithmetic builtins (#207092) 2026-07-29 00:38:54 +00:00
cross-project-tests cross-project-tests: Migrate amdgpu tests to use subarch triples (#210115) 2026-07-24 17:38:34 +02:00
flang [flang][openacc] Allow blank around ':' in generated clause parser with keyword (#212638) 2026-07-28 23:17:22 +00:00
flang-rt [flang-rt][cuda] Keep CUFDeviceIsActive working under runtime/driver skew (#212320) 2026-07-27 16:02:30 -07:00
libc [compiler-rt][builtins] add libc-backed arithmetic builtins (#207092) 2026-07-29 00:38:54 +00:00
libclc libclc: Fix signed 0 handling in sincospi (#211260) 2026-07-23 06:24:44 +02:00
libcxx [libc++] Reduce sequence container benchmark size ladder (#212281) 2026-07-28 12:48:45 -04:00
libcxxabi [WebAssembly] Call EH personality function instead of Unwind_CallPersonality (#209282) 2026-07-28 20:05:45 -07:00
libsycl [SYCL] Update SYCL to use the new liboffload allocation API (#212223) 2026-07-27 14:14:41 +02:00
libunwind [WebAssembly] Call EH personality function instead of Unwind_CallPersonality (#209282) 2026-07-28 20:05:45 -07:00
lld [ELF] Sort forward thunks by destination to prevent convergence failures (#211721) 2026-07-28 09:40:48 -07:00
lldb [lldb] Include Debugger.h in ScriptedCommandPythonInterface.cpp (NFC) (#212662) 2026-07-28 17:42:01 -07:00
llvm [WebAssembly] Call EH personality function instead of Unwind_CallPersonality (#209282) 2026-07-28 20:05:45 -07:00
llvm-libgcc [docs] Finish misc MyST migration (#210209) 2026-07-17 11:56:59 -07:00
mlir [mlir][acc] Add pass to emit remarks for openacc data mapping (#212623) 2026-07-28 21:41:46 +00:00
offload [NFC][OpenMP] Add mapper-specific tests exercising pointee section mapping. (#204269) 2026-07-28 11:27:03 -07: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 Fix a warning and an uninitialized variable in benchmark (#200927) 2026-06-02 13:49:06 -07:00
utils [Bazel] Fixes c35bdc9 (#212659) 2026-07-28 20:54:48 -05: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.