Measures Concepts
GitHub icon

CIR

CIR - Intermediate representation language

< >

CIR, aka Clang IR, is an intermediate representation language created in 2020.

Source code:
git clone https://github.com/facebookincubator/clangir
#1224on PLDB 4Years Old

Clang IR (CIR) is a new IR for Clang.


Example from the web:
// Read from local variable, address in %0. %1 = cir.load %0 : !cir.ptr<i32>, i32 // Load address from memory at address %0. %3 is used by at least one // operation that dereferences a pointer. %3 = cir.load deref %0 : cir.ptr <!cir.ptr<i32>>

Language features

Feature Supported Token Example
Comments ✓
// A comment
Line Comments ✓ //
// A comment
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout