# 克里斯·拉特纳

**克里斯·拉特纳**（Chris Lattner，全名 Chris Arthur Lattner）是一位美国软件工程师、编程语言设计者，创造了 LLVM 编译器基础设施、Clang 编译器和 Swift 编程语言，后来又参与编写了 MLIR 编译器框架，并联合创办了开发 Mojo 语言的公司 Modular。LLVM 始于 2000 年，是他在伊利诺伊大学厄巴纳-香槟分校（UIUC）求学期间、在拉特纳本人与维克拉姆·阿德维（Vikram Adve）教授指导下开展的研究项目，此后被苹果、奥多比、AMD、克雷、谷歌、英特尔等众多公司纳入商业产品。<sup>[1](https://www.acm.org/binaries/content/assets/press-releases/2013/april/acm-tech-awards-2012a.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| LLVM | 2000 年与维克拉姆·阿德维在 UIUC 启动；见于拉特纳的硕士论文《LLVM：多阶段优化的基础设施》（2002 年 12 月）<sup>[1](https://www.acm.org/binaries/content/assets/press-releases/2013/april/acm-tech-awards-2012a.pdf)</sup><sup> • </sup><sup>[2](https://llvm.org/pubs/2002-12-LattnerMSThesis.html)</sup> |
| Swift | 2010 年 7 月在苹果启动该语言；2014 年在 WWDC 上公布；2015 年开源<sup>[3](https://chrislattner.com/)</sup><sup> • </sup><sup>[4](https://developer.apple.com/swift/get-started/)</sup> |
| MLIR | 论文《MLIR：面向领域特定计算扩展编译器基础设施》的合著者，CGO 2021，第 2–14 页<sup>[5](https://mlir.llvm.org/getting_started/Faq/)</sup> |
| 奖项 | 史上首个 SIGPLAN 编程语言软件奖（2010）；因 LLVM 获 ACM 软件系统奖（2012）<sup>[6](https://blog.llvm.org/2010/06/llvm-receives-first-ever-sigplan.html)</sup><sup> • </sup><sup>[7](https://awards.acm.org/binaries/content/assets/awards/awards-booklet-2022.pdf)</sup> |
| 业界任职 | 苹果（开发者工具）、特斯拉（2017 年任 Autopilot 软件负责人）、谷歌（机器学习加速器高级总监）、Modular（联合创始人兼 CEO）<sup>[8](https://www.axios.com/2017/12/15/teslas-head-of-autopilot-software-is-leaving-after-just-six-months-1513303134)</sup><sup> • </sup><sup>[9](https://www.modular.com/blog/qualcomm-completes-acquisition-of-modular)</sup> |
| Mojo | 2026 年 8 月 11 日达到 1.0 版本；2026 年 8 月 18 日以 Apache 2.0 协议开源<sup>[10](https://www.modular.com/blog/modular-26-5-mojo-1-0-is-here)</sup><sup> • </sup><sup>[11](https://www.modular.com/blog/modcon-announcements)</sup> |

## LLVM 与 Clang

LLVM 是一套与语言无关的编程技术集合，可对任意编程语言进行代码分析与变换，把源语言转成处理器的机器码。ACM 在 2012 年软件系统奖的授奖词中，把它的成功归因于技术的开放性、架构与工程的质量，以及干净灵活、配有易用编程接口的设计。<sup>[1](https://www.acm.org/binaries/content/assets/press-releases/2013/april/acm-tech-awards-2012a.pdf)</sup>

拉特纳 2002 年 12 月在 UIUC 完成的硕士论文，把 LLVM 呈现为一种支持多阶段优化系统的编译器基础设施。LLVM 虚拟指令集被设计成一种低层表示，既保留高层类型信息，支持在链接时、运行时和部署现场进行跨过程优化与基于剖析的优化，又足够高效，可用于商业编译器。<sup>[2](https://llvm.org/pubs/2002-12-LattnerMSThesis.html)</sup> 他的博士论文《宏观数据结构分析与优化》（2005）也建立在同一套基础设施之上。<sup>[12](https://llvm.org/pubs/2005-05-04-LattnerPHDThesis.pdf)</sup>

2010 年，美国计算机协会编程语言特别兴趣小组（SIGPLAN）将史上第一个编程语言软件奖授予当时在苹果的拉特纳，以表彰他对 LLVM 的设计与开发。授奖词提到 LLVM 在产品与研究中的使用、它对编译器之外领域（如 FPGA 设计工具）的影响，以及它作为苹果 Mac OS X 软件栈有机组成部分的作用。<sup>[6](https://blog.llvm.org/2010/06/llvm-receives-first-ever-sigplan.html)</sup><sup> • </sup><sup>[13](https://www.sigplan-pages.sigplan.hosting.acm.org/Awards/Software/)</sup> 两年后，LLVM 获得 ACM 软件系统奖。<sup>[7](https://awards.acm.org/binaries/content/assets/awards/awards-booklet-2022.pdf)</sup>

Clang 是拉特纳的团队在苹果构建的 C、C++ 和 [Objective-C](https://www.edgepedia.org/zh/objective-c) 编译器前端，它很早就开源，起初发展缓慢。拉特纳曾对比它与 Swift 的发布：Clang 问世时“所有人都打了个哈欠”，项目最初只有一名贡献者、没有用户；而 Swift 则一夜之间从无人知晓变得广为人知。<sup>[14](https://atp.fm/205-chris-lattner-interview-transcript)</sup>

## 苹果时期的 Swift

拉特纳于 2010 年 7 月开始开发 Swift 编程语言，在只有少数人知道其存在的情况下实现了大部分基本语言结构。其他贡献者从 2011 年末起陆续认真加入，2013 年 7 月，这门语言成为苹果开发者工具团队的主要工作重点。<sup>[3](https://chrislattner.com/)</sup> 苹果在 2014 年全球开发者大会上公布了 Swift，称其是一门安全、平易、高性能的通用语言，可与 C、C++ 和 Objective-C 互操作，并于 2015 年以开源许可证发布。<sup>[4](https://developer.apple.com/swift/get-started/)</sup>

这门语言从 Objective-C、Rust、Haskell、Ruby、Python、C#、CLU 等语言中汲取了想法，早期版本刻意做得尽可能接近 Objective-C；拉特纳说，Swift 3 才是这门语言“成为它自己”的时刻。<sup>[3](https://chrislattner.com/)</sup><sup> • </sup><sup>[14](https://atp.fm/205-chris-lattner-interview-transcript)</sup> 他也坦率谈过设计上的遗憾：在 2025 年的一次讨论中，他写道，Swift 的双向约束求解类型检查器对编译时间不利，“对可预测的诊断信息更糟”，而他后来的语言 Mojo 避开了这一点，不做指数时间的类型检查，编译速度快得多。<sup>[15](https://news.ycombinator.com/item?id=45137373)</sup>

## 特斯拉与谷歌

拉特纳于 2017 年 1 月离开苹果，出任特斯拉 [Autopilot](https://www.edgepedia.org/zh/autopilot) 软件负责人。这桩人事消息被广泛报道，因为他被认为是 Swift 的创造者。约半年后他离开特斯拉，写道“特斯拉终究不适合我”；特斯拉随后聘请计算机视觉研究者[安德烈·卡帕西](https://www.edgepedia.org/zh/andrej-karpathy)（Andrej Karpathy）担任 Autopilot 的关键职位。<sup>[8](https://www.axios.com/2017/12/15/teslas-head-of-autopilot-software-is-leaving-after-just-six-months-1513303134)</sup>

Swift for TensorFlow 于 2018 年 4 月作为开源项目启动，它为 Swift 增加了编译器和语言层面的增强，包括与语言集成的自动微分，而不是一个简单的 API 封装。该项目 2021 年的 MLSys 论文（拉特纳是作者之一）描述了一个深度学习平台，并通过在数据中心与移动应用中三十多个深度学习模型上的使用加以验证。<sup>[16](https://blog.tensorflow.org/2018/04/introducing-swift-for-tensorflow.html)</sup><sup> • </sup><sup>[17](https://research.google/pubs/swift-for-tensorflow-a-portable-flexible-platform-for-deep-learning/)</sup>

## MLIR

MLIR（多级中间表示）是一种混合式 IR，旨在解决软件碎片化问题、改善异构硬件上的编译、降低构建领域特定编译器的成本，并把已有的编译器连接起来。拉特纳是该项目 2021 年 CGO 论文《MLIR：面向领域特定计算扩展编译器基础设施》的第一作者，论文由他与谷歌 MLIR 团队的九位同事合写。<sup>[5](https://mlir.llvm.org/getting_started/Faq/)</sup><sup> • </sup><sup>[18](https://mlir.llvm.org/)</sup>

这一设计明确借鉴了拉特纳早期系统的经验。MLIR 的文档指出，团队受益于构建 [LLVM IR](https://www.edgepedia.org/zh/llvm-ir)、XLA HLO 和 Swift SIL 的经验，而 LLVM 的设计使多线程编译器无法同时处理一个模块中的多个函数；MLIR 通过限制 SSA 的作用范围、用显式符号引用取代跨函数引用来解决这一点。MLIR 有意不涉及寄存器分配、指令调度等低层机器码生成，而把这些交给 LLVM 之类的更低层优化器。<sup>[18](https://mlir.llvm.org/)</sup> MLIR 后来被并入 LLVM 项目。<sup>[19](https://arxiv.org/abs/2008.08272)</sup>

## Modular 与 Mojo

Modular 最初并不打算做一门语言：团队先完全用 MLIR 写了一个没有前端的代码生成器，直到这条代码生成路线被证明可行，才决定做语言。<sup>[20](https://www.modular.com/blog/developer-voices-deep-dive-with-chris-lattner-on-mojo)</sup>

结果就是 Mojo——一门从零开始、语法兼容 Python、编译器全新的编程语言。不同寻常的是，Mojo 的前端不构建传统的抽象语法树；解析器直接生成 MLIR，再经过 MLIR 的降级与优化各阶段，最后交给 LLVM 代码生成器。<sup>[21](https://pldb.io/blog/chrisLattner.html)</sup> 拉特纳把这门语言定位为对 Swift 经验的吸取，包括避免功能过快堆积：“Swift 太快地加上了所有这些特性，它们从来没真正融洽地共处过。他认为早期阶段正是正确性最重要的时期，因为根本性的设计与工程缺陷日后极难修补。”<sup>[21](https://pldb.io/blog/chrisLattner.html)</sup>

Mojo 于 2026 年 8 月 11 日达到 1.0 版本，Modular 称其为一个稳定、可用于生产的基础，已用于其商业产品 MAX 和 Modular Cloud 基础设施。一周后，在 2026 年 8 月 18 日的 ModCon 上，Mojo 1.0 编译器与工具链以 Apache 2.0 许可证全面开源发布。<sup>[10](https://www.modular.com/blog/modular-26-5-mojo-1-0-is-here)</sup><sup> • </sup><sup>[11](https://www.modular.com/blog/modcon-announcements)</sup>

2026 年 7 月 29 日，高通完成了对 Modular 的收购，交易价值约 31 亿美元，主要以 1800 万股高通普通股支付。Mojo、MAX 和 Modular Cloud 继续作为产品和品牌存在，而 Modular 的联合创始人兼 CEO 拉特纳出任高通高级 AI 软件与平台执行副总裁。<sup>[9](https://www.modular.com/blog/qualcomm-completes-acquisition-of-modular)</sup><sup> • </sup><sup>[22](https://www.sec.gov/Archives/edgar/data/804328/000080432826000086/qcom-20260628.htm)</sup>

## 荣誉

拉特纳的工作获得了两项重要的 ACM 奖项。2010 年的 SIGPLAN 编程语言软件奖是该奖的首届，授予他个人，以表彰他作为 LLVM 作者的工作；授奖词记载，研究者常把“LLVM 设计的优雅”列为使用它的理由。<sup>[6](https://blog.llvm.org/2010/06/llvm-receives-first-ever-sigplan.html)</sup><sup> • </sup><sup>[13](https://www.sigplan-pages.sigplan.hosting.acm.org/Awards/Software/)</sup> 2012 年的 ACM 软件系统奖则授予 LLVM 项目本身，表彰这一被广泛用于商业产品和计算机科学研究的系统。<sup>[7](https://awards.acm.org/binaries/content/assets/awards/awards-booklet-2022.pdf)</sup> 如今，LLVM 及其衍生物支撑着 Swift、Rust、Clang、Julia 和 Flang（Fortran）等语言的编译器。<sup>[23](https://dspace.vut.cz/bitstreams/1c822c42-a039-409d-9551-7570265040f6/download)</sup>

## References

1. [ACM Technical Awards 2012 press release (LLVM Software System Award)](https://www.acm.org/binaries/content/assets/press-releases/2013/april/acm-tech-awards-2012a.pdf)
2. [Chris Lattner, "LLVM: An Infrastructure for Multi-Stage Optimization", M.S. Thesis, UIUC, Dec. 2002](https://llvm.org/pubs/2002-12-LattnerMSThesis.html)
3. [Chris Lattner personal site, on the origins of Swift](https://chrislattner.com/)
4. [Get Started - Swift, Apple Developer](https://developer.apple.com/swift/get-started/)
5. [MLIR FAQ: citing the CGO 2021 paper](https://mlir.llvm.org/getting_started/Faq/)
6. [LLVM receives first ever SIGPLAN Software Systems Award, LLVM Project Blog, June 7, 2010](https://blog.llvm.org/2010/06/llvm-receives-first-ever-sigplan.html)
7. [ACM Awards Booklet 2022 (2012 Software System Award, LLVM)](https://awards.acm.org/binaries/content/assets/awards/awards-booklet-2022.pdf)
8. [Tesla's head of autopilot software is leaving after just six months, Axios, 2017](https://www.axios.com/2017/12/15/teslas-head-of-autopilot-software-is-leaving-after-just-six-months-1513303134)
9. [Qualcomm Completes Acquisition of Modular, July 29, 2026](https://www.modular.com/blog/qualcomm-completes-acquisition-of-modular)
10. [Modular 26.5: Mojo 1.0 is here!, August 11, 2026](https://www.modular.com/blog/modular-26-5-mojo-1-0-is-here)
11. [ModCon 2026: Open source, open cloud, open silicon, August 18, 2026](https://www.modular.com/blog/modcon-announcements)
12. [Chris Lattner Ph.D. Dissertation, "Macroscopic Data Structure Analysis and Optimization" (2005)](https://llvm.org/pubs/2005-05-04-LattnerPHDThesis.pdf)
13. [Programming Languages Software Award, ACM SIGPLAN (2010 citation)](https://www.sigplan-pages.sigplan.hosting.acm.org/Awards/Software/)
14. [Episode 205: Chris Lattner Interview Transcript, Accidental Tech Podcast](https://atp.fm/205-chris-lattner-interview-transcript)
15. [ML needs a new programming language - Interview with Chris Lattner, Hacker News](https://news.ycombinator.com/item?id=45137373)
16. [Introducing Swift For TensorFlow, The TensorFlow Blog, April 26, 2018](https://blog.tensorflow.org/2018/04/introducing-swift-for-tensorflow.html)
17. [Swift for TensorFlow: A portable, flexible platform for deep learning, MLSys 2021](https://research.google/pubs/swift-for-tensorflow-a-portable-flexible-platform-for-deep-learning/)
18. [MLIR: Multi-Level Intermediate Representation Overview](https://mlir.llvm.org/)
19. [Compiling ONNX Neural Network Models Using MLIR, arXiv:2008.08272](https://arxiv.org/abs/2008.08272)
20. [Developer Voices: Deep Dive with Chris Lattner on Mojo, Modular blog, May 8, 2024](https://www.modular.com/blog/developer-voices-deep-dive-with-chris-lattner-on-mojo)
21. [An interview with Chris Lattner, PLDB blog](https://pldb.io/blog/chrisLattner.html)
22. [Qualcomm Form 10-Q, quarter ended June 28, 2026 (Modular acquisition terms)](https://www.sec.gov/Archives/edgar/data/804328/000080432826000086/qcom-20260628.htm)
23. [Brno University of Technology thesis describing LLVM-based compilers including Clang, Swift, Rust, GHC, and Flang](https://dspace.vut.cz/bitstreams/1c822c42-a039-409d-9551-7570265040f6/download)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 19, 2026; Oct 15, 2026 · Edited: Sep 19, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 工程师与计算机科学家 › 计算机科学家与人工智能研究者 › Researchers in computer systems, networking, security, databases, and programming languages › Programming languages

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/chris-lattner

English original: https://www.edgepedia.org/chris-lattner
