diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-10-31 15:53:28 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-10-31 15:53:28 +0000 |
commit | 52578ac67c517aea65d9a2f8e9ab813f7b61fc6f (patch) | |
tree | 183a8a8648d748d0296a54f7a557f3a7b37d1b4a /llvm/tools/llvm-mca/include/InstrBuilder.h | |
parent | 8e422d677542d441be07e90fdac680611d3f914c (diff) | |
download | bcm5719-llvm-52578ac67c517aea65d9a2f8e9ab813f7b61fc6f.tar.gz bcm5719-llvm-52578ac67c517aea65d9a2f8e9ab813f7b61fc6f.zip |
[llvm-mca] Remove namespace prefixes made redundant by r345612. NFC
llvm-svn: 345730
Diffstat (limited to 'llvm/tools/llvm-mca/include/InstrBuilder.h')
-rw-r--r-- | llvm/tools/llvm-mca/include/InstrBuilder.h | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/llvm/tools/llvm-mca/include/InstrBuilder.h b/llvm/tools/llvm-mca/include/InstrBuilder.h index ca615c053c8..67aa889cf7b 100644 --- a/llvm/tools/llvm-mca/include/InstrBuilder.h +++ b/llvm/tools/llvm-mca/include/InstrBuilder.h @@ -37,39 +37,32 @@ namespace mca { /// Information from the machine scheduling model is used to identify processor /// resources that are consumed by an instruction. class InstrBuilder { - const llvm::MCSubtargetInfo &STI; - const llvm::MCInstrInfo &MCII; - const llvm::MCRegisterInfo &MRI; - const llvm::MCInstrAnalysis &MCIA; - llvm::SmallVector<uint64_t, 8> ProcResourceMasks; + const MCSubtargetInfo &STI; + const MCInstrInfo &MCII; + const MCRegisterInfo &MRI; + const MCInstrAnalysis &MCIA; + SmallVector<uint64_t, 8> ProcResourceMasks; - llvm::DenseMap<unsigned short, std::unique_ptr<const InstrDesc>> Descriptors; - llvm::DenseMap<const llvm::MCInst *, std::unique_ptr<const InstrDesc>> - VariantDescriptors; + DenseMap<unsigned short, std::unique_ptr<const InstrDesc>> Descriptors; + DenseMap<const MCInst *, std::unique_ptr<const InstrDesc>> VariantDescriptors; - llvm::Expected<const InstrDesc &> - createInstrDescImpl(const llvm::MCInst &MCI); - llvm::Expected<const InstrDesc &> - getOrCreateInstrDesc(const llvm::MCInst &MCI); + Expected<const InstrDesc &> createInstrDescImpl(const MCInst &MCI); + Expected<const InstrDesc &> getOrCreateInstrDesc(const MCInst &MCI); InstrBuilder(const InstrBuilder &) = delete; InstrBuilder &operator=(const InstrBuilder &) = delete; - llvm::Error populateWrites(InstrDesc &ID, const llvm::MCInst &MCI, - unsigned SchedClassID); - llvm::Error populateReads(InstrDesc &ID, const llvm::MCInst &MCI, - unsigned SchedClassID); - llvm::Error verifyInstrDesc(const InstrDesc &ID, - const llvm::MCInst &MCI) const; + Error populateWrites(InstrDesc &ID, const MCInst &MCI, unsigned SchedClassID); + Error populateReads(InstrDesc &ID, const MCInst &MCI, unsigned SchedClassID); + Error verifyInstrDesc(const InstrDesc &ID, const MCInst &MCI) const; public: - InstrBuilder(const llvm::MCSubtargetInfo &STI, const llvm::MCInstrInfo &MCII, - const llvm::MCRegisterInfo &RI, const llvm::MCInstrAnalysis &IA); + InstrBuilder(const MCSubtargetInfo &STI, const MCInstrInfo &MCII, + const MCRegisterInfo &RI, const MCInstrAnalysis &IA); void clear() { VariantDescriptors.shrink_and_clear(); } - llvm::Expected<std::unique_ptr<Instruction>> - createInstruction(const llvm::MCInst &MCI); + Expected<std::unique_ptr<Instruction>> createInstruction(const MCInst &MCI); }; } // namespace mca } // namespace llvm |