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/lib/Target/ARM/ARMHazardRecognizer.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/lib/Target/ARM/ARMHazardRecognizer.h')
-rw-r--r-- | contrib/libs/llvm12/lib/Target/ARM/ARMHazardRecognizer.h | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/contrib/libs/llvm12/lib/Target/ARM/ARMHazardRecognizer.h b/contrib/libs/llvm12/lib/Target/ARM/ARMHazardRecognizer.h index e6b5304488..c1f1bcd0a6 100644 --- a/contrib/libs/llvm12/lib/Target/ARM/ARMHazardRecognizer.h +++ b/contrib/libs/llvm12/lib/Target/ARM/ARMHazardRecognizer.h @@ -13,28 +13,28 @@ #ifndef LLVM_LIB_TARGET_ARM_ARMHAZARDRECOGNIZER_H #define LLVM_LIB_TARGET_ARM_ARMHAZARDRECOGNIZER_H -#include "ARMBaseInstrInfo.h" -#include "llvm/ADT/BitmaskEnum.h" -#include "llvm/ADT/SmallVector.h" -#include "llvm/CodeGen/ScheduleHazardRecognizer.h" -#include "llvm/Support/DataTypes.h" -#include <array> -#include <initializer_list> +#include "ARMBaseInstrInfo.h" +#include "llvm/ADT/BitmaskEnum.h" +#include "llvm/ADT/SmallVector.h" +#include "llvm/CodeGen/ScheduleHazardRecognizer.h" +#include "llvm/Support/DataTypes.h" +#include <array> +#include <initializer_list> namespace llvm { -class DataLayout; -class MachineFunction; +class DataLayout; +class MachineFunction; class MachineInstr; -class ScheduleDAG; +class ScheduleDAG; -// Hazards related to FP MLx instructions -class ARMHazardRecognizerFPMLx : public ScheduleHazardRecognizer { +// Hazards related to FP MLx instructions +class ARMHazardRecognizerFPMLx : public ScheduleHazardRecognizer { MachineInstr *LastMI = nullptr; unsigned FpMLxStalls = 0; public: - ARMHazardRecognizerFPMLx() : ScheduleHazardRecognizer() { MaxLookAhead = 1; } + ARMHazardRecognizerFPMLx() : ScheduleHazardRecognizer() { MaxLookAhead = 1; } HazardType getHazardType(SUnit *SU, int Stalls) override; void Reset() override; @@ -43,27 +43,27 @@ public: void RecedeCycle() override; }; -// Hazards related to bank conflicts -class ARMBankConflictHazardRecognizer : public ScheduleHazardRecognizer { - SmallVector<MachineInstr *, 8> Accesses; - const MachineFunction &MF; - const DataLayout &DL; - int64_t DataMask; - bool AssumeITCMBankConflict; - -public: - ARMBankConflictHazardRecognizer(const ScheduleDAG *DAG, int64_t DDM, - bool ABC); - HazardType getHazardType(SUnit *SU, int Stalls) override; - void Reset() override; - void EmitInstruction(SUnit *SU) override; - void AdvanceCycle() override; - void RecedeCycle() override; - -private: - inline HazardType CheckOffsets(unsigned O0, unsigned O1); -}; - +// Hazards related to bank conflicts +class ARMBankConflictHazardRecognizer : public ScheduleHazardRecognizer { + SmallVector<MachineInstr *, 8> Accesses; + const MachineFunction &MF; + const DataLayout &DL; + int64_t DataMask; + bool AssumeITCMBankConflict; + +public: + ARMBankConflictHazardRecognizer(const ScheduleDAG *DAG, int64_t DDM, + bool ABC); + HazardType getHazardType(SUnit *SU, int Stalls) override; + void Reset() override; + void EmitInstruction(SUnit *SU) override; + void AdvanceCycle() override; + void RecedeCycle() override; + +private: + inline HazardType CheckOffsets(unsigned O0, unsigned O1); +}; + } // end namespace llvm #endif |