[all-commits] [llvm/llvm-project] c1ac6d: [AMDGPU] Add amdgpu-as MMRA for fences (#78572)

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Mon May 27 03:17:25 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1ac6d2dd4ad3b15756d53b4b294843de4c141c2
      https://github.com/llvm/llvm-project/commit/c1ac6d2dd4ad3b15756d53b4b294843de4c141c2
  Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
  Date:   2024-05-27 (Mon, 27 May 2024)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/include/clang/Basic/BuiltinsAMDGPU.def
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/test/CodeGenCXX/builtin-amdgcn-fence.cpp
    M clang/test/SemaOpenCL/builtins-amdgcn-error.cl
    M llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp
    A llvm/test/CodeGen/AMDGPU/memory-legalizer-fence-mmra-global.ll
    A llvm/test/CodeGen/AMDGPU/memory-legalizer-fence-mmra-local.ll

  Log Message:
  -----------
  [AMDGPU] Add amdgpu-as MMRA for fences (#78572)

Using MMRAs, allow `builtin_amdgcn_fence` to emit fences that only
target one or more address spaces, instead of fencing all address spaces
at once.

This is done through a `amdgpu-as` MMRA. Currently focused on OpenCL
fences, but can very easily support more AS names and codegen on more
than just fences.



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