LIVE SUBMISSIONS โ€” 3 DAYS

LLVM IR for Trading Systems - Module 1: Foundations

Module 1: Foundations. Self-paced - 8 weeks of video lessons, hands-on IR analysis of real trading code, and quizzes.

12 months of access · private Discord channels for your cohort · verified certificate is yours forever · VAT handled by Paddle

You are buying a place in the cohort that starts Tuesday, December 15, 2026. The first 2 lessons open as soon as you buy. The next opens Thursday, December 17, then a new lesson every 2 days, for everyone in the cohort on the same dates (shown next to each lesson below); Lesson 11 opens Saturday, January 2, 2027. Your access runs until December 15, 2027.
๐ŸŽฌ
Video lessons
A video walkthrough with every lesson
โšก
Live code lab
Compile & run in-browser, inspect LLVM IR & assembly
๐Ÿค–
AI feedback
Graded knowledge checks and code review on every exercise
๐ŸŽ“
Certificate
Verified Open Badges credential, LinkedIn-ready

The C++ you write is not the code that runs. Between the two sits the optimizer, and it works on LLVM IR: a small, readable language that clang translates your source into before any machine code exists. Whether a variable stays in a register, whether a function is inlined, whether a loop is vectorized, whether a branch becomes a select: each of those is decided in the IR, and each decision is written there for anyone who can read it.

This course teaches you to read it. You compile your own C++ to IR, see what the optimizer did with it, and learn the rule behind each decision. The next time a hot path is slower than it should be, you can find the reason in the compiler's own output instead of guessing from the source.

The course assumes you write C++. It does not assume you know anything about compilers or about trading. Trading is where the examples come from: prices in integer ticks, fees in basis points, order values and positions.

What you get

  • 11 lessons, each a page to read and a video in which every command is typed on a live terminal, with captions and chapters.
  • 91 quick questions, 13 short written answers and 24 exercises you compile in the browser with clang 18, with the LLVM IR and the assembly of your code beside the AI judge's feedback.
  • Real compiler output only. Every IR listing on every page is clang 18 output, the compiler the exercises run on: what you read is what you get when you type the command yourself.
  • An AI tutor on every lesson, and a certificate when you finish.

The lessons

  1. Reading your first LLVM IR: types, instructions, SSA, phi, and the flags the compiler adds.
  2. From -O0 to -O2: what the front end writes, the pass that turns stack slots into values, and the optimizer one pass at a time.
  3. Arithmetic the compiler may and may not change: shifts, division, undefined behaviour, -ffast-math, and prices in integer ticks.
  4. Memory, pointers and aliasing: why optimized code still loads and stores, and the four things that let a value stay in a register.
  5. Calls and inlining: what the optimizer must assume about a function it cannot see, and what inlining gives it.
  6. Branches, select and switch: when an if stays a branch, what min and max become, what a switch turns into.
  7. Loops in IR: the blocks of a loop, the phi of every counter, what moves out of the loop and what aliasing keeps in.
  8. Vectorization: reading a vectorized loop, asking the compiler why a loop was not vectorized, and why the fix for a floating-point sum changes its answer.
  9. LTO and PGO in the IR: the whole program at link time and a profile from a real run, and what each one changes.
  10. Writing a pass: two plugins for opt, one that counts instructions and one that rewrites them.
  11. One function, start to finish: a fee total that hides four problems; find each in the IR, fix it, and read the IR again.

How it runs

A cohort starts every two weeks. Lessons 1 and 2 open when you buy; the others unlock every two days from your cohort's start, so the whole module is open in under three weeks. Access lasts 12 months from the start.

Who made this course

Henrique Bucher Henrique Bucher, PhD, made this course. Henrique has built trading systems in Chicago for two decades: sub-microsecond quoters and zero-copy multicast feed parsers at Citadel; KO, the low-latency trading platform Sun Trading adopted firm-wide; ULLTRA, JP Morgan's first low-latency trading system, connected to 72 exchanges and brokers; JP Morgan's global low-latency exchange connectivity; and MDFLOW, Chicago Trading Company's cross-asset market data platform. Henrique holds a PhD in numerical methods from COPPE/UFRJ, founded HFT University, and writes the Low Latency Trading Insights books and newsletter. LinkedIn ยท GitHub

Jordan Bucher Jordan Bucher is the voice of the videos. Jordan wrote the C++ Basics for Trading Systems course and maintains the site's benchmark system and its C++ and Rust challenges. LinkedIn ยท GitHub

Syllabus

Lesson 1: Reading Your First LLVM IR
What LLVM IR is, how to make it from your own C++, and how to read four small functions: types, instructions, SSA, phi, and the flags the compiler adds.
Lesson 2: From -O0 to -O2
What clang writes before any optimization, the pass that turns stack slots into SSA values, and how to watch the optimizer work one pass at a time.
Lesson 3: Arithmetic the Compiler May and May Not Change
Why a multiply becomes a shift, why x / 10.0 stays a division, what -ffast-math really switches on, and what that means for a price.
opens Thu Dec 17
Lesson 4: Memory, Pointers and Aliasing
Why optimized IR still loads and stores, why it sometimes reads the same value twice, and the four things that let the compiler keep it in a register.
opens Sat Dec 19
Lesson 5: Calls and Inlining
What the optimizer must assume about a function it cannot see, what inlining gives it, what static and inline really mean, and the attributes the compiler infers for every function.
opens Mon Dec 21
Lesson 6: Branches, Select and Switch
How an if leaves the optimizer as a branch or as a select, what min and max become, when a chain of checks folds into one, what a switch turns into, and what a branch hint really changes.
opens Wed Dec 23
Lesson 7: Loops in IR
How to read a loop without getting lost: the blocks a loop is made of, the phi pair for every counter and accumulator, what the optimizer moves out of the loop, what aliasing keeps in, and what unrolling looks like.
opens Fri Dec 25
Lesson 8: Vectorization
How to read a vectorized loop, how the target decides its width, how to ask the compiler why a loop was not vectorized, and why the fix for a floating-point sum changes its answer.
opens Sun Dec 27
Lesson 9: LTO and PGO in the IR
Two ways to give the optimizer what one source file cannot: the whole program at link time, and a profile from a real run. What each one changes in the IR, and what neither one changes.
opens Tue Dec 29
Lesson 10: Writing a Pass
A pass is a C++ function from IR to IR. Write two as plugins for opt: one that counts instructions, one that rewrites them, and see how a pass is tested, how it fits the pipeline, and when a team should write one at all.
opens Thu Dec 31
Lesson 11: One Function, Start to Finish
A fee total that looks reasonable and hides four things the course taught. Find each one in the IR, fix it in the source, read the IR again, and finish with the vectorizer's verdict. Its questions and exercises are the assessment for the whole module.
opens Sat Jan 2

Payments processed through Paddle with automatic VAT handling. Charges appear on your statement as PADDLE.NET* VITORIANLL.