Manual-sync mirror of chromium.googlesource.com/external/github.com/llvm/llvm-project (bare monorepo, no subtree suffix)
Find a file
Lang Hames 5602b98193
[orc-rt] Run controller-call continuations from Session (#211166)
A controller call's on-complete handler may run managed code, so it must
be dispatched by the Session under a ManagedCodeTaskGroup token, not
invoked directly by the ControllerAccess (which previously held it as a
plain callable and called it itself -- untokened and undispatched).

Wrap it in an opaque ControllerAccess::OnControllerCallReturn that
implementations can hold but not call. They complete it via exactly one
of three Session-provided paths:

- handleControllerCallResult -- the controller returned a result;
dispatches the handler under a fresh token. Asserts the managed-code
group is still open (i.e. before notifyDisconnected).

- failPendingControllerCall -- an already-enqueued call is failed
because the connection dropped before a result arrived (the disconnect
drain); dispatches the handler under a token with a disconnect error.

- failControllerCallInline -- a call made from within callController
while already disconnecting, which can never be enqueued; runs the
handler inline with a disconnect error, where the caller (and its token)
is still on the stack.

Together these guarantee a controller call's handler always runs exactly
once, with a result or a disconnect error, and never runs managed code
without a token. Only the success path takes a result value; the two
failure paths produce the canonical disconnect error internally, so it
can't be gotten wrong. InProcessControllerAccess and the Session unit
tests are updated.
2026-07-22 14:13:10 +10:00
.ci Add macOS premerge check workflow (#207435) 2026-07-17 10:22:44 -07:00
.github workflows/issue-release-workflow: Allow multiple URLs in /cherry-pick commands. (#211050) 2026-07-21 13:30:31 -07:00
bolt [BOLT] Implement platform independent distribution and shuffle algorithm (#206554) 2026-07-22 11:25:26 +08:00
clang [clang] Switch to Default PIE on FreeBSD (#206139) 2026-07-22 11:26:36 +08:00
clang-tools-extra [clang-tidy][docs] Remove obsolete doc8 instructions. NFC. (#210576) 2026-07-21 02:11:20 +00:00
cmake Bump version to 24.0.0git (#209473) 2026-07-14 09:21:03 -04:00
compiler-rt [compiler-rt][rtsan] Loosen requirements of halt_on_error test (#210734) 2026-07-21 18:51:17 -07:00
cross-project-tests [DTLTO] Forward loop interchange to DTLTO remote compilations (#208591) 2026-07-21 19:27:15 +01:00
flang [clang] Switch to Default PIE on FreeBSD (#206139) 2026-07-22 11:26:36 +08:00
flang-rt [flang][cuda] Fix device-variable leaks and reset-safe cleanup (#209865) 2026-07-20 03:59:27 -07:00
libc [libc] Migrate printf_core from stdio/ to __support/. (#208303) 2026-07-21 14:35:24 -07:00
libclc [CMake] Warn when the version of CMake is older than 3.31.0 (#204203) 2026-06-29 11:16:27 -07:00
libcxx [PAC][libc++] Fix build with ptrauth_calls feature (#211033) 2026-07-21 19:12:00 +00:00
libcxxabi [libc++] Partially revert #208330 (#209928) 2026-07-16 08:15:30 -04:00
libsycl [libsycl][NFC] Move the cmake msvc DLL check (#193485) 2026-07-20 16:55:25 +02:00
libunwind [libunwind] Fix exposure of UNW_AARCH64_RA_SIGN_STATE through _Unwind_GetGR (#209947) 2026-07-20 11:17:14 -07:00
lld [lld][WebAssembly] Preserve segment linking flags in --relocatable output (#210747) 2026-07-21 08:34:15 -07:00
lldb [lldb] Change DynamicLoaderDarwin::Segment::name type (#210797) 2026-07-21 17:06:56 -07:00
llvm [NVPTX] Fix illegal .ftz modifier for setp and neg PTX instructions for bf16 (#211128) 2026-07-21 21:10:54 -07:00
llvm-libgcc [docs] Finish misc MyST migration (#210209) 2026-07-17 11:56:59 -07:00
mlir [CIR][OpenMP] Add host op filtering pass to CIR pipeline (#209592) 2026-07-21 20:41:03 -04:00
offload [OFFLOAD][L0] Fix PatternSize assert in L0QueueTy::memoryFill (#210867) 2026-07-21 11:20:16 +02:00
openmp [OpenMP] Simplify GNU strerror_r check for Android (#148990) 2026-07-19 01:28:10 -04:00
orc-rt [orc-rt] Run controller-call continuations from Session (#211166) 2026-07-22 14:13:10 +10:00
polly [LoopInfo] Replace raw loop-container accessors with semantic operations (#210653) 2026-07-21 07:01:19 +00:00
runtimes Reapply "Skipping host target exports during cross-compilation" (#210… (#210496) 2026-07-20 10:47:59 -07:00
third-party Fix a warning and an uninitialized variable in benchmark (#200927) 2026-06-02 13:49:06 -07:00
utils [libc] Migrate printf_core from stdio/ to __support/. (#208303) 2026-07-21 14:35:24 -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
.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
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.