[all-commits] [llvm/llvm-project] 1ad48d: [mlir] handle nested regions in llvm-legalize-for-...

ftynse via All-commits all-commits at lists.llvm.org
Tue Jan 18 08:09:29 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ad48d6de27089d0223543c0b5c33961c08de877
      https://github.com/llvm/llvm-project/commit/1ad48d6de27089d0223543c0b5c33961c08de877
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2022-01-18 (Tue, 18 Jan 2022)

  Changed paths:
    M mlir/lib/Dialect/LLVMIR/Transforms/LegalizeForExport.cpp
    M mlir/test/Dialect/LLVMIR/legalize-for-export.mlir
    M mlir/test/Target/LLVMIR/openmp-llvm.mlir

  Log Message:
  -----------
  [mlir] handle nested regions in llvm-legalize-for-export

The translation from the MLIR LLVM dialect to LLVM IR includes a mechanism that
ensures the successors of a block to be different blocks in case block
arguments are passed to them since the opposite cannot be expressed in LLVM IR.
This mechanism previously only worked for functions because it was written
prior to the introduction of other region-carrying operations such as the
OpenMP dialect, which also translates directly to LLVM IR. Modify this
mechanism to handle all regions in the module and not only functions.

Reviewed By: wsmoses

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




More information about the All-commits mailing list