~/talk

Enter the Dragon: Taming LLVM

Talkat iOS Conf SG 2016 · on Sunday, 2016-10-23· [compilers-and-language-design]
slides:none on file

Builds a tiny Lisp called cisp in Swift that compiles to LLVM IR, implementing lexer, parser and emitter as a Swift enum AST plus a recursive descent parser, then uses the LLVM C API to emit IR for numbers, binary ops, function prototypes and basic blocks including phi-like control flow. Notes setup pain: must compile LLVM from source and wire headers/libraries before import, but code generation is straightforward and the compiler successfully produces runnable LLVM-backed code.

AI-written summary · about

  1. 0:00Introduction to LLVM
  2. 1:20Compiler design basics
  3. 3:12LLVM IR overview
  4. 5:20Understanding LLVM IR
  5. 9:14Defining the Cisp language
  6. 11:08Lexing and tokenization
  7. 13:11Parsing syntax trees
  8. 17:44Setting up LLVM
  9. 19:29Code generation in LLVM
  10. 26:00Control flow and Phi nodes
  11. 29:26Closing thoughts and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.