[all-commits] [llvm/llvm-project] c7acd0: [clang][OMPIRBuilder] Use default target AS to cre...

Nick Sarnie via All-commits all-commits at lists.llvm.org
Mon Sep 15 08:11:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c7acd0796cb8971cb4abccc7813be23ee447ab0f
      https://github.com/llvm/llvm-project/commit/c7acd0796cb8971cb4abccc7813be23ee447ab0f
  Author: Nick Sarnie <nick.sarnie at intel.com>
  Date:   2025-09-15 (Mon, 15 Sep 2025)

  Changed paths:
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    M clang/test/OpenMP/spirv_locstr.cpp
    M llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
    M llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

  Log Message:
  -----------
  [clang][OMPIRBuilder] Use default target AS to create types (#158152)

Currently we assume that `0` is the default AS, which is usually true,
but it isn't for `SPIR-V`.

Pass down the AS from `clang` and use it to create types.

After this change, we finally generate fully valid SPIR-V for a basic
OpenMP Offloading example.

Signed-off-by: Sarnie, Nick <nick.sarnie at intel.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list