[PATCH] D29164: NVPTX: Refactor NVPTXInferAddressSpaces to check TTI

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 25 20:32:00 PST 2017


arsenm created this revision.
Herald added subscribers: wdng, jholewinski.

Add a new TTI hook for getting the generic address space value.

I considered a more refined TTI hook that could check specific address space combinations, but I don't really have a use for it to justify the increase in complexity.


https://reviews.llvm.org/D29164

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  include/llvm/Analysis/TargetTransformInfoImpl.h
  include/llvm/CodeGen/BasicTTIImpl.h
  lib/Analysis/TargetTransformInfo.cpp
  lib/Target/NVPTX/NVPTXInferAddressSpaces.cpp
  lib/Target/NVPTX/NVPTXTargetTransformInfo.h
  test/CodeGen/NVPTX/access-non-generic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29164.85855.patch
Type: text/x-patch
Size: 11559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170126/ad4ff236/attachment.bin>


More information about the llvm-commits mailing list