[PATCH] D36436: [AMDGPU] Ported and adopted AMDLibCalls pass

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 17:05:37 PDT 2017


rampitec created this revision.
Herald added subscribers: t-tye, tpr, dstuttard, mgorny, nhaehnle, wdng, kzhuravl, arsenm.

The pass does simplifications of well known AMD library calls.
If given -amdgpu-prelink option it works in a pre-link mode which
allows to reference new library functions which will be linked in
later.

In addition it also used to process traditional AMD option
-fuse-native which allows to replace some of the functions with
their fast native implementations from the library.

The necessary glue to pass the prelink option and translate
-fuse-native is to be added to the driver.


https://reviews.llvm.org/D36436

Files:
  lib/Target/AMDGPU/AMDGPU.h
  lib/Target/AMDGPU/AMDGPULibCalls.cpp
  lib/Target/AMDGPU/AMDGPULibFunc.cpp
  lib/Target/AMDGPU/AMDGPULibFunc.h
  lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
  lib/Target/AMDGPU/CMakeLists.txt
  test/CodeGen/AMDGPU/simplify-libcalls.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36436.110112.patch
Type: text/x-patch
Size: 130868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170808/e91bb716/attachment-0001.bin>


More information about the llvm-commits mailing list