# MLIR -- Getting Started

DevFeed: [MLIR -- Getting Started](<https://devfeed.tech/articles/mlir-getting-started-40467.md>)

Original publisher: [Read original article](<https://www.jeremykun.com/2023/08/10/mlir-getting-started/>)

Published: 2023-08-10T14:32:33Z

Content type: tutorial

Language: en

Sources: [Jeremy Kun](<https://devfeed.tech/sources/jeremy-kun.md>)

Topics: [mlir](<https://devfeed.tech/topics/mlir.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [toolchain](<https://devfeed.tech/topics/toolchain.md>), [FHE](<https://devfeed.tech/topics/fhe.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [Google](<https://devfeed.tech/topics/google.md>), [monorepo](<https://devfeed.tech/topics/monorepo.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [build-system](<https://devfeed.tech/tags/build-system.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [compilers](<https://devfeed.tech/tags/compilers.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [fhe](<https://devfeed.tech/tags/fhe.md>), [github-repository](<https://devfeed.tech/tags/github-repository.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [mathematics](<https://devfeed.tech/tags/mathematics.md>), [mlir](<https://devfeed.tech/tags/mlir.md>), [monorepo](<https://devfeed.tech/tags/monorepo.md>), [programming](<https://devfeed.tech/tags/programming.md>), [toolchain](<https://devfeed.tech/tags/toolchain.md>)

## AI overview

This introductory article explains the structure of a typical MLIR project and the build system used in the HEIR project, a Google effort focused on production engineering tools for Fully Homomorphic Encryption. It also introduces the relationship between MLIR and LLVM and describes pinning the MLIR dependency to a specific commit hash.

## Source excerpt

Table of Contents As we announced recently, my team at Google has started a new effort to build production-worthy engineering tools for Fully Homomorphic Encryption (FHE). One focal point of this, and one which I'll be focusing on as long as Google is willing to pay me to do so, is building out a compiler toolchain for FHE in the MLIR framework (Multi-Level Intermediate Representation). The project is called Homomorphic Encryption Intermediate Representation, or HEIR.