commit | 578ca5e469ef1c91a79aa15bc186921ee7faa855 | [log] [tgz] |
---|---|---|
author | Timm Baeder <tbaeder@redhat.com> | Sun Apr 13 15:46:01 2025 +0200 |
committer | GitHub <noreply@github.com> | Sun Apr 13 15:46:01 2025 +0200 |
tree | 51e349a387d84013c6f5836f7eb702e08c9e4519 | |
parent | 1264d7a53a4de3094672be2a248db57b213f33ac [diff] |
[clang][bytecode] Print jump lines in Function::dump() (#135482) E.g. for ```c++ constexpr int foo(int b) { int a = 1+1; for (int i = 0; i < b; ++i) { ++a; } return a; } ``` we now print: ``` foo 0x7cc8d4bf0580 frame size: 128 arg size: 8 rvo: 0 this arg: 0 0 InitScope 0 16 ConstSint32 1 32 ConstSint32 1 48 AddSint32 56 SetLocalSint32 40 72 ConstSint32 0 88 SetLocalSint32 104 104 GetPtrLocal 104 <-+ 120 LoadPopSint32 | 128 GetPtrParam 0 | 144 LoadPopSint32 | 152 LTSint32 | 160 Jf 80 --+ | 176 GetPtrLocal 40 | | 192 IncPopSint32 1 | | 208 GetPtrLocal 104 | | 224 IncPopSint32 1 | | 240 Jmp -152 | --+ 256 GetPtrLocal 40 <-+ 272 LoadPopSint32 280 Destroy 0 296 RetSint32 304 Destroy 0 320 NoRet ```
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.