summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-02-27 08:53:46 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-02-27 08:53:46 +0000
commit61738cbcb6c40cdaf6a6c560787b07373415114c (patch)
tree07e4ca2782e2f1996a768a1dfe09241c4630ac59 /llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
parent353c84e747924745eb0e5df4defc2afd90a1758e (diff)
downloadbcm5719-llvm-61738cbcb6c40cdaf6a6c560787b07373415114c.tar.gz
bcm5719-llvm-61738cbcb6c40cdaf6a6c560787b07373415114c.zip
AMDGPU: Implement readcyclecounter
This matches the behavior of the HSAIL clock instruction. s_realmemtime is used if the subtarget supports it, and falls back to s_memtime if not. Also introduces new intrinsics for each of s_memtime / s_memrealtime. llvm-svn: 262119
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
index 8e58aae9b79..91d1aec5c07 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
@@ -81,7 +81,8 @@ AMDGPUSubtarget::AMDGPUSubtarget(const Triple &TT, StringRef GPU, StringRef FS,
WavefrontSize(0), CFALUBug(false),
LocalMemorySize(0), MaxPrivateElementSize(0),
EnableVGPRSpilling(false), SGPRInitBug(false), IsGCN(false),
- GCN1Encoding(false), GCN3Encoding(false), CIInsts(false), LDSBankCount(0),
+ GCN1Encoding(false), GCN3Encoding(false), CIInsts(false), VIInsts(false),
+ LDSBankCount(0),
IsaVersion(ISAVersion0_0_0), EnableHugeScratchBuffer(false),
EnableSIScheduler(false), FrameLowering(nullptr),
InstrItins(getInstrItineraryForCPU(GPU)), TargetTriple(TT) {
OpenPOWER on IntegriCloud