[all-commits] [llvm/llvm-project] 359094: [AMDGPU] Add attribute to AMDGPU ctor / dtor to in...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed May 24 05:24:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3590945a11c79a539738dcecd5d7706b6449d0c4
      https://github.com/llvm/llvm-project/commit/3590945a11c79a539738dcecd5d7706b6449d0c4
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-05-24 (Wed, 24 May 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp
    M llvm/test/CodeGen/AMDGPU/lower-ctor-dtor-constexpr-alias.ll
    M llvm/test/CodeGen/AMDGPU/lower-ctor-dtor.ll
    M llvm/test/CodeGen/AMDGPU/lower-multiple-ctor-dtor.ll

  Log Message:
  -----------
  [AMDGPU] Add attribute to AMDGPU ctor / dtor to indicate single threadedness

We only expect these ctor / dtor functions to be called with a single
thread. Add the appropriate attributes to indicate this to the backend.

Reviewed By: arsenm

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




More information about the All-commits mailing list