Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Custom lowering of MemRefs to LLVM #337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 23, 2019

  1. Custom MemRef lowering to LLVM

    This PR introduces the infrastructure to provide a custom Std-to-LLVM
    lowering for MemRef type:
    * MemRefDescriptor class is turned into an abstract API that defines
      the methods needed to perform the custom lowering.
    * Existing MemRefDesriptor class is renamed to DefaultMemRefDescriptor.
      It provides default struct lowering implementation (NFC).
    * TestCustomMemRefLLVMLowering.cpp implements a custom MemRef
      descriptor lowering and LLVM type converter with the basic
      functionality to lower MemRef type to a plain pointer to element type.
    * convert-memref-ops.mlir is split into convert-static-memref-ops.mlir
      and `convert-dynamic-memref-ops.mlir` so that
      TestCustomMemRefLLVMLowering.cpp can be tested on all the static
      MemRef tests available.
    
    Related discussion: tensorflow#309
    dcaballe committed Dec 23, 2019
    Configuration menu
    Copy the full SHA
    6600dbf View commit details
    Browse the repository at this point in the history