[all-commits] [llvm/llvm-project] bd7eff: [mlir][flang] Make use of the new `GEPArg` builder...

zero9178 via All-commits all-commits at lists.llvm.org
Mon Aug 1 08:56:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd7eff1f2a7462ffbebc6beb8c7a3fecb1c39350
      https://github.com/llvm/llvm-project/commit/bd7eff1f2a7462ffbebc6beb8c7a3fecb1c39350
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2022-08-01 (Mon, 01 Aug 2022)

  Changed paths:
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/test/Fir/alloc.fir
    M flang/test/Fir/boxproc.fir
    M flang/test/Fir/convert-to-llvm.fir
    M flang/test/Fir/embox.fir
    M flang/test/Fir/field-index.fir
    M flang/test/Fir/loop10.fir
    M flang/test/Fir/rebox-susbtring.fir
    M flang/test/Lower/complex-part.f90
    M mlir/lib/Conversion/AsyncToLLVM/AsyncToLLVM.cpp
    M mlir/lib/Conversion/GPUCommon/GPUOpsLowering.cpp
    M mlir/lib/Conversion/GPUCommon/GPUToLLVMConversion.cpp
    M mlir/lib/Conversion/LLVMCommon/MemRefBuilder.cpp
    M mlir/lib/Conversion/LLVMCommon/Pattern.cpp
    M mlir/lib/Conversion/MemRefToLLVM/MemRefToLLVM.cpp
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/test/Conversion/AsyncToLLVM/convert-runtime-to-llvm.mlir
    M mlir/test/Conversion/GPUCommon/lower-launch-func-to-gpu-runtime-calls.mlir
    M mlir/test/Conversion/GPUCommon/memory-attrbution.mlir
    M mlir/test/Conversion/GPUToROCDL/gpu-to-rocdl-hip.mlir
    M mlir/test/Conversion/GPUToROCDL/gpu-to-rocdl-opencl.mlir
    M mlir/test/Conversion/MemRefToLLVM/convert-dynamic-memref-ops.mlir
    M mlir/test/Conversion/MemRefToLLVM/memref-to-llvm.mlir
    M mlir/test/Target/LLVMIR/Import/incorrect-constant-caching.ll

  Log Message:
  -----------
  [mlir][flang] Make use of the new `GEPArg` builder of GEP Op to simplify code

This is the follow up on https://reviews.llvm.org/D130730 which goes through upstream code and removes creating constant values in favour of using the constant indices in GEP directly. This leads to less and more readable code and more compact IR as well.

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




More information about the All-commits mailing list