Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/
H A DClustering.h38 class ClusterId {
40 static ClusterId noise() { return ClusterId(kNoise); } in noise()
41 static ClusterId error() { return ClusterId(kError); } in error()
43 return ClusterId(Id, IsUnstable);
45 static ClusterId makeValidUnstable(size_t Id) { in makeValidUnstable()
49 ClusterId() : Id_(kUndef), IsUnstable_(false) {} in ClusterId() function
68 ClusterId(size_t Id, bool IsUnstable = false)
86 const ClusterId Id;
91 ClusterId getClusterIdForPoint(size_t P) const { in getClusterIdForPoint()
97 const Cluster &getCluster(ClusterId Id) const { in getCluster()
[all …]
H A DAnalysis.h54 using ClusterId = InstructionBenchmarkClustering::ClusterId;
59 const InstructionBenchmarkClustering::ClusterId &id() const { in id()
60 return ClusterId; in id()
78 InstructionBenchmarkClustering::ClusterId ClusterId;
86 void printClusterRawHtml(const InstructionBenchmarkClustering::ClusterId &Id,
H A DClustering.cpp96 NoiseCluster_(ClusterId::noise()), ErrorCluster_(ClusterId::error()) {} in InstructionBenchmarkClustering()
106 ClusterIdForPoint_[P] = ClusterId::error(); in validateAndSetup()
140 ClusterIdForPoint_[P] = ClusterId::noise(); in clusterizeDbScan()
145 Clusters_.emplace_back(ClusterId::makeValid(Clusters_.size())); in clusterizeDbScan()
224 Clusters_.emplace_back(ClusterId::makeValid( in clusterizeNaive()
267 std::map<OpcodeAndConfig, SmallSet<ClusterId, 1>> OpcodeConfigToClusterIDs; in stabilize()
271 const ClusterId &ClusterIdOfPoint = std::get<1>(Point); in stabilize()
275 SmallSet<ClusterId, 1> &ClusterIDsOfOpcode = OpcodeConfigToClusterIDs[Key]; in stabilize()
280 const SmallSet<ClusterId, 1> &ClusterIDs = OpcodeConfigToClusterID.second; in stabilize()
287 Clusters_.emplace_back(ClusterId::makeValidUnstable(Clusters_.size())); in stabilize()
[all …]
H A DAnalysis.cpp74 const InstructionBenchmarkClustering::ClusterId &CID) { in writeClusterId()
346 if (ClusterId.isUndef()) in addPoint()
347 ClusterId = Clustering.getClusterIdForPoint(PointId); in addPoint()
348 assert(ClusterId == Clustering.getClusterIdForPoint(PointId)); in addPoint()
438 const InstructionBenchmarkClustering::ClusterId &Id, StringRef display_name, in printClusterRawHtml()
559 const auto &ClusterId = Clustering_.getClusterIdForPoint(PointId); in run() local
560 if (!ClusterId.isValid()) in run()
562 if (ClusterId.isUnstable() ^ AnalysisDisplayUnstableOpcodes_) in run()
565 SchedClassClusters, [ClusterId](const SchedClassCluster &C) { in run()
566 return C.id() == ClusterId; in run()
[all …]
/llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/
H A 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()
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()
106 ASSERT_LT(InstructionBenchmarkClustering::ClusterId::noise(), in TEST()
[all …]