nelli: a lightweight frontend for MLIR

07/29/2023
by   Maksim Levental, et al.
0

Multi-Level Intermediate Representation (MLIR) is a novel compiler infrastructure that aims to provide modular and extensible components to facilitate building domain specific compilers. However, since MLIR models programs at an intermediate level of abstraction, and most extant frontends are at a very high level of abstraction, the semantics and mechanics of the fundamental transformations available in MLIR are difficult to investigate and employ in and of themselves. To address these challenges, we have developed , a lightweight, Python-embedded, domain-specific, language for generating MLIR code. leverages existing MLIR infrastructure to develop Pythonic syntax and semantics for various MLIR features. We describe 's design goals, discuss key details of our implementation, and demonstrate how enables easily defining and lowering compute kernels to diverse hardware platforms.

READ FULL TEXT
research
05/26/2020

Domain-Specific Multi-Level IR Rewriting for GPU

Traditional compilers operate on a single generic intermediate represent...
research
02/25/2020

MLIR: A Compiler Infrastructure for the End of Moore's Law

This work presents MLIR, a novel approach to building reusable and exten...
research
11/08/2017

DLVM: A modern compiler infrastructure for deep learning systems

Deep learning software demands reliability and performance. However, man...
research
02/13/2021

COMET: A Domain-Specific Compilation of High-Performance Computational Chemistry

The computational power increases over the past decades havegreatly enha...
research
12/27/2019

EVA: An Encrypted Vector Arithmetic Language and Compiler for Efficient Homomorphic Computation

Fully-Homomorphic Encryption (FHE) offers powerful capabilities by enabl...
research
02/07/2022

Composable and Modular Code Generation in MLIR: A Structured and Retargetable Approach to Tensor Compiler Construction

Despite significant investment in software infrastructure, machine learn...
research
03/28/2021

Phism: Polyhedral High-Level Synthesis in MLIR

Polyhedral optimisation, a methodology that views nested loops as polyhe...

Please sign up or login with your details

Forgot password? Click here to reset