https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/148719
___
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/148719
___
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/148719
___
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/148719?utm_source=stack-comment-downstack-mergeability-warning
https://github.com/svkeerthy created
https://github.com/llvm/llvm-project/pull/148719
None
>From 5490291f7f7670b1d326603cb0bc1047337a2fcf Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Mon, 14 Jul 2025 20:27:42 +
Subject: [PATCH] [IR2Vec] Adding documentation for llvm-ir2vec tool
---
llv
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147844
>From ab123750a6d52faecff9276b2d06a95964857ef4 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:44:03 +
Subject: [PATCH] IR2Vec Tool Enhancements
---
llvm/test/lit.cfg.py
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147842
>From 51b0120e4dd4c9052141f5b334bf9e4716721b56 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:39:39 +
Subject: [PATCH] IR2Vec Tool
---
llvm/test/CMakeLists.txt| 1 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147841
>From 3f1914ea0f920f93c75557d348c53a9245a00a5b Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:38:22 +
Subject: [PATCH] [NFC][IR2Vec] Exposing helpers in IR2Vec Vocabulary
---
llvm/incl
@@ -0,0 +1,150 @@
+//===- llvm-ir2vec.cpp - IR2Vec Embedding Generation Tool
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -34,7 +42,7 @@
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
-using namespace ir2vec;
+using namespace llvm::ir2vec;
svkeerthy wrote:
Done
https://github.com/llvm/llvm-project/pull/147844
___
llvm-
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147844
>From f975249e07c16cf621dcea0189d400ebbc8da7bc Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:44:03 +
Subject: [PATCH] IR2Vec Tool Enhancements
---
llvm/test/lit.cfg.py
@@ -81,6 +136,68 @@ class IR2VecTool {
OS << LocalOutput;
}
+ /// Generate embeddings for the entire module
+ void generateEmbeddings(raw_ostream &OS) const {
+if (!Vocab->isValid()) {
+ OS << "Error: Vocabulary is not valid. IR2VecTool not initialized.\n";
+
@@ -163,6 +163,14 @@ class Vocabulary {
static constexpr unsigned MaxOperandKinds =
static_cast(OperandKind::MaxOperandKind);
+public:
svkeerthy wrote:
I just prefer to have constructor in the top :)
https://github.com/llvm/llvm-project/pull/147841
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147585
>From 5eaecce25822a1e4d1aa7e1bb200f6eff7f29234 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Mon, 7 Jul 2025 21:30:29 +
Subject: [PATCH] [NFC][IR2Vec] Minor refactoring of opcode access in
vocabulary
--
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147844
>From 4e92c2bc3b155eb9d9cf3634c1f59a1152d0ebae Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:44:03 +
Subject: [PATCH] IR2Vec Tool Enhancements
---
llvm/test/lit.cfg.py
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147842
>From 744b38b147f101cc5ea84e71f724c21713150a3d Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:39:39 +
Subject: [PATCH] IR2Vec Tool
---
llvm/test/CMakeLists.txt| 1 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147841
>From 1803736667b49978152af659a2d88a09824adf84 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:38:22 +
Subject: [PATCH] [NFC][IR2Vec] Exposing helpers in IR2Vec Vocabulary
---
llvm/incl
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147585
>From 5eaecce25822a1e4d1aa7e1bb200f6eff7f29234 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Mon, 7 Jul 2025 21:30:29 +
Subject: [PATCH] [NFC][IR2Vec] Minor refactoring of opcode access in
vocabulary
--
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147842
>From 744b38b147f101cc5ea84e71f724c21713150a3d Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:39:39 +
Subject: [PATCH] IR2Vec Tool
---
llvm/test/CMakeLists.txt| 1 +
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147844
>From 4e92c2bc3b155eb9d9cf3634c1f59a1152d0ebae Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:44:03 +
Subject: [PATCH] IR2Vec Tool Enhancements
---
llvm/test/lit.cfg.py
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147841
>From 1803736667b49978152af659a2d88a09824adf84 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:38:22 +
Subject: [PATCH] [NFC][IR2Vec] Exposing helpers in IR2Vec Vocabulary
---
llvm/incl
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147844
>From 6fd2dcac888426bc68570a6352e3f9c7b5fb358c Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:44:03 +
Subject: [PATCH] IR2Vec Tool Enhancements
---
llvm/test/lit.cfg.py
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147844
>From bf757c03868bf5e85966440408e41f5343727384 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:44:03 +
Subject: [PATCH] IR2Vec Tool Enhancements
---
llvm/test/tools/llvm-ir2vec/embeddin
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147844
>From bf757c03868bf5e85966440408e41f5343727384 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:44:03 +
Subject: [PATCH] IR2Vec Tool Enhancements
---
llvm/test/tools/llvm-ir2vec/embeddin
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/147842
>From 5f1f3fe9f7e07bb44802d3026fdf8ac3abf89ba2 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Wed, 9 Jul 2025 22:39:39 +
Subject: [PATCH] IR2Vec Tool
---
llvm/test/CMakeLists.txt| 1 +
@@ -447,21 +453,18 @@ void IR2VecVocabAnalysis::generateNumMappedVocab() {
// Handle Opcodes
std::vector NumericOpcodeEmbeddings(Vocabulary::MaxOpcodes,
Embedding(Dim, 0));
-#define HANDLE_INST(NUM, OPCODE, CLASS)
https://github.com/svkeerthy edited
https://github.com/llvm/llvm-project/pull/147842
___
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/147841
___
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/147841
___
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/147585
___
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/147585
___
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
@@ -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 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 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
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
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
@@ -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
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
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/
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 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 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 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/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/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/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 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
@@ -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
@@ -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
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 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 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
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 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:
> [!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
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
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
@@ -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 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 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/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
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 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/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
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 +
@@ -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
@@ -294,8 +294,8 @@ Error IR2VecVocabAnalysis::readVocabulary() {
return Error::success();
}
-IR2VecVocabAnalysis::IR2VecVocabAnalysis(Vocab &&Vocabulary)
-: Vocabulary(std::move(Vocabulary)) {}
+IR2VecVocabAnalysis::IR2VecVocabAnalysis(Vocab Vocabulary)
+: Vocabular
@@ -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
_
@@ -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
@@ -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
@@ -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];
+
+
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];
+
+
@@ -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
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/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 +
@@ -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 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
1 - 100 of 125 matches
Mail list logo