dlvm is an actively used intermediate representation language created in 2017.

2Years Old 5Users 0Jobs
  • dlvm does not currently rank in our top 50% of languages
  • the dlvm website
  • dlvm first appeared in 2017
  • I have 11 facts about dlvm. what would you like to know? email me and let me know how I can help.

Example code 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>
}

Last updated November 16th, 2019