[all-commits] [llvm/llvm-project] db054d: [MLIR] Introduce an op trait that defines a new sc...

Uday Bondhugula via All-commits all-commits at lists.llvm.org
Thu Apr 9 23:37:01 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: db054d711518b6527048aa06196e443ff2e1dada
      https://github.com/llvm/llvm-project/commit/db054d711518b6527048aa06196e443ff2e1dada
  Author: Uday Bondhugula <uday at polymagelabs.com>
  Date:   2020-04-10 (Fri, 10 Apr 2020)

  Changed paths:
    M mlir/docs/Traits.md
    M mlir/include/mlir/Dialect/GPU/GPUOps.td
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/include/mlir/Dialect/SPIRV/SPIRVStructureOps.td
    M mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
    M mlir/include/mlir/IR/Function.h
    M mlir/include/mlir/IR/OpBase.td
    M mlir/include/mlir/IR/OpDefinition.h
    M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
    M mlir/test/IR/invalid-ops.mlir

  Log Message:
  -----------
  [MLIR] Introduce an op trait that defines a new scope for auto allocation

Introduce a new operation property / trait (AutomaticAllocationScope)
for operations with regions that define a new scope for automatic allocations;
such allocations (typically realized on stack) are automatically freed when
control leaves such ops' regions. std.alloca's are freed at the closest
surrounding op that has this trait. All FunctionLike operations should normally
have this trait.

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




More information about the All-commits mailing list