Let's Build a Computation-Graph JIT Compiler in C++
summary
Shows how to implement a computation graph in C++ and use LLVM’s JIT to generate and execute binary code at runtime. Covers practical LLVM internals by walking through C++ code that builds the graph, invokes LLVM for just-in-time compilation, and runs the generated functions, aimed at a beginner perspective after about six months of learning LLVM.
AI-written summary · about
chapters (12)
- 0:00Start
- 1:37Today's source code, etc.
- 2:50Creating something with LLVM ~ My own language
- 6:25Computation graph
- 9:33Installing LLVM
- 10:04Creating a function with LLVM
- 10:57Programming with LLVM
- 12:45Building processing blocks
- 13:04Getting the argument list from the Function class
- 13:29Performing operations (addition this time)
- 13:52Checking in text format
- 17:03Wrapping results in Expr
related talks
01h 04mJust-in-Time Compilation: The Next Big Thing?
55mHow Compilers Work: Introduction to LLVM Passes
26m“Easy::Jit: A Just-in-Time compilation library for C++”
01h 01mFaster Compile Times and Better Performance: Bringing Just-in-Time Compilation to C++
24mCompilers and LLVM Demystified
53mLLVM
28mCode optimization tips and tricks
42mDeveloping the Wolfram Language Compiler
