Top 1,000 Features Creators Resources Blog Explorer Download
GitHub icon

dlvm

< >

dlvm is an intermediate representation language created in 2017 by Chris Lattner.

Source code:
git clone https://github.com/dlvm-team/swift
#1533on PLDB 7Years Old

The Swift Programming Language


Example from the web:
// Dimension-erased functions are flexible because input shapes are dynamic. // They may be slower and less optimized than their shape-specialized counterparts. // f(x, w, b) = dot(x, w) + pad(b, at: 0) func @f: (<_ x _ x f32>, <_ x _ x f32>, <_ x f32>) -> <_ x _ x f32> { 'entry(%x: <_ x _ x f32>, %w: <_ x _ x f32>, %b: <_ x f32>): %0.0 = dot %x: <_ x _ x f32>, %w: <_ x _ x f32> %0.1 = padShape %b: <_ x f32> at 0 %0.2 = add %0.0: <_ x _ x f32>, %0.1: <1 x _ x f32> return %0.2: <_ x _ x f32> }

Language features

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

View source

- Build the next great programming language · About · Acknowledgements · Extensions · Day 625 · feedback@pldb.io