[all-commits] [llvm/llvm-project] d95924: [mlir][llvm] Move LLVMFunctionType to a TypeDef

Jeff Niu via All-commits all-commits at lists.llvm.org
Fri Oct 21 15:13:26 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9592444cea11fcc9e8debe0f5eff331bdabbdc4
      https://github.com/llvm/llvm-project/commit/d9592444cea11fcc9e8debe0f5eff331bdabbdc4
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h
    M mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/lib/Dialect/LLVMIR/IR/LLVMTypeSyntax.cpp
    M mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp
    M mlir/lib/Dialect/LLVMIR/IR/TypeDetail.h

  Log Message:
  -----------
  [mlir][llvm] Move LLVMFunctionType to a TypeDef

Reviewed By: rriddle

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


  Commit: a9bde16ba5f7aa06c34e3091d71334071df5b114
      https://github.com/llvm/llvm-project/commit/a9bde16ba5f7aa06c34e3091d71334071df5b114
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h
    M mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.td
    M mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/lib/Dialect/LLVMIR/IR/LLVMTypeSyntax.cpp
    M mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp
    M mlir/lib/Dialect/LLVMIR/IR/TypeDetail.h
    M mlir/test/Dialect/LLVMIR/invalid.mlir
    M mlir/test/Dialect/LLVMIR/layout.mlir

  Log Message:
  -----------
  [mlir][llvm] Move LLVMPointerType to TypeDef

Depends on D136485

Reviewed By: rriddle

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


  Commit: 877977bba966e3306dae28d06cfd41b64968f267
      https://github.com/llvm/llvm-project/commit/877977bba966e3306dae28d06cfd41b64968f267
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp

  Log Message:
  -----------
  [mlir][llvm] Fix replaceImmediateSubElements on LLVMPointerType

This method was assearting on opaque pointers because the element is
null.

Depends on D136498

Reviewed By: rriddle

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


  Commit: 6144042c27a9a0b8ea90e49d82e800cde02a4e88
      https://github.com/llvm/llvm-project/commit/6144042c27a9a0b8ea90e49d82e800cde02a4e88
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h
    M mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/lib/Dialect/LLVMIR/IR/LLVMTypeSyntax.cpp
    M mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp

  Log Message:
  -----------
  [mlir][llvm] More LLVMFixed/ScalableVectorType to TypeDef

This keeps the current parser, however, since the mnemonic `vec` is
overloaded for both of these types.

Depends on D136499

Reviewed By: rriddle

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


  Commit: 8dfc6042e93fe05b5936e24f734cd77d9906e85b
      https://github.com/llvm/llvm-project/commit/8dfc6042e93fe05b5936e24f734cd77d9906e85b
  Author: Jeff Niu <jeff at modular.com>
  Date:   2022-10-21 (Fri, 21 Oct 2022)

  Changed paths:
    M mlir/include/mlir/IR/SubElementInterfaces.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp
    M mlir/lib/IR/SubElementInterfaces.cpp

  Log Message:
  -----------
  [mlir][llvm] Allow literal structs to replaceImmediateSubElements

SubElementInterfaces forbids all mutable types and attributes from
implementing `replaceImmediateSubElements`. However, this prohibits
literal structs, which are immutable, from implementing that function.
This patch defers the decision on whether to support
`replaceImmediateSubElements` to the individual types/attributes.

Depends on D136505

Reviewed By: rriddle

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


Compare: https://github.com/llvm/llvm-project/compare/e78247112ac2...8dfc6042e93f


More information about the All-commits mailing list