summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-11-13 22:55:05 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-11-13 22:55:05 +0000
commit4eea3f3da34d174efa0ff5e50db8add4f132c852 (patch)
tree58881ec703488c23af586182fda361cd25247318 /llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
parenta5888a730dfb4c11e4386ee56c65df65d706cf7e (diff)
downloadbcm5719-llvm-4eea3f3da34d174efa0ff5e50db8add4f132c852.tar.gz
bcm5719-llvm-4eea3f3da34d174efa0ff5e50db8add4f132c852.zip
AMDGPU: Implement computeKnownBitsForTargetNode for mbcnt
llvm-svn: 318100
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
index 2cc48a7f9f2..460ff82efc5 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
@@ -228,6 +228,10 @@ public:
return WavefrontSize;
}
+ unsigned getWavefrontSizeLog2() const {
+ return Log2_32(WavefrontSize);
+ }
+
int getLocalMemorySize() const {
return LocalMemorySize;
}
OpenPOWER on IntegriCloud