Why MLIR? PhoebeDB's Case for Multi-Level IR in a Query Compiler
Compiled query execution is a solved problem — HyPer proved it, SingleStore productionized it. The open question isn't whether to compile SQL, it's what IR to build the compiler on. Every major compiled database goes straight to LLVM IR. PhoebeDB doesn't. This post explains why, and what three custom IR layers buy you that LLVM IR alone cannot.