Compiler legend Chris Lattner on LLVM, Swift, TPUs, machine learning compilers, and his brief stint leading Tesla Autopilot software.

Chris Lattner — Creator of the LLVM compiler infrastructure and the Swift programming language; senior director at Google working on TPUs, TensorFlow, and ML accelerators; former Apple developer tools lead and former VP of Autopilot software at Tesla.
Chris Lattner explains what compilers are and how they bridge human-written code and diverse hardware through front-end, optimizer, and back-end phases. He recounts building LLVM as a university project that grew into shared open-source infrastructure used by competitors like Apple, Google, Nvidia, Intel, and AMD, and later creating the Clang C/C++ compiler and the Swift language at Apple. The conversation covers compiler optimization, register allocation, the impact of Java and JavaScript, automatic differentiation, and Google's work on TPUs, bfloat16, TensorFlow, Swift for TensorFlow, and the MLIR project. Lattner also reflects on his time leading Tesla Autopilot's transition to an in-house vision stack and on working with Elon Musk. He closes by discussing work ethic and the origin of the LLVM dragon logo.