mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
[AMDGPU] Initialize instruction itinerary from GCNSubtarget
I need to use it in the GCN codegen. Differential Revision: https://reviews.llvm.org/D52123 llvm-svn: 342400
This commit is contained in:
parent
18af7cf9e1
commit
baca855d72
@ -149,6 +149,7 @@ GCNSubtarget::GCNSubtarget(const Triple &TT, StringRef GPU, StringRef FS,
|
||||
TargetTriple(TT),
|
||||
Gen(SOUTHERN_ISLANDS),
|
||||
IsaVersion(ISAVersion0_0_0),
|
||||
InstrItins(getInstrItineraryForCPU(GPU)),
|
||||
LDSBankCount(0),
|
||||
MaxPrivateElementSize(0),
|
||||
|
||||
|
@ -297,6 +297,7 @@ protected:
|
||||
Triple TargetTriple;
|
||||
unsigned Gen;
|
||||
unsigned IsaVersion;
|
||||
InstrItineraryData InstrItins;
|
||||
int LDSBankCount;
|
||||
unsigned MaxPrivateElementSize;
|
||||
|
||||
@ -420,6 +421,10 @@ public:
|
||||
return &TSInfo;
|
||||
}
|
||||
|
||||
const InstrItineraryData *getInstrItineraryData() const override {
|
||||
return &InstrItins;
|
||||
}
|
||||
|
||||
void ParseSubtargetFeatures(StringRef CPU, StringRef FS);
|
||||
|
||||
Generation getGeneration() const {
|
||||
|
Loading…
Reference in New Issue
Block a user