llvm-project README

The project's README from github.com/llvm/llvm-project. As one markdown file: README.md.

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.

llvm-project (llvm/llvm-project)

Searching Database…

Что это такое?LLVM — это набор инструментов с открытым исходным кодом для создания высокооптимизированных компиляторов, оптимизаторов и сред выполнения; в этом репозитории хранится его исходный код.
Это одна программа, которую я устанавливаю, или набор отдельных частей?Это набор компонентов. Ядро, которое само называется LLVM, включает утилиты, библиотеки и заголовочные файлы, которые обрабатывают промежуточное представление и превращают его в объектные файлы.
Как его запустить?В этом репозитории нет установщика: вы клонируете исходный код и следуете руководству Getting Started with LLVM, в котором описаны сборка и запуск.
Мне нужна какая-то конкретная операционная система, чтобы собрать или запустить его?README не предъявляет требований к ОС; CI проекта собирается как в контейнерах на базе Linux, так и на базе Windows, то есть сборки под Linux и Windows регулярно проверяются, а macOS здесь не упоминается.
Могу ли я использовать LLVM, чтобы сделать компилятор для своего языка?Именно для этого он и предназначен: он даёт библиотеки, заголовочные файлы и утилиты обработки IR, на основе которых строится компилятор, а Clang показывает этот подход на примере, пропуская код языков семейства C через тот же конвейер.
Что такое это промежуточное представление (IR), вокруг которого всё крутится?Это общий низкоуровневый формат, лежащий в основе проекта: фронтенды вроде Clang компилируют ваш исходный код в LLVM bitcode, а ядро LLVM обрабатывает этот IR и превращает его в объектные файлы.
Creator
llvm
Size
3.9 GB
Stars
41.1K
Age
9y
Commits · 90 Days