[PATCH] Add NVPTXLowerAlloca pass to convert alloca'ed memory to local address

Xuetian Weng xweng at google.com
Tue Jun 16 12:26:09 PDT 2015


Hi jingyue, jholewinski,

This is done by first adding two additional instructions to convert the
alloca returned address to local and convert it back to generic. Then
replace all uses of alloca instruction with the converted generic
address. Then we can rely NVPTXFavorNonGenericAddrSpace pass to combine
the generic addresscast and the corresponding Load, Store, Bitcast, GEP
Instruction together.

http://reviews.llvm.org/D10483

Files:
  lib/Target/NVPTX/CMakeLists.txt
  lib/Target/NVPTX/NVPTX.h
  lib/Target/NVPTX/NVPTXLowerAlloca.cpp
  lib/Target/NVPTX/NVPTXTargetMachine.cpp
  test/CodeGen/NVPTX/call-with-alloca-buffer.ll
  test/CodeGen/NVPTX/lower-alloca.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10483.27779.patch
Type: text/x-patch
Size: 8366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150616/b8cea6b9/attachment.bin>


More information about the llvm-commits mailing list