Getting started with LLVM using Swift
summary
Shows how to hook Swift front-end to LLVM back-end and actually walk the LLVM IR produced from Swift source, with a downloadable Xcode template that runs a build script (mixed_up make build) to fetch and compile needed LLVM pieces and emit .o modules. Demonstrates two real uses: generating runtime mocks by patching IR and an ongoing mutation testing prototype that runs tests against generated mutants (works but can take hours — Java case went from 16h to 4h after optimization). Practical, with working examples.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:12What is LLVM
- 4:44Compilation process
- 11:10LLVM applications
- 17:50Problems and solutions
- 19:14Swift and LLVM template
- 22:32Learning resources
- 25:45Q&A








