Manual-sync mirror of chromium.googlesource.com/external/github.com/llvm/llvm-project (bare monorepo, no subtree suffix)
Find a file
Valentin Clement (バレンタイン クレメン) dc698fa68c
[flang][cuda] Break circular global init when copying them to the GPU module (#211100)
PTX does not support cycle in globals. 

```
error: Circular dependency found in global variable set
```

To avoid cycle in type descriptor, check if there is a cycle and break
it.

The algorithm uses Tarjan’s strongly connected components algorithm for
finding strongly connected components in a directed graph.
- Each fir.global is a graph node.
- Each fir.address_of in a global initializer is an edge to another
global.
- An SCC containing multiple globals—or a self-edge—represents a
circular initializer dependency.
2026-07-22 13:13:39 -07:00
.ci Add macOS premerge check workflow (#207435) 2026-07-17 10:22:44 -07:00
.github workflows/release-documentation: Fix indentation (#211319) 2026-07-22 11:14:36 -07:00
bolt [BOLT] Implement platform independent distribution and shuffle algorithm (#206554) 2026-07-22 11:25:26 +08:00
clang [HLSL] Move sema tests out of ParserHLSL into SemaHLSL/Attributes (#211353) 2026-07-22 19:46:03 +00: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 Remove debug leftovers (#211068) 2026-07-21 23:23:13 -07:00
cross-project-tests [DTLTO] Forward loop interchange to DTLTO remote compilations (#208591) 2026-07-21 19:27:15 +01:00
flang [flang][cuda] Break circular global init when copying them to the GPU module (#211100) 2026-07-22 13:13:39 -07:00
flang-rt [flang][cuda] Fix device-variable leaks and reset-safe cleanup (#209865) 2026-07-20 03:59:27 -07:00
libc [libc] Add missing functions in FEnvImpl.h under LIBC_MATH_USE_SYSTEM_FENV config. (#211303) 2026-07-22 14:44:54 -04:00
libclc libclc: Fix UB in trig functions with nan inputs (#211047) 2026-07-22 06:41:39 +02:00
libcxx [libc++][NFC] Format and move transform_view's sentinel.pass.cpp (#211252) 2026-07-22 13:27:44 -04:00
libcxxabi [runtimes] LLVM 24 version bumps (#211262) 2026-07-22 12:38:40 -04:00
libsycl [libsycl][NFC] Move the cmake msvc DLL check (#193485) 2026-07-20 16:55:25 +02:00
libunwind [libunwind][test][AIX] Add C API test for unwinding from AIX VAPI (as signal handler) (#209662) 2026-07-22 13:17:47 -04:00
lld [lld][WebAssembly] Preserve segment linking flags in --relocatable output (#210747) 2026-07-21 08:34:15 -07:00
lldb [lldb] Synthesize data symbols for plain C globals on WebAssembly (#211301) 2026-07-22 13:56:12 -05:00
llvm [CodeGen] Ensure undef propagation when an undef copy is eliminated if used as a subregister def (#204039) 2026-07-22 20:02:13 +00:00
llvm-libgcc [docs] Finish misc MyST migration (#210209) 2026-07-17 11:56:59 -07:00
mlir [mlir][math] Fold FPowIOp with square-and-multiply to match powi expansion (#210982) 2026-07-22 15:35:44 -04:00
offload [LLVM] Remove 'LLVM_LIBC_GPU_BUILD' logic (#211265) 2026-07-22 11:11:55 -05:00
openmp [Flang][OpenMP] Add support for interop construct (#203959) 2026-07-22 12:03:34 -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 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] Add os select for plugin process on Initialization target to add windows (#211276) 2026-07-22 10:47:23 -07:00
.clang-format Enforce Unix line endings for Clang/LLVM/MLIR projects (#161460) 2025-10-02 06:09:12 -07:00
.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
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.