| commit | 8a57df6a5210d0c54ed482eb7230b7689a1f9cb9 | [log] [tgz] |
|---|---|---|
| author | Allin Lee <60502081+AllinLeeYL@users.noreply.github.com> | Wed Apr 23 16:29:06 2025 +0800 |
| committer | GitHub <noreply@github.com> | Wed Apr 23 09:29:06 2025 +0100 |
| tree | 06f8444af2c2fddce95593fd3e87ef2fc21d62e8 | |
| parent | 91edbe223177504cf878340f37a36dfcee349cab [diff] |
[llvm-extract] support unnamed bbs. (#135140) Dear developer: I have recently working with LLVM IR and I want to isolate basic blocks using the command "llvm-extract". However, I found that the command option "llvm-extract --bb func_name:bb_name" will only function when dumping source code into IRs with options "-fno-discard-value-names". That is to say, the "llvm-extract" command cannot support unnamed basic blocks, which is a default output of the compiler. So, I made these changes and hope they will make LLVM better. Best regards, Co-authored-by: Yilin Li <allinleeme@gmail.com>
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.