This is my research fork of LLVM 23.1.1. It contains several significant changes:
ca3c039f3ae6da7b6014096da42a27e62df189a1: support for-mcmodel=largePIC on AArch64.608b46bda174cb88e8e432313a0eb0ac02c689b0: support for-mcmodel=largePIC on RISCV64.e85a34fc551e655843793774e136bf6f65859bff: support for large TLS PIC on x86_64.1005826ab2771b84a2db45c19adfb270b5ee1cb7: support for building IREE 3.11.0.7262ca593830da72101db6e65537de3368dd092f: Bug fixes for .eh_frame and FDE relocations on RISCV with -mcmodel=large -fPIC.ba399d121720d6ae1bc9ee535bba2fd87e8b8a43: wired -mcmodel=large -fPIC to the clang driver.
-
Code compiled with
-mcmodel=large -fPICon AArch64 will be ABI incompatible with code compiled by GCC + Binutils, or with code compiled with LLVM Upstream. -
Code compiled with
-mcmodel=large -fPICon RISCV64 will be ABI incompatible with code compiled by GCC + Binutils, or with code compiled with LLVM Upstream. -
Code compiled with
-mcmode=large -fPICon x86_64 is probably ABI compatible with code compiled by GCC + Binutils, or with code compiled with LLVM Upstream. -
The option
-mcmodel=large -fPICis not supported on RISCV32.
I will check in patched versions of GCC 16.2.0 and Binutils 2.46.1 that are ABI Compatible with this LLVM very shortly.
- README.AArch64
- RFC-AArch64-MCModel-Large-PIC
- README.RISCV
- RISCV-DESIGN
- RISCV-POST-388
- README.x86_64
- README.MCMODEL-LARGE
The rest below is the canonical README from LLVM Upstream.
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.
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.
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.