Skip to content

Assignments 02 setup

Mugundan edited this page Nov 27, 2026 · 1 revision

Stage 1: Build Setup

Relevant source files

The following files were used as context for generating this wiki page:

Get an LLVM build tree that can host a new experimental target and that reports errors usefully.

Purpose and Scope

A configured build of LLVM with assertions, ready to add Toy.

Read First

Tasks

  1. Configure a separate build directory with -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_TARGETS_TO_BUILD=AArch64 -DLLVM_ENABLE_PROJECTS=clang.
  2. Build llc, llvm-tblgen, llvm-mc, llvm-objdump, FileCheck and llvm-lit.
  3. Read LLVM_ALL_EXPERIMENTAL_TARGETS in llvm/CMakeLists.txt; you will add Toy there in stage 2.

Tests

llc --version lists aarch64; llc -debug-only=isel is accepted (proves assertions are on).

Done When

  • Build finishes
  • -debug-only works
  • llvm-lit llvm/test/CodeGen/AArch64/arm64-ccmp.ll passes

Next: stage 2. All Toy code and expected output on this page are illustrative, not LLVM source and not tool output; your exact output may differ.

Start here

Computer Organization & Architecture

Hexagon ISA

Operating Systems

C++ for LLVM Development

LLVM IR

SelectionDAG

Backend Assignments

Target Bring-up

Calling Conventions

Frame Lowering

MC Layer

Register Allocation

Scheduling

Clone this wiki locally