The Compiler Plugin Framework to Facilitate Customized Compilation and Development
Talkat Open Source Summit Europe 2023 · on Thursday, 2023-09-21· at 11:55· Room 3G (3JAUREGIA - Floor 3), Abandoibarra Etorb., 4, 48011 Bilbao, Bizkaia, Spain·
summary
A compiler plug-in framework called pink decouples plugin logic from GCC and LLVM, using MLIR as the neutral IR and gRPC between a plugin server and per-compiler clients; server provides logging, compatibility and integrity checks. Implemented GCC and LLVM clients translate IR; current coverage targets roughly 70–80% of GCC/LLVM IR. A migrated optimization (original GCC pass) yields ~7% SPEC CPU2000 int gain and is ported to LLVM in seven days. Code is open source.
AI-written summary · about
chapters (9)
- 0:00Compiler plugin framework intro
- 5:54Why we needed plugin framework
- 8:42Challenges with plugins
- 11:56PINK framework design
- 15:14PINK implementation details
- 26:22Case study optimizations
- 28:30Future plans for framework
- 32:05Community resources
- 33:08Q&A
related talks
39mDemystifying LLVM: Writing Your First Compiler - The Good, The Bad, The Ugly
01h 00mTeaching old compilers new tricks
58m(Almost) Everything You Should Know About The Compiler Frontend
48mWriting a compiler with LLVM
01h 50mUnderstanding Compiler Optimization
27mRust GCC Front-end
16mImprovements to RISC-V Vector code generation in LLVM
01h 03mto pass and return, the story of functions, values and compilers
