summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-08-05 22:22:07 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-08-05 22:22:07 +0000
commit28d06de6f6fb0d3f126c46ad4434c10fd315efa8 (patch)
tree5673898d7a1bd0714d4c497ebb1ff90ae4f20639 /llvm/lib/Target/R600/AMDGPUISelLowering.cpp
parentd42c594960de54f2a809de7c40263da1a0d7ba4b (diff)
downloadbcm5719-llvm-28d06de6f6fb0d3f126c46ad4434c10fd315efa8.tar.gz
bcm5719-llvm-28d06de6f6fb0d3f126c46ad4434c10fd315efa8.zip
R600: Implement TargetLowering::getVectorIdxTy()
We use MVT::i32 for the vector index type, because we use 32-bit operations to caculate offsets when dynamically indexing vectors. llvm-svn: 187749
Diffstat (limited to 'llvm/lib/Target/R600/AMDGPUISelLowering.cpp')
-rw-r--r--llvm/lib/Target/R600/AMDGPUISelLowering.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp b/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
index 5db36b0267d..efd27567fe2 100644
--- a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
+++ b/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
@@ -121,6 +121,15 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) :
}
}
+//===----------------------------------------------------------------------===//
+// Target Information
+//===----------------------------------------------------------------------===//
+
+MVT AMDGPUTargetLowering::getVectorIdxTy() const {
+ return MVT::i32;
+}
+
+
//===---------------------------------------------------------------------===//
// Target Properties
//===---------------------------------------------------------------------===//
OpenPOWER on IntegriCloud