[all-commits] [llvm/llvm-project] 667a9f: [MLIR][OpenMP] Fix compiler crash when translating...

Sergio Afonso via All-commits all-commits at lists.llvm.org
Mon Aug 28 04:26:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 667a9f7aa154ded9c7546b4d0d940237487d4698
      https://github.com/llvm/llvm-project/commit/667a9f7aa154ded9c7546b4d0d940237487d4698
  Author: Sergio Afonso <safonsof at amd.com>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/omptarget-region-llvm.mlir

  Log Message:
  -----------
  [MLIR][OpenMP] Fix compiler crash when translating omp.target to LLVM IR

This patch fixes a compiler crash that would happen during translation to LLVM
IR if the optional `map` argument of the `omp.target` operation was not
present. A unit test is added to ensure this has been fixed.

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




More information about the All-commits mailing list