summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/include/Support.h
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-10-31 15:53:28 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-10-31 15:53:28 +0000
commit52578ac67c517aea65d9a2f8e9ab813f7b61fc6f (patch)
tree183a8a8648d748d0296a54f7a557f3a7b37d1b4a /llvm/tools/llvm-mca/include/Support.h
parent8e422d677542d441be07e90fdac680611d3f914c (diff)
downloadbcm5719-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/Support.h')
-rw-r--r--llvm/tools/llvm-mca/include/Support.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/llvm/tools/llvm-mca/include/Support.h b/llvm/tools/llvm-mca/include/Support.h
index 43fb72c0229..e7a4e33ed74 100644
--- a/llvm/tools/llvm-mca/include/Support.h
+++ b/llvm/tools/llvm-mca/include/Support.h
@@ -24,7 +24,7 @@ namespace llvm {
namespace mca {
template <typename T>
-class InstructionError : public llvm::ErrorInfo<InstructionError<T>> {
+class InstructionError : public ErrorInfo<InstructionError<T>> {
public:
static char ID;
std::string Message;
@@ -33,10 +33,10 @@ public:
InstructionError(std::string M, const T &MCI)
: Message(std::move(M)), Inst(MCI) {}
- void log(llvm::raw_ostream &OS) const override { OS << Message; }
+ void log(raw_ostream &OS) const override { OS << Message; }
std::error_code convertToErrorCode() const override {
- return llvm::inconvertibleErrorCode();
+ return inconvertibleErrorCode();
}
};
@@ -70,8 +70,7 @@ public:
else {
// Create a common denominator for LHS and RHS by calculating the least
// common multiple from the GCD.
- unsigned GCD =
- llvm::GreatestCommonDivisor64(Denominator, RHS.Denominator);
+ unsigned GCD = GreatestCommonDivisor64(Denominator, RHS.Denominator);
unsigned LCM = (Denominator * RHS.Denominator) / GCD;
unsigned LHSNumerator = Numerator * (LCM / Denominator);
unsigned RHSNumerator = RHS.Numerator * (LCM / RHS.Denominator);
@@ -104,16 +103,16 @@ public:
///
/// Resource masks are used by the ResourceManager to solve set membership
/// problems with simple bit manipulation operations.
-void computeProcResourceMasks(const llvm::MCSchedModel &SM,
- llvm::SmallVectorImpl<uint64_t> &Masks);
+void computeProcResourceMasks(const MCSchedModel &SM,
+ SmallVectorImpl<uint64_t> &Masks);
/// Compute the reciprocal block throughput from a set of processor resource
/// cycles. The reciprocal block throughput is computed as the MAX between:
/// - NumMicroOps / DispatchWidth
/// - ProcResourceCycles / #ProcResourceUnits (for every consumed resource).
-double computeBlockRThroughput(const llvm::MCSchedModel &SM,
- unsigned DispatchWidth, unsigned NumMicroOps,
- llvm::ArrayRef<unsigned> ProcResourceUsage);
+double computeBlockRThroughput(const MCSchedModel &SM, unsigned DispatchWidth,
+ unsigned NumMicroOps,
+ ArrayRef<unsigned> ProcResourceUsage);
} // namespace mca
} // namespace llvm
OpenPOWER on IntegriCloud