Home
last modified time | relevance | path

Searched refs:ClusterId (Results 1 – 5 of 5) sorted by relevance

/external/llvm-project/llvm/tools/llvm-exegesis/lib/
DClustering.h37 class ClusterId {
39 static ClusterId noise() { return ClusterId(kNoise); } in noise()
40 static ClusterId error() { return ClusterId(kError); } in error()
41 static ClusterId makeValid(size_t Id, bool IsUnstable = false) {
42 return ClusterId(Id, IsUnstable);
44 static ClusterId makeValidUnstable(size_t Id) { in makeValidUnstable()
48 ClusterId() : Id_(kUndef), IsUnstable_(false) {} in ClusterId() function
51 bool operator==(const ClusterId &O) const { return Id_ == O.Id_; }
52 bool operator<(const ClusterId &O) const { return Id_ < O.Id_; }
67 ClusterId(size_t Id, bool IsUnstable = false)
[all …]
DAnalysis.h52 using ClusterId = InstructionBenchmarkClustering::ClusterId;
57 const InstructionBenchmarkClustering::ClusterId &id() const { in id()
58 return ClusterId; in id()
76 InstructionBenchmarkClustering::ClusterId ClusterId;
84 void printClusterRawHtml(const InstructionBenchmarkClustering::ClusterId &Id,
DClustering.cpp94 NoiseCluster_(ClusterId::noise()), ErrorCluster_(ClusterId::error()) {} in InstructionBenchmarkClustering()
104 ClusterIdForPoint_[P] = ClusterId::error(); in validateAndSetup()
138 ClusterIdForPoint_[P] = ClusterId::noise(); in clusterizeDbScan()
143 Clusters_.emplace_back(ClusterId::makeValid(Clusters_.size())); in clusterizeDbScan()
212 Clusters_.emplace_back(ClusterId::makeValid( in clusterizeNaive()
253 std::map<OpcodeAndConfig, SmallSet<ClusterId, 1>> OpcodeConfigToClusterIDs; in stabilize()
257 const ClusterId &ClusterIdOfPoint = std::get<1>(Point); in stabilize()
261 SmallSet<ClusterId, 1> &ClusterIDsOfOpcode = OpcodeConfigToClusterIDs[Key]; in stabilize()
266 const SmallSet<ClusterId, 1> &ClusterIDs = OpcodeConfigToClusterID.second; in stabilize()
273 Clusters_.emplace_back(ClusterId::makeValidUnstable(Clusters_.size())); in stabilize()
[all …]
DAnalysis.cpp74 const InstructionBenchmarkClustering::ClusterId &CID) { in writeClusterId()
340 if (ClusterId.isUndef()) in addPoint()
341 ClusterId = Clustering.getClusterIdForPoint(PointId); in addPoint()
342 assert(ClusterId == Clustering.getClusterIdForPoint(PointId)); in addPoint()
432 const InstructionBenchmarkClustering::ClusterId &Id, StringRef display_name, in printClusterRawHtml()
553 const auto &ClusterId = Clustering_.getClusterIdForPoint(PointId); in run() local
554 if (!ClusterId.isValid()) in run()
556 if (ClusterId.isUnstable() ^ AnalysisDisplayUnstableOpcodes_) in run()
560 [ClusterId](const SchedClassCluster &C) { in run()
561 return C.id() == ClusterId; in run()
[all …]
/external/llvm-project/llvm/unittests/tools/llvm-exegesis/
DClusteringTest.cpp55 InstructionBenchmarkClustering::ClusterId::noise()), in TEST()
58 InstructionBenchmarkClustering::ClusterId::error()), in TEST()
62 InstructionBenchmarkClustering::ClusterId::error()); in TEST()
64 InstructionBenchmarkClustering::ClusterId::noise()); in TEST()
97 ASSERT_LT(InstructionBenchmarkClustering::ClusterId::makeValid(1), in TEST()
98 InstructionBenchmarkClustering::ClusterId::makeValid(2)); in TEST()
100 ASSERT_LT(InstructionBenchmarkClustering::ClusterId::makeValid(2), in TEST()
101 InstructionBenchmarkClustering::ClusterId::noise()); in TEST()
103 ASSERT_LT(InstructionBenchmarkClustering::ClusterId::makeValid(2), in TEST()
104 InstructionBenchmarkClustering::ClusterId::error()); in TEST()
[all …]