# Copyright 2026 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== book_path: /mlir/_book.yaml project_path: /mlir/_project.yaml description: An intermediate representation and compiler framework, MLIR unifies the infrastructure for high-performance ML models in TensorFlow. landing_page: custom_css_path: /site-assets/css/style.css rows: - heading: MLIR unifies the infrastructure for high-performance ML models in TensorFlow. items: - description: > The MLIR project defines a common intermediate representation (IR) that unifies the infrastructure required to execute high performance machine learning models in TensorFlow and similar ML frameworks. This project will include the application of HPC techniques, along with integration of search algorithms like reinforcement learning. MLIR aims to reduce the cost to bring up new hardware, and improve usability for existing TensorFlow users. - code_block: |
        // Syntactically similar to LLVM:
        func @testFunction(%arg0: i32) {
          %x = call @thingToCall(%arg0) : (i32) -> i32
          br ^bb1
        ^bb1:
          %y = arith.addi %x, %x : i32
          return %y : i32
        }
        
- classname: devsite-landing-row-cards items: - heading: "Multi-Level Intermediate Representation for Compiler Infrastructure" youtube_id: qzljG6DKgic buttons: - label: Watch the video path: https://www.youtube.com/watch?v=qzljG6DKgic - heading: "A new intermediate representation and compiler framework" image_path: /resources/images/tf-logo-card-16x9.png path: https://blog.tensorflow.org/2019/04/mlir-new-intermediate-representation.html buttons: - label: Read on TensorFlow blog path: https://blog.tensorflow.org/2019/04/mlir-new-intermediate-representation.html - heading: MLIR on GitHub image_path: /resources/images/github-card-16x9.png path: https://github.com/llvm/llvm-project/tree/main/mlir buttons: - label: View on GitHub path: https://github.com/llvm/llvm-project/tree/main/mlir - heading: TensorFlow MLIR on GitHub image_path: /resources/images/github-card-16x9.png path: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/mlir buttons: - label: View on GitHub path: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/compiler/mlir