[all-commits] [llvm/llvm-project] 03e6f4: [mlir] Do not print back 0 alignment in LLVM diale...

ftynse via All-commits all-commits at lists.llvm.org
Mon Oct 26 15:19:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 03e6f40cdba61e6fbe0fef00e92ae1ebaf8431a7
      https://github.com/llvm/llvm-project/commit/03e6f40cdba61e6fbe0fef00e92ae1ebaf8431a7
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-10-26 (Mon, 26 Oct 2020)

  Changed paths:
    M mlir/include/mlir/IR/OperationSupport.h
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/lib/IR/OperationSupport.cpp
    M mlir/test/Dialect/LLVMIR/invalid.mlir

  Log Message:
  -----------
  [mlir] Do not print back 0 alignment in LLVM dialect 'alloca' op

The alignment attribute in the 'alloca' op treats the '0' value as 'unset'.
When parsing the custom form of the 'alloca' op, ignore the alignment attribute
with if its value is '0' instead of actually creating it and producing a
slightly different textually yet equivalent semantically form in the output.

Reviewed By: rriddle

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




More information about the All-commits mailing list