diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/libs/llvm12/include/llvm/MC/MCSubtargetInfo.h | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/MC/MCSubtargetInfo.h')
-rw-r--r-- | contrib/libs/llvm12/include/llvm/MC/MCSubtargetInfo.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/contrib/libs/llvm12/include/llvm/MC/MCSubtargetInfo.h b/contrib/libs/llvm12/include/llvm/MC/MCSubtargetInfo.h index f6d9137599..b197f603bd 100644 --- a/contrib/libs/llvm12/include/llvm/MC/MCSubtargetInfo.h +++ b/contrib/libs/llvm12/include/llvm/MC/MCSubtargetInfo.h @@ -61,7 +61,7 @@ struct SubtargetFeatureKV { struct SubtargetSubTypeKV { const char *Key; ///< K-V key string FeatureBitArray Implies; ///< K-V bit mask - FeatureBitArray TuneImplies; ///< K-V bit mask + FeatureBitArray TuneImplies; ///< K-V bit mask const MCSchedModel *SchedModel; /// Compare routine for std::lower_bound @@ -82,7 +82,7 @@ struct SubtargetSubTypeKV { class MCSubtargetInfo { Triple TargetTriple; std::string CPU; // CPU being targeted. - std::string TuneCPU; // CPU being tuned for. + std::string TuneCPU; // CPU being tuned for. ArrayRef<SubtargetFeatureKV> ProcFeatures; // Processor feature list ArrayRef<SubtargetSubTypeKV> ProcDesc; // Processor descriptions @@ -99,8 +99,8 @@ class MCSubtargetInfo { public: MCSubtargetInfo(const MCSubtargetInfo &) = default; - MCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef TuneCPU, - StringRef FS, ArrayRef<SubtargetFeatureKV> PF, + MCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef TuneCPU, + StringRef FS, ArrayRef<SubtargetFeatureKV> PF, ArrayRef<SubtargetSubTypeKV> PD, const MCWriteProcResEntry *WPR, const MCWriteLatencyEntry *WL, const MCReadAdvanceEntry *RA, const InstrStage *IS, @@ -112,7 +112,7 @@ public: const Triple &getTargetTriple() const { return TargetTriple; } StringRef getCPU() const { return CPU; } - StringRef getTuneCPU() const { return TuneCPU; } + StringRef getTuneCPU() const { return TuneCPU; } const FeatureBitset& getFeatureBits() const { return FeatureBits; } void setFeatureBits(const FeatureBitset &FeatureBits_) { @@ -128,12 +128,12 @@ protected: /// /// FIXME: Find a way to stick this in the constructor, since it should only /// be called during initialization. - void InitMCProcessorInfo(StringRef CPU, StringRef TuneCPU, StringRef FS); + void InitMCProcessorInfo(StringRef CPU, StringRef TuneCPU, StringRef FS); public: - /// Set the features to the default for the given CPU and TuneCPU, with ano - /// appended feature string. - void setDefaultFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS); + /// Set the features to the default for the given CPU and TuneCPU, with ano + /// appended feature string. + void setDefaultFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS); /// Toggle a feature and return the re-computed feature bits. /// This version does not change the implied bits. @@ -220,16 +220,16 @@ public: void initInstrItins(InstrItineraryData &InstrItins) const; /// Resolve a variant scheduling class for the given MCInst and CPU. - virtual unsigned resolveVariantSchedClass(unsigned SchedClass, - const MCInst *MI, - const MCInstrInfo *MCII, - unsigned CPUID) const { + virtual unsigned resolveVariantSchedClass(unsigned SchedClass, + const MCInst *MI, + const MCInstrInfo *MCII, + unsigned CPUID) const { return 0; } /// Check whether the CPU string is valid. bool isCPUStringValid(StringRef CPU) const { - auto Found = llvm::lower_bound(ProcDesc, CPU); + auto Found = llvm::lower_bound(ProcDesc, CPU); return Found != ProcDesc.end() && StringRef(Found->Key) == CPU; } |