Files
carbon-lang/third_party/llvm
Dana JansensandChandler Carruth 744b1290cf Roll LLVM b20d7d02..6811a83c815 (#6844)
Roll LLVM to `6811a83c81500ee373adfc0d9978ff9625a4cf1c`.

This includes https://github.com/llvm/llvm-project/pull/183831 which
moved the functionality of `finish()` on `DiagnosticConsumer`s into the
destructors, and removed the `finish()` method. So, our callers to
`finish()` are migrated to cause the destructor to run at that time
instead.

---------

Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
2026-03-09 15:00:21 +00:00
..

Extracted LLVM code

This directory holds code extracted from the LLVM project and used in various places in Carbon. This mostly happens when some logic isn't readily exposed in a library-suitable API, or needs excessive customization.

We separate the baseline code and customizations here as these are really derived from the LLVM project. However, both Carbon and LLVM use the same license, so linking these isn't a problem. We also use the standard Carbon banner at the top of these files as the license is accurate and the collection and arrangement of the code are part of Carbon. The code itself should be assumed to be derived from LLVM.

Whenever possible, we should eventually refactor the upstream code until the logic can be exposed and then we can depend on it rather than extracting it here.