[all-commits] [llvm/llvm-project] e2b716: [MLIR] Add argument related API to Region

Rahul Joshi via All-commits all-commits at lists.llvm.org
Tue Jul 14 09:28:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e2b716105be33bc1296b4a0c56f8cfc2e8595037
      https://github.com/llvm/llvm-project/commit/e2b716105be33bc1296b4a0c56f8cfc2e8595037
  Author: Rahul Joshi <jurahul at google.com>
  Date:   2020-07-14 (Tue, 14 Jul 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/GPU/GPUOps.td
    M mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
    M mlir/include/mlir/IR/FunctionSupport.h
    M mlir/include/mlir/IR/Region.h
    M mlir/lib/Conversion/SCFToGPU/SCFToGPU.cpp
    M mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
    M mlir/lib/Dialect/GPU/Transforms/AllReduceLowering.cpp
    M mlir/lib/Dialect/SPIRV/SPIRVDialect.cpp
    M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
    M mlir/lib/IR/AsmPrinter.cpp
    M mlir/lib/IR/FunctionImplementation.cpp
    M mlir/lib/IR/Operation.cpp
    M mlir/lib/IR/Region.cpp
    M mlir/lib/Transforms/SCCP.cpp
    M mlir/test/lib/Dialect/Test/TestPatterns.cpp

  Log Message:
  -----------
  [MLIR] Add argument related API to Region

- Arguments of the first block of a region are considered region arguments.
- Add API on Region class to deal with these arguments directly instead of
  using the front() block.
- Changed several instances of existing code that can use this API
- Fixes https://bugs.llvm.org/show_bug.cgi?id=46535

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




More information about the All-commits mailing list