[PATCH] D63208: [AMDGPU] Pass to propagate ABI attributes from kernels to the functions

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 07:51:42 PDT 2019


rampitec created this revision.
rampitec added reviewers: kzhuravl, msearles.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, mgorny, nhaehnle, wdng, jvesely, arsenm.
rampitec added a parent revision: D63204: [AMDGPU] gfx1010 core wave32 changes.

The pass works in two modes:

Mode 1: Just set attributes starting from kernels. This can work at
the very beginning of opt and llc pipeline, but cannot clone functions
because it must be a function pass.

Mode 2: Actually clone functions for new attributes. This can only work
after all function passes in the opt pipeline because it has to be a
module pass.


https://reviews.llvm.org/D63208

Files:
  lib/Target/AMDGPU/AMDGPU.h
  lib/Target/AMDGPU/AMDGPUPropagateAttributes.cpp
  lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
  lib/Target/AMDGPU/CMakeLists.txt
  test/CodeGen/AMDGPU/propagate-attributes-clone.ll
  test/CodeGen/AMDGPU/propagate-attributes-single-set.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63208.204292.patch
Type: text/x-patch
Size: 19372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190612/575d6d3b/attachment.bin>


More information about the llvm-commits mailing list