projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AMDGPU/SI: Test commit
[oota-llvm.git]
/
lib
/
Target
/
AMDGPU
/
AMDGPUSubtarget.h
diff --git
a/lib/Target/AMDGPU/AMDGPUSubtarget.h
b/lib/Target/AMDGPU/AMDGPUSubtarget.h
index 27f269a95f9fb0135d3459409ed020b406765eb7..971b5179b13c451cc1d6e11d909111b02c552dc3 100644
(file)
--- a/
lib/Target/AMDGPU/AMDGPUSubtarget.h
+++ b/
lib/Target/AMDGPU/AMDGPUSubtarget.h
@@
-1,4
+1,4
@@
-//=====-- AMDGPUSubtarget.h - Define Subtarget for
the AMDIL
---*- C++ -*-====//
+//=====-- AMDGPUSubtarget.h - Define Subtarget for
AMDGPU ---
---*- C++ -*-====//
//
// The LLVM Compiler Infrastructure
//
//
// The LLVM Compiler Infrastructure
//
@@
-12,15
+12,15
@@
//
//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_LIB_TARGET_R600_AMDGPUSUBTARGET_H
-#define LLVM_LIB_TARGET_R600_AMDGPUSUBTARGET_H
+#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUSUBTARGET_H
+#define LLVM_LIB_TARGET_AMDGPU_AMDGPUSUBTARGET_H
+
#include "AMDGPU.h"
#include "AMDGPUFrameLowering.h"
#include "AMDGPUInstrInfo.h"
#include "AMDGPU.h"
#include "AMDGPUFrameLowering.h"
#include "AMDGPUInstrInfo.h"
-#include "AMDGPUI
ntrinsicInfo
.h"
+#include "AMDGPUI
SelLowering
.h"
#include "AMDGPUSubtarget.h"
#include "AMDGPUSubtarget.h"
-#include "R600ISelLowering.h"
-#include "llvm/ADT/StringExtras.h"
+#include "Utils/AMDGPUBaseInfo.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Target/TargetSubtargetInfo.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Target/TargetSubtargetInfo.h"
@@
-48,6
+48,14
@@
public:
FIXED_SGPR_COUNT_FOR_INIT_BUG = 80
};
FIXED_SGPR_COUNT_FOR_INIT_BUG = 80
};
+ enum {
+ ISAVersion0_0_0,
+ ISAVersion7_0_0,
+ ISAVersion7_0_1,
+ ISAVersion8_0_0,
+ ISAVersion8_0_1
+ };
+
private:
std::string DevName;
bool Is64bit;
private:
std::string DevName;
bool Is64bit;
@@
-66,6
+74,7
@@
private:
bool EnablePromoteAlloca;
bool EnableIfCvt;
bool EnableLoadStoreOpt;
bool EnablePromoteAlloca;
bool EnableIfCvt;
bool EnableLoadStoreOpt;
+ bool EnableUnsafeDSOffsetFolding;
unsigned WavefrontSize;
bool CFALUBug;
int LocalMemorySize;
unsigned WavefrontSize;
bool CFALUBug;
int LocalMemorySize;
@@
-77,8
+86,10
@@
private:
bool CIInsts;
bool FeatureDisable;
int LDSBankCount;
bool CIInsts;
bool FeatureDisable;
int LDSBankCount;
+ unsigned IsaVersion;
+ bool EnableHugeScratchBuffer;
-
AMDGPUFrameLowering
FrameLowering;
+
std::unique_ptr<AMDGPUFrameLowering>
FrameLowering;
std::unique_ptr<AMDGPUTargetLowering> TLInfo;
std::unique_ptr<AMDGPUInstrInfo> InstrInfo;
InstrItineraryData InstrItins;
std::unique_ptr<AMDGPUTargetLowering> TLInfo;
std::unique_ptr<AMDGPUInstrInfo> InstrInfo;
InstrItineraryData InstrItins;
@@
-91,7
+102,7
@@
public:
StringRef GPU, StringRef FS);
const AMDGPUFrameLowering *getFrameLowering() const override {
StringRef GPU, StringRef FS);
const AMDGPUFrameLowering *getFrameLowering() const override {
- return
&FrameLowering
;
+ return
FrameLowering.get()
;
}
const AMDGPUInstrInfo *getInstrInfo() const override {
return InstrInfo.get();
}
const AMDGPUInstrInfo *getInstrInfo() const override {
return InstrInfo.get();
@@
-211,6
+222,10
@@
public:
return EnableLoadStoreOpt;
}
return EnableLoadStoreOpt;
}
+ bool unsafeDSOffsetFoldingEnabled() const {
+ return EnableUnsafeDSOffsetFolding;
+ }
+
unsigned getWavefrontSize() const {
return WavefrontSize;
}
unsigned getWavefrontSize() const {
return WavefrontSize;
}
@@
-236,6
+251,8
@@
public:
unsigned getAmdKernelCodeChipID() const;
unsigned getAmdKernelCodeChipID() const;
+ AMDGPU::IsaVersion getIsaVersion() const;
+
bool enableMachineScheduler() const override {
return true;
}
bool enableMachineScheduler() const override {
return true;
}
@@
-253,6
+270,10
@@
public:
return DevName;
}
return DevName;
}
+ bool enableHugeScratchBuffer() const {
+ return EnableHugeScratchBuffer;
+ }
+
bool dumpCode() const {
return DumpCode;
}
bool dumpCode() const {
return DumpCode;
}
@@
-282,6
+303,9
@@
public:
return isAmdHsaOS() ? 0 : 36;
}
return isAmdHsaOS() ? 0 : 36;
}
+ unsigned getMaxNumUserSGPRs() const {
+ return 16;
+ }
};
} // End namespace llvm
};
} // End namespace llvm