Skip to content

Conversation

@svkeerthy
Copy link
Contributor

@svkeerthy svkeerthy commented Oct 6, 2025

Implement MIR2Vec embedder for generating vector representations of Machine IR instructions, basic blocks, and functions. This patch introduces changes necessary to embed machine opcodes. Machine operands would be handled incrementally in the upcoming patches.

Copy link
Contributor Author

svkeerthy commented Oct 6, 2025

@github-actions
Copy link

github-actions bot commented Oct 6, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@svkeerthy svkeerthy changed the title MIR2Vec embedding [MIR2Vec] Add embedder for machine instructions Oct 6, 2025
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-06-mir2vec_embedding branch from b7a8ff7 to dc7d70a Compare October 6, 2025 21:30
@svkeerthy svkeerthy marked this pull request as ready for review October 6, 2025 21:31
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-06-mir2vec_embedding branch from dc7d70a to 5accfaf Compare October 6, 2025 22:38
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-02-mirvocabulary_changes branch from 0ebc739 to 5778be1 Compare October 6, 2025 22:38
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-06-mir2vec_embedding branch from 5accfaf to 7bdb214 Compare October 6, 2025 22:39
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-02-mirvocabulary_changes branch from 5778be1 to ffc59e7 Compare October 6, 2025 22:39
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-06-mir2vec_embedding branch from 7bdb214 to 699ab74 Compare October 6, 2025 23:29
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-02-mirvocabulary_changes branch from ffc59e7 to 8a80321 Compare October 6, 2025 23:29
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-06-mir2vec_embedding branch from 699ab74 to e28efcc Compare October 6, 2025 23:35
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-02-mirvocabulary_changes branch from 8a80321 to 4864150 Compare October 6, 2025 23:35
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-06-mir2vec_embedding branch from e28efcc to 6fa7a86 Compare October 7, 2025 20:01
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-02-mirvocabulary_changes branch from 4864150 to 671c686 Compare October 7, 2025 20:01
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-06-mir2vec_embedding branch from 6fa7a86 to c58a415 Compare October 7, 2025 20:10
@svkeerthy svkeerthy requested a review from mtrofin October 7, 2025 20:12
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-02-mirvocabulary_changes branch from 671c686 to 6a43c34 Compare October 7, 2025 20:48
@svkeerthy svkeerthy requested a review from mtrofin October 9, 2025 18:49
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-06-mir2vec_embedding branch 2 times, most recently from 19bdf14 to 20f0181 Compare October 13, 2025 22:14
@svkeerthy svkeerthy force-pushed the users/svkeerthy/10-06-mir2vec_embedding branch from 55a6a68 to 3fde54f Compare October 21, 2025 00:23
Copy link
Contributor Author

svkeerthy commented Oct 21, 2025

Merge activity

  • Oct 21, 5:12 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Oct 21, 5:14 PM UTC: @svkeerthy merged this pull request with Graphite.

@svkeerthy svkeerthy merged commit 3c77b49 into main Oct 21, 2025
10 checks passed
@svkeerthy svkeerthy deleted the users/svkeerthy/10-06-mir2vec_embedding branch October 21, 2025 17:14
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 21, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-win-fast running on as-builder-3 while building llvm at step 7 "test-build-unified-tree-check-llvm-unit".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/2/builds/36602

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-llvm-unit) failure: test (failure)
******************** TEST 'LLVM-Unit :: CodeGen/./CodeGenTests.exe/73/74' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\unittests\CodeGen\.\CodeGenTests.exe-LLVM-Unit-10904-73-74.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=74 GTEST_SHARD_INDEX=73 C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\unittests\CodeGen\.\CodeGenTests.exe
--

Script:
--
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\unittests\CodeGen\.\CodeGenTests.exe --gtest_filter=MIR2VecEmbeddingTestFixture.TestSymbolicEmbedder
--
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\llvm\unittests\CodeGen\MIR2VecTest.cpp(68): Skipped
x86_64-unknown-linux-gnu target triple not available; Skipping test

unknown file: error: SEH exception with code 0x3221225477 thrown in SetUp().
Stack trace:



unknown file
SEH exception with code 0x3221225477 thrown in SetUp().
Stack trace:




********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 21, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-aarch64-darwin running on doug-worker-4 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/29470

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM-Unit :: CodeGen/./CodeGenTests/0/19' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/unittests/CodeGen/./CodeGenTests-LLVM-Unit-69057-0-19.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=19 GTEST_SHARD_INDEX=0 /Volumes/RAMDisk/buildbot-root/aarch64-darwin/build/unittests/CodeGen/./CodeGenTests
--

Note: This is test shard 1 of 19.
[==========] Running 16 tests from 15 test suites.
[----------] Global test environment set-up.
[----------] 1 test from AllocationOrderTest
[ RUN      ] AllocationOrderTest.Basic
[       OK ] AllocationOrderTest.Basic (0 ms)
[----------] 1 test from AllocationOrderTest (0 ms total)

[----------] 1 test from AsmPrinterEmitDwarfStringOffsetTest
[ RUN      ] AsmPrinterEmitDwarfStringOffsetTest.DWARF64
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp:180: Skipped


[  SKIPPED ] AsmPrinterEmitDwarfStringOffsetTest.DWARF64 (0 ms)
[----------] 1 test from AsmPrinterEmitDwarfStringOffsetTest (0 ms total)

[----------] 1 test from DIEHashTest
[ RUN      ] DIEHashTest.ReusedType
[       OK ] DIEHashTest.ReusedType (0 ms)
[----------] 1 test from DIEHashTest (0 ms total)

[----------] 1 test from DroppedVariableStatsMIR
[ RUN      ] DroppedVariableStatsMIR.InlinedAtShared
[       OK ] DroppedVariableStatsMIR.InlinedAtShared (6 ms)
[----------] 1 test from DroppedVariableStatsMIR (6 ms total)

[----------] 1 test from InstrRefLDVTest
[ RUN      ] InstrRefLDVTest.pickVPHILocBadlyNestedLoops
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/unittests/CodeGen/InstrRefLDVTest.cpp:81: Skipped


[  SKIPPED ] InstrRefLDVTest.pickVPHILocBadlyNestedLoops (0 ms)
[----------] 1 test from InstrRefLDVTest (0 ms total)

[----------] 1 test from LowLevelTypeTest
[ RUN      ] LowLevelTypeTest.ConstExpr
[       OK ] LowLevelTypeTest.ConstExpr (0 ms)
[----------] 1 test from LowLevelTypeTest (0 ms total)

[----------] 1 test from IsIdenticalToTest
[ RUN      ] IsIdenticalToTest.DifferentDefs
[       OK ] IsIdenticalToTest.DifferentDefs (0 ms)
[----------] 1 test from IsIdenticalToTest (0 ms total)

...

svkeerthy added a commit that referenced this pull request Oct 21, 2025
Fixes test failure issues (caused by #162161) in Windows buildbots.
Lukacma pushed a commit to Lukacma/llvm-project that referenced this pull request Oct 29, 2025
Implement MIR2Vec embedder for generating vector representations of Machine IR instructions, basic blocks, and functions. This patch introduces changes necessary to *embed* machine opcodes. Machine operands would be handled incrementally in the upcoming patches.
Lukacma pushed a commit to Lukacma/llvm-project that referenced this pull request Oct 29, 2025
Fixes test failure issues (caused by llvm#162161) in Windows buildbots.
aokblast pushed a commit to aokblast/llvm-project that referenced this pull request Oct 30, 2025
Implement MIR2Vec embedder for generating vector representations of Machine IR instructions, basic blocks, and functions. This patch introduces changes necessary to *embed* machine opcodes. Machine operands would be handled incrementally in the upcoming patches.
aokblast pushed a commit to aokblast/llvm-project that referenced this pull request Oct 30, 2025
Fixes test failure issues (caused by llvm#162161) in Windows buildbots.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants