How arm/arm-toolchain works
This is an LLVM-based Arm toolchain fork for building C and C++ toolchains targeting bare-metal Arm and native AArch64 Linux. The tree also contains substantial LLVM products such as BOLT and Clang tooling. The graph highlights these product areas and the sampled Static Analyzer workflow; source excerpts are limited, so relationships between unsampled subsystems are not inferred.
Main entry points: embedded Embedded toolchain · ExprEngine.cpp Path analysis · Query.cpp AST query tool · Decl.h AST model
Components 20
Clang frontend and analysis
- AST model
clang/include/clang/AST/Decl.h - Preprocessor
clang/include/clang/Lex/Preprocessor.h - Path analysis
clang/lib/StaticAnalyzer/Core/ExprEngine.cpp - Checker dispatch
clang/include/clang/StaticAnalyzer/Core/CheckerManager.h - Bug reporting
clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
BOLT binary optimization
- BOLT driver
bolt/tools/driver/llvm-bolt.cpp - Binary pass manager
bolt/lib/Rewrite/BinaryPassManager.cpp - Profile processing
bolt/lib/Profile/DataAggregator.cpp - Binary rewriting
bolt/lib/Rewrite/RewriteInstance.cpp
Clang developer tools
- AST query tool
clang-tools-extra/clang-query/Query.cpp - Include fixer
clang-tools-extra/clang-include-fixer/IncludeFixer.cpp - Lint framework
clang-tools-extra/clang-tidy/ClangTidy.cpp
Embedded support
- Embedded toolchain
arm-software/embedded - Startup support
arm-software/embedded/llvmlibc-support/crt0/bootcode.cpp - Semihosting
arm-software/embedded/llvmlibc-support/semihost/semihost.cpp - ELF conversion
arm-software/shared/elf2bin/elf2bin.cpp
Linux runtime support
- Linux toolchain
arm-software/linux - libc interfaces
libc/include/llvm-libc-types/struct_sockaddr_storage.h - Compiler runtime
compiler-rt/lib/ubsan/ubsan_handlers.cpp
Other components
- Toolchain user
Connections 7
- Toolchain user → Embedded toolchain: targets
- Toolchain user → Linux toolchain: targets
- Path analysis → Checker dispatch: dispatches checks
clang/lib/StaticAnalyzer/Core/ExprEngine.cpp - AST query tool → AST model: queries ASTs
- Embedded toolchain → Startup support: includes startup support
- Embedded toolchain → Semihosting: offers semihosting
- Embedded toolchain → ELF conversion: offers ELF conversion