[all-commits] [llvm/llvm-project] f0dd54: clang/OpenCL: Fix special casing OpenCL in call em...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed May 7 22:53:54 PDT 2025


  Branch: refs/heads/users/arsenm/clang/fix-special-casing-opencl-in-call-lowering
  Home:   https://github.com/llvm/llvm-project
  Commit: f0dd54a01298238db9f4346def59192f788b173a
      https://github.com/llvm/llvm-project/commit/f0dd54a01298238db9f4346def59192f788b173a
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-05-08 (Thu, 08 May 2025)

  Changed paths:
    M clang/lib/CodeGen/CGCall.cpp

  Log Message:
  -----------
  clang/OpenCL: Fix special casing OpenCL in call emission

This essentially reverts 1bf1a156d673.

OpenCL's handling of address spaces has always been a mess, but it's
better than it used to be so this hack appears to be unnecessary now.

None of the code here should really depend on the language or language
address space. The ABI address space to use is already explicit in the
ABIArgInfo, so use that instead of guessing it has anything to do with
LangAS::Default or getASTAllocaAddressSpace.

The below usage of LangAS::Default and getASTAllocaAddressSpace are also
suspect, but appears to be a more involved and separate fix.



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