https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143999
>From 8b8932b55c8a6a087d516e174e1d57c9908259bd Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Thu, 12 Jun 2025 23:54:10 +
Subject: [PATCH] Simplifying creation of Embedder
---
llvm/docs/MLGO.rst
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/144139
>From 7fa87f2e42378d656ba743a4971e5c2ffaee8492 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 13 Jun 2025 18:22:10 +
Subject: [PATCH] [NFC] Formatting PassRegistry.def
---
llvm/lib/Passes/PassRegist
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143999
>From 8b8932b55c8a6a087d516e174e1d57c9908259bd Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Thu, 12 Jun 2025 23:54:10 +
Subject: [PATCH] Simplifying creation of Embedder
---
llvm/docs/MLGO.rst
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/144139
>From 7fa87f2e42378d656ba743a4971e5c2ffaee8492 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 13 Jun 2025 18:22:10 +
Subject: [PATCH] [NFC] Formatting PassRegistry.def
---
llvm/lib/Passes/PassRegist
https://github.com/svkeerthy created
https://github.com/llvm/llvm-project/pull/145117
None
>From d05856c47337b3b6e9086a5ee06b7c39412d9103 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 20 Jun 2025 22:56:46 +
Subject: [PATCH] Increasing tolerance in ApproximatelyEquals
---
llvm/inclu
https://github.com/svkeerthy created
https://github.com/llvm/llvm-project/pull/145118
None
>From cbd2c6e77eefb4ba7b8acbf6ea12f21486e7dbc8 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 20 Jun 2025 23:00:40 +
Subject: [PATCH] Overloading operator+ for Embeddngs
---
llvm/include/llvm/
svkeerthy wrote:
> [!WARNING]
> This pull request is not mergeable via GitHub because a downstack PR is
> open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/145117?utm_source=stack-comment-downstack-mergeability-warning
@@ -104,7 +106,10 @@ MODULE_PASS("lower-ifunc", LowerIFuncPass())
MODULE_PASS("simplify-type-tests", SimplifyTypeTestsPass())
MODULE_PASS("lowertypetests", LowerTypeTestsPass())
MODULE_PASS("fatlto-cleanup", FatLtoCleanup())
-MODULE_PASS("pgo-force-function-attrs", PGOForceFunc
@@ -259,32 +306,40 @@ Error IR2VecVocabAnalysis::readVocabulary() {
return createFileError(VocabFile, BufOrError.getError());
auto Content = BufOrError.get()->getBuffer();
- json::Path::Root Path("");
+
Expected ParsedVocabValue = json::parse(Content);
if (!Parsed
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143479
>From a2bec77ad03e20cd76b6870149863049a96c4f9e Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.../Ana
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143999
>From d71dd503f4794abf8a396ddb8a5deeafe0d75c83 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Thu, 12 Jun 2025 23:54:10 +
Subject: [PATCH] Simplifying creation of Embedder
---
llvm/docs/MLGO.rst
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143479
>From a2bec77ad03e20cd76b6870149863049a96c4f9e Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.../Ana
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143999
>From d71dd503f4794abf8a396ddb8a5deeafe0d75c83 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Thu, 12 Jun 2025 23:54:10 +
Subject: [PATCH] Simplifying creation of Embedder
---
llvm/docs/MLGO.rst
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143999
>From 0d921416a0f81e5634705dc9dfc5363d721a55bf Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Thu, 12 Jun 2025 23:54:10 +
Subject: [PATCH] Simplifying creation of Embedder
---
llvm/docs/MLGO.rst
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143999
>From ea224dfb11b37573f5dbdd34ca118fee5a9808c1 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Thu, 12 Jun 2025 23:54:10 +
Subject: [PATCH] Simplifying creation of Embedder
---
llvm/docs/MLGO.rst
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/144139
>From cd6a0f4fbfa87df8bed4efcdf066530523f5ec0d Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 13 Jun 2025 18:22:10 +
Subject: [PATCH] [NFC] Formatting PassRegistry.def
---
llvm/lib/Passes/PassRegist
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143200
>From d3468ab37c05d4796661f13d61fffe31bcf47ba5 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 6 Jun 2025 20:32:32 +
Subject: [PATCH] Vocab changes1
---
llvm/include/llvm/Analysis/IR2Vec.h| 10 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143200
>From d3468ab37c05d4796661f13d61fffe31bcf47ba5 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 6 Jun 2025 20:32:32 +
Subject: [PATCH] Vocab changes1
---
llvm/include/llvm/Analysis/IR2Vec.h| 10 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143200
>From 96e4a8b7faac3855a552ca52ff227bfc677cc6be Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 6 Jun 2025 20:32:32 +
Subject: [PATCH] Vocab changes1
---
llvm/include/llvm/Analysis/IR2Vec.h| 12 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143200
>From 96e4a8b7faac3855a552ca52ff227bfc677cc6be Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 6 Jun 2025 20:32:32 +
Subject: [PATCH] Vocab changes1
---
llvm/include/llvm/Analysis/IR2Vec.h| 12 +
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/143476
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/143476
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/143479
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
svkeerthy wrote:
> [!WARNING]
> This pull request is not mergeable via GitHub because a downstack PR is
> open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/143476?utm_source=stack-comment-downstack-mergeability-warning
https://github.com/svkeerthy ready_for_review
https://github.com/llvm/llvm-project/pull/143479
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy created
https://github.com/llvm/llvm-project/pull/143476
None
>From 79060df5f6ebb7f13bd88dd3128800790433a224 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 04:49:59 +
Subject: [PATCH] reachable BB
---
llvm/lib/Analysis/IR2Vec.cpp
https://github.com/svkeerthy created
https://github.com/llvm/llvm-project/pull/143479
None
>From 58c85ec93a7d81e89ef9d9dd594aa50056e36559 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.
svkeerthy wrote:
> [!WARNING]
> This pull request is not mergeable via GitHub because a downstack PR is
> open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/143479?utm_source=stack-comment-downstack-mergeability-warning
https://github.com/svkeerthy ready_for_review
https://github.com/llvm/llvm-project/pull/143476
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/143476
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143200
>From 750cb2f730cb1f8d38fc29fa63b92efd53b82eac Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 6 Jun 2025 20:32:32 +
Subject: [PATCH] Vocab changes1
---
llvm/include/llvm/Analysis/IR2Vec.h| 10 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143200
>From 750cb2f730cb1f8d38fc29fa63b92efd53b82eac Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 6 Jun 2025 20:32:32 +
Subject: [PATCH] Vocab changes1
---
llvm/include/llvm/Analysis/IR2Vec.h| 10 +
@@ -83,9 +85,10 @@ void Embedding::scaleAndAdd(const Embedding &Src, float
Factor) {
bool Embedding::approximatelyEquals(const Embedding &RHS,
double Tolerance) const {
assert(this->size() == RHS.size() && "Vectors must have the same dimen
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143200
>From c1842ec938d27261a0b18bc9bcbb20328713f20a Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 6 Jun 2025 20:32:32 +
Subject: [PATCH] Vocab changes1
---
llvm/include/llvm/Analysis/IR2Vec.h| 10 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143200
>From 7f2012cd56db0fc6e1c430a8d5b38d360b33145f Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 6 Jun 2025 20:32:32 +
Subject: [PATCH] Vocab changes1
---
llvm/include/llvm/Analysis/IR2Vec.h| 10 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143200
>From 7f2012cd56db0fc6e1c430a8d5b38d360b33145f Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 6 Jun 2025 20:32:32 +
Subject: [PATCH] Vocab changes1
---
llvm/include/llvm/Analysis/IR2Vec.h| 10 +
@@ -218,9 +222,12 @@ void SymbolicEmbedder::computeEmbeddings(const BasicBlock
&BB) const {
void SymbolicEmbedder::computeEmbeddings() const {
if (F.isDeclaration())
return;
- for (const auto &BB : F) {
-computeEmbeddings(BB);
-FuncVector += BBVecMap[&BB];
+
+
@@ -142,6 +142,10 @@ enum class FeatureIndex : size_t {
INLINE_FEATURE_ITERATOR(POPULATE_INDICES)
#undef POPULATE_INDICES
+// IR2Vec embeddings
svkeerthy wrote:
Done
https://github.com/llvm/llvm-project/pull/143479
_
@@ -186,6 +186,20 @@ MLInlineAdvisor::MLInlineAdvisor(
EdgeCount += getLocalCalls(KVP.first->getFunction());
}
NodeCount = AllNodes.size();
+
+ if (auto IR2VecVocabResult = MAM.getCachedResult(M)) {
+if (!IR2VecVocabResult->isValid()) {
+ M.getContext().emitEr
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143479
>From b40003fb48e9c135dd1b1a06ba10f3cc2cd81d64 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.../Ana
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143200
>From c200f67b92e6b6b3c79d5dcf17a5aa2105871de7 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 6 Jun 2025 20:32:32 +
Subject: [PATCH] Vocab changes1
---
llvm/include/llvm/Analysis/IR2Vec.h| 11 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143476
>From 716f3d2db74a7d3f21cfaf1340e62425c16d5fe1 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 04:49:59 +
Subject: [PATCH] reachable BB
---
llvm/lib/Analysis/IR2Vec.cpp | 13 +
@@ -294,8 +294,8 @@ Error IR2VecVocabAnalysis::readVocabulary() {
return Error::success();
}
-IR2VecVocabAnalysis::IR2VecVocabAnalysis(Vocab &&Vocabulary)
-: Vocabulary(std::move(Vocabulary)) {}
+IR2VecVocabAnalysis::IR2VecVocabAnalysis(Vocab Vocabulary)
+: Vocabular
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143476
>From 716f3d2db74a7d3f21cfaf1340e62425c16d5fe1 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 04:49:59 +
Subject: [PATCH] reachable BB
---
llvm/lib/Analysis/IR2Vec.cpp | 13 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143479
>From b40003fb48e9c135dd1b1a06ba10f3cc2cd81d64 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.../Ana
@@ -199,6 +199,29 @@ void FunctionPropertiesInfo::updateForBB(const BasicBlock
&BB,
#undef CHECK_OPERAND
}
}
+
+ if (IR2VecVocab) {
+// We instantiate the IR2Vec embedder each time, as having an unique
+// pointer to the embedder as member of the class would mak
@@ -193,7 +196,8 @@ Embedding SymbolicEmbedder::getOperandEmbedding(const Value
*Op) const {
void SymbolicEmbedder::computeEmbeddings(const BasicBlock &BB) const {
Embedding BBVector(Dimension, 0);
- for (const auto &I : BB) {
+ // We consider only the non-debug and non-p
@@ -20,33 +21,102 @@
#include "llvm/Support/Compiler.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Transforms/Utils/Cloning.h"
+#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include
using namespace llvm;
+using namespace testing;
namespace llvm {
LLVM_ABI
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143476
>From 173c3b1479f50923429d02e7cd666d3d033f0d65 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 04:49:59 +
Subject: [PATCH] reachable BB
---
llvm/lib/Analysis/IR2Vec.cpp | 13 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143479
>From 5d7a2b0f4e15da7c4322954bda4bf0e9a3795a66 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.../Ana
svkeerthy wrote:
> [!WARNING]
> This pull request is not mergeable via GitHub because a downstack PR is
> open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/143200?utm_source=stack-comment-downstack-mergeability-warning
https://github.com/svkeerthy created
https://github.com/llvm/llvm-project/pull/143200
None
>From d62a38bb0784972e363a7408ba362c31e404f02c Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 6 Jun 2025 20:32:32 +
Subject: [PATCH] Vocab changes1
---
llvm/include/llvm/Analysis/IR2Vec.h|
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/143200
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy ready_for_review
https://github.com/llvm/llvm-project/pull/143200
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/143200
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/143200
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -20,33 +21,102 @@
#include "llvm/Support/Compiler.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Transforms/Utils/Cloning.h"
+#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include
using namespace llvm;
+using namespace testing;
namespace llvm {
LLVM_ABI
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143479
>From b7ec65230c731c77dea1f4a484df6731819729b5 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.../Ana
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143476
>From 6e44bb095fa214a5146af383de0ffeb89606607b Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 04:49:59 +
Subject: [PATCH] reachable BB
---
llvm/lib/Analysis/IR2Vec.cpp | 13 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143476
>From 6e44bb095fa214a5146af383de0ffeb89606607b Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 04:49:59 +
Subject: [PATCH] reachable BB
---
llvm/lib/Analysis/IR2Vec.cpp | 13 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143479
>From b7ec65230c731c77dea1f4a484df6731819729b5 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.../Ana
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/143986
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy commented:
@albertcohen - Please have a look. I am not able to add you as reviewer.
https://github.com/llvm/llvm-project/pull/143986
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm
https://github.com/svkeerthy created
https://github.com/llvm/llvm-project/pull/143999
None
>From cc133a17f78f9ed2082930617ed4d94dbbf9bf97 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Thu, 12 Jun 2025 23:54:10 +
Subject: [PATCH] Simplifying creation of Embedder
---
llvm/docs/MLGO.rst
svkeerthy wrote:
> [!WARNING]
> This pull request is not mergeable via GitHub because a downstack PR is
> open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/143999?utm_source=stack-comment-downstack-mergeability-warning
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/143999
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
svkeerthy wrote:
@albertcohen
https://github.com/llvm/llvm-project/pull/143999
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/143999
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy ready_for_review
https://github.com/llvm/llvm-project/pull/143999
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/143999
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143999
>From 1a051f18a4bab9f843c4fee84084d5cd31cecea1 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Thu, 12 Jun 2025 23:54:10 +
Subject: [PATCH] Simplifying creation of Embedder
---
llvm/docs/MLGO.rst
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143999
>From 1a051f18a4bab9f843c4fee84084d5cd31cecea1 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Thu, 12 Jun 2025 23:54:10 +
Subject: [PATCH] Simplifying creation of Embedder
---
llvm/docs/MLGO.rst
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143479
>From 579c3c03fa1117382c810c8d322f5d83689d79dc Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.../Ana
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143479
>From 579c3c03fa1117382c810c8d322f5d83689d79dc Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.../Ana
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143476
>From cd2cdf560d4ffd9171a1104cbc12586bd06f5542 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 04:49:59 +
Subject: [PATCH] reachable BB
---
llvm/lib/Analysis/IR2Vec.cpp | 13 +
@@ -218,9 +222,12 @@ void SymbolicEmbedder::computeEmbeddings(const BasicBlock
&BB) const {
void SymbolicEmbedder::computeEmbeddings() const {
if (F.isDeclaration())
return;
- for (const auto &BB : F) {
-computeEmbeddings(BB);
-FuncVector += BBVecMap[&BB];
+
+
@@ -53,7 +56,12 @@ class raw_ostream;
enum class IR2VecKind { Symbolic };
namespace ir2vec {
-/// Embedding is a datavtype that wraps std::vector. It provides
+
+LLVM_ABI extern cl::opt OpcWeight;
svkeerthy wrote:
#136623 adds LLVM_ABI tags to some globals an
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/143479
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/143479
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143200
>From d639ce4a4b3ad531e16d7a1c1fa33a53c7e7393a Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 6 Jun 2025 20:32:32 +
Subject: [PATCH] Vocab changes1
---
llvm/include/llvm/Analysis/IR2Vec.h| 10 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143200
>From d639ce4a4b3ad531e16d7a1c1fa33a53c7e7393a Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 6 Jun 2025 20:32:32 +
Subject: [PATCH] Vocab changes1
---
llvm/include/llvm/Analysis/IR2Vec.h| 10 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143479
>From 6085399a3d002b78a093d951c6a9b6c5bb3fb243 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.../Ana
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143476
>From abee4cd2dd04ce8a99562b79df9ae1eeed10d030 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 04:49:59 +
Subject: [PATCH] reachable BB
---
llvm/lib/Analysis/IR2Vec.cpp | 15 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143476
>From abee4cd2dd04ce8a99562b79df9ae1eeed10d030 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 04:49:59 +
Subject: [PATCH] reachable BB
---
llvm/lib/Analysis/IR2Vec.cpp | 15 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143479
>From 6085399a3d002b78a093d951c6a9b6c5bb3fb243 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.../Ana
@@ -106,6 +106,7 @@ struct Embedding {
const std::vector &getData() const { return Data; }
/// Arithmetic operators
+ Embedding operator+(const Embedding &RHS) const;
svkeerthy wrote:
Sure. Will add them too!
https://github.com/llvm/llvm-project/pull/1
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/145118
>From 10019cae162bb53e147797b655da75aac33b0a20 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 20 Jun 2025 23:00:40 +
Subject: [PATCH] Overloading operator+ for Embeddngs
---
llvm/include/llvm/Analys
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/145118
>From f1976fa2454846d80822761f7a095b29c2062652 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 20 Jun 2025 23:00:40 +
Subject: [PATCH] Overloading operator+ for Embeddngs
---
llvm/include/llvm/Analys
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/145118
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/145118
>From f1976fa2454846d80822761f7a095b29c2062652 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 20 Jun 2025 23:00:40 +
Subject: [PATCH] Overloading operator+ for Embeddngs
---
llvm/include/llvm/Analys
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/145118
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -71,20 +71,43 @@ inline bool fromJSON(const llvm::json::Value &E, Embedding
&Out,
// Embedding
//===--===//
+Embedding Embedding::operator+(const Embedding &RHS) const {
+ assert(this->size() == RHS.size
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/145118
>From 10019cae162bb53e147797b655da75aac33b0a20 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Fri, 20 Jun 2025 23:00:40 +
Subject: [PATCH] Overloading operator+ for Embeddngs
---
llvm/include/llvm/Analys
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/145118
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
94 matches
Mail list logo