Searched refs:ClusterId (Results 1 – 5 of 5) sorted by relevance
32 class ClusterId {34 static ClusterId noise() { return ClusterId(kNoise); } in noise()35 static ClusterId error() { return ClusterId(kError); } in error()36 static ClusterId makeValid(size_t Id) { return ClusterId(Id); } in makeValid()37 ClusterId() : Id_(kUndef) {} in ClusterId() function38 bool operator==(const ClusterId &O) const { return Id_ == O.Id_; }39 bool operator<(const ClusterId &O) const { return Id_ < O.Id_; }53 explicit ClusterId(size_t Id) : Id_(Id) {} in ClusterId() function64 explicit Cluster(const ClusterId &Id) : Id(Id) {} in Cluster()66 const ClusterId Id;[all …]
49 using ClusterId = InstructionBenchmarkClustering::ClusterId;65 const InstructionBenchmarkClustering::ClusterId &id() const { in id()66 return ClusterId; in id()85 InstructionBenchmarkClustering::ClusterId ClusterId;
66 NoiseCluster_(ClusterId::noise()), ErrorCluster_(ClusterId::error()) {} in InstructionBenchmarkClustering()76 ClusterIdForPoint_[P] = ClusterId::error(); in validateAndSetup()111 ClusterIdForPoint_[P] = ClusterId::noise(); in dbScan()116 Clusters_.emplace_back(ClusterId::makeValid(Clusters_.size())); in dbScan()
76 const InstructionBenchmarkClustering::ClusterId &CID) { in writeClusterId()386 if (ClusterId.isUndef()) { in addPoint()387 ClusterId = Clustering.getClusterIdForPoint(PointId); in addPoint()393 assert(ClusterId == Clustering.getClusterIdForPoint(PointId)); in addPoint()596 const auto &ClusterId = Clustering_.getClusterIdForPoint(PointId); in run() local597 if (!ClusterId.isValid()) in run()601 [ClusterId](const SchedClassCluster &C) { in run()602 return C.id() == ClusterId; in run()
49 InstructionBenchmarkClustering::ClusterId::noise()), in TEST()52 InstructionBenchmarkClustering::ClusterId::error()), in TEST()56 InstructionBenchmarkClustering::ClusterId::error()); in TEST()58 InstructionBenchmarkClustering::ClusterId::noise()); in TEST()86 ASSERT_LT(InstructionBenchmarkClustering::ClusterId::makeValid(1), in TEST()87 InstructionBenchmarkClustering::ClusterId::makeValid(2)); in TEST()89 ASSERT_LT(InstructionBenchmarkClustering::ClusterId::makeValid(2), in TEST()90 InstructionBenchmarkClustering::ClusterId::noise()); in TEST()92 ASSERT_LT(InstructionBenchmarkClustering::ClusterId::makeValid(2), in TEST()93 InstructionBenchmarkClustering::ClusterId::error()); in TEST()[all …]