From d3f12029662342ae435aaa1caf7355316b49d2de Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 30 Apr 2014 14:20:53 +0000 Subject: [PATCH] R600: Remove unused function AMDGPUSubtarget::getDefaultSize() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207654 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/R600/AMDGPUSubtarget.cpp | 11 ----------- lib/Target/R600/AMDGPUSubtarget.h | 2 -- 2 files changed, 13 deletions(-) diff --git a/lib/Target/R600/AMDGPUSubtarget.cpp b/lib/Target/R600/AMDGPUSubtarget.cpp index fc34eef7fd2..f3b993204a5 100644 --- a/lib/Target/R600/AMDGPUSubtarget.cpp +++ b/lib/Target/R600/AMDGPUSubtarget.cpp @@ -30,9 +30,6 @@ AMDGPUSubtarget::AMDGPUSubtarget(StringRef TT, StringRef CPU, StringRef FS) : // Default card StringRef GPU = CPU; Is64bit = false; - DefaultSize[0] = 64; - DefaultSize[1] = 1; - DefaultSize[2] = 1; HasVertexCache = false; TexVTXClauseSize = 0; Gen = AMDGPUSubtarget::R600; @@ -108,14 +105,6 @@ bool AMDGPUSubtarget::isTargetELF() const { return false; } -size_t -AMDGPUSubtarget::getDefaultSize(uint32_t dim) const { - if (dim > 2) { - return 1; - } else { - return DefaultSize[dim]; - } -} std::string AMDGPUSubtarget::getDeviceName() const { diff --git a/lib/Target/R600/AMDGPUSubtarget.h b/lib/Target/R600/AMDGPUSubtarget.h index 98e58efdc85..1b041d6bd2b 100644 --- a/lib/Target/R600/AMDGPUSubtarget.h +++ b/lib/Target/R600/AMDGPUSubtarget.h @@ -38,7 +38,6 @@ public: }; private: - size_t DefaultSize[3]; std::string DevName; bool Is64bit; bool Is32on64bit; @@ -99,7 +98,6 @@ public: // Helper functions to simplify if statements bool isTargetELF() const; std::string getDeviceName() const; - virtual size_t getDefaultSize(uint32_t dim) const final; bool dumpCode() const { return DumpCode; } bool r600ALUEncoding() const { return R600ALUInst; }