[NVPTX] Add more surface/texture intrinsics, including CUDA unified texture fetch
authorJustin Holewinski <jholewinski@nvidia.com>
Thu, 17 Jul 2014 11:59:04 +0000 (11:59 +0000)
committerJustin Holewinski <jholewinski@nvidia.com>
Thu, 17 Jul 2014 11:59:04 +0000 (11:59 +0000)
commitd6663f565ca0b4400e4f07b78405e3ff6eb246f3
treea52747646956b3894d33ccc5722b9ecc42010daf
parent58589cefeeaaf1647660214a3b72ad8e79311bec
[NVPTX] Add more surface/texture intrinsics, including CUDA unified texture fetch

This also uses TSFlags to mark machine instructions that are surface/texture
accesses, as well as the vector width for surface operations.  This is used
to simplify some of the switch statements that need to detect surface/texture
instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213256 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/llvm/IR/IntrinsicsNVVM.td
lib/Target/NVPTX/MCTargetDesc/NVPTXBaseInfo.h
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
lib/Target/NVPTX/NVPTXISelLowering.cpp
lib/Target/NVPTX/NVPTXISelLowering.h
lib/Target/NVPTX/NVPTXInstrFormats.td
lib/Target/NVPTX/NVPTXIntrinsics.td
lib/Target/NVPTX/NVPTXReplaceImageHandles.cpp
lib/Target/NVPTX/NVPTXSubtarget.h
test/CodeGen/NVPTX/surf-read-cuda.ll [new file with mode: 0644]
test/CodeGen/NVPTX/surf-write-cuda.ll [new file with mode: 0644]
test/CodeGen/NVPTX/tex-read-cuda.ll [new file with mode: 0644]
test/CodeGen/NVPTX/tex-read.ll