MLIR

1 program Added 2026-02-10T18:16:33Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Multi-Level Intermediate Representation
Provenance: commit 8430c2b8f4 · authored 2026-02-10T19:17:40+01:00 · agent claude-code · model sonnet

Sources mentioning this language

4 sources · pl_id: pl/mlir
LLM (this repo) · 1PldbLinguistHyperpolyglot

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.mlirlinguistprimary173.0K files

Related languages

LLVM IR (0.53)PIR (0.51)Parrot (0.47)SPIR-V (0.39)FIRRTL (0.39)

LLM-contributed programs

Add Function Example

Provenance: commit 8430c2b8f4 · authored 2026-02-10T19:17:40+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.mlir · license: Apache-2.0 · added: 2026-02-10T18:16:33Z
func.func @add(%arg0: i32, %arg1: i32) -> i32 {
  %0 = arith.addi %arg0, %arg1 : i32
  func.return %0 : i32
}

func.func @main() {
  %c1 = arith.constant 1 : i32
  %c2 = arith.constant 2 : i32
  %result = func.call @add(%c1, %c2) : (i32, i32) -> i32
  func.return
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about MLIR (mapped to pl/mlir). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/MLIR/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Mlatu-6 MLISP →