[all-commits] [llvm/llvm-project] d85821: [MLIR] Added llvm.freeze

Sagox via All-commits all-commits at lists.llvm.org
Mon Mar 2 01:24:08 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d85821dfa623b43b95dda1af3b80e11902d3994f
      https://github.com/llvm/llvm-project/commit/d85821dfa623b43b95dda1af3b80e11902d3994f
  Author: Sagar Jain <cs17btech11034 at iith.ac.in>
  Date:   2020-03-02 (Mon, 02 Mar 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
    M mlir/test/Dialect/LLVMIR/roundtrip.mlir
    M mlir/test/Target/import.ll
    M mlir/test/Target/llvmir.mlir

  Log Message:
  -----------
  [MLIR] Added llvm.freeze

This patch adds llvm.freeze & processes undef constants from LLVM IR.

Syntax:
LLVM IR
`<result> = freeze ty <val>`

MLIR LLVM Dialect:
`llvm.freeze val attr-dict : type`

Example:
LLVM IR: `%3 = freeze i32 5`
MLIR: `%6 = llvm.freeze %5 : !llvm.i32`

Differential Revision: https://reviews.llvm.org/D75329




More information about the All-commits mailing list