talira

A collection of modular and reusable compiler and toolchain technologies

open sourceApache-2.0 WITH LLVM-exceptionself-hostablefree

The LLVM Project is a collection of modular, reusable compiler and toolchain technologies. Its core libraries provide a target-independent optimizer and code generation for many CPUs around the LLVM intermediate representation, so a new language can use LLVM as its optimizer and code generator. Around them sit Clang (a C, C++ and Objective-C compiler with static analysis and clang-tidy), the LLDB debugger, the LLD linker, libc++, compiler-rt and its sanitizers, MLIR, Flang for Fortran and OpenMP. It began as a research project at the University of Illinois and is licensed under Apache 2.0 with LLVM exceptions.

Ways to install

Package managers

Problems it solves

  • build a compiler for my own programming language without writing a code generator for every CPU
  • compile C and C++ quickly with clear, useful error and warning messages
  • find memory errors and data races in my C or C++ program while it runs
  • find bugs in C and C++ code automatically with static analysis before it ships
  • link large native binaries much faster than the system linker
  • debug native code with a debugger that loads symbols faster and with less memory than GDB
  • compile modern Fortran with OpenMP for CPUs and GPUs
  • build a domain-specific compiler for heterogeneous hardware without starting from scratch
  • parse C and C++ code from my own tool to build refactoring or analysis tools
  • use a standards-conformant, high-performance C++ standard library

Features

  • LLVM Core: target-independent optimizer and code generation around LLVM IR
  • Clang C, C++ and Objective-C compiler
  • Clang Static Analyzer and clang-tidy
  • LLDB debugger
  • LLD linker, a drop-in replacement for system linkers
  • libc++ and libc++ ABI
  • LLVM libc
  • compiler-rt with AddressSanitizer, ThreadSanitizer, MemorySanitizer and DataFlowSanitizer
  • MLIR for reusable, extensible compiler infrastructure
  • Flang Fortran compiler with OpenMP for CPUs and GPUs
View 1 more
  • OpenMP runtime, Polly, libclc and klee

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what LLVM does.

  1. GCC The GNU Compiler Collection

Compare LLVM with the top 3