Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[NFC][IR2Vec] Fix warnings on MSVC compilation#148911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
svkeerthy merged 1 commit intomainfromusers/svkeerthy/07-15-warning-fix
Jul 15, 2025

Conversation

svkeerthy
Copy link
Contributor

No description provided.

@llvmbotllvmbot added mlgo llvm:analysisIncludes value tracking, cost tables and constant folding labelsJul 15, 2025
@llvmbot
Copy link
Member

@llvm/pr-subscribers-llvm-analysis

Author: S. VenkataKeerthy (svkeerthy)

Changes

Full diff:https://github.com/llvm/llvm-project/pull/148911.diff

1 Files Affected:

  • (modified) llvm/lib/Analysis/IR2Vec.cpp (+4-3)
diff --git a/llvm/lib/Analysis/IR2Vec.cpp b/llvm/lib/Analysis/IR2Vec.cppindex cfe0c566e2adc..898bf5b202feb 100644--- a/llvm/lib/Analysis/IR2Vec.cpp+++ b/llvm/lib/Analysis/IR2Vec.cpp@@ -304,10 +304,11 @@ Vocabulary::VocabVector Vocabulary::createDummyVocabForTest(unsigned Dim) {   float DummyVal = 0.1f;   // Create a dummy vocabulary with entries for all opcodes, types, and   // operand-  for (unsigned _ : seq(0u, Vocabulary::MaxOpcodes + Vocabulary::MaxTypeIDs +-                                Vocabulary::MaxOperandKinds)) {+  for ([[maybe_unused]] unsigned _ :+       seq(0u, Vocabulary::MaxOpcodes + Vocabulary::MaxTypeIDs ++                   Vocabulary::MaxOperandKinds)) {     DummyVocab.push_back(Embedding(Dim, DummyVal));-    DummyVal += 0.1;+    DummyVal += 0.1f;   }   return DummyVocab; }

@llvmbot
Copy link
Member

@llvm/pr-subscribers-mlgo

Author: S. VenkataKeerthy (svkeerthy)

Changes

Full diff:https://github.com/llvm/llvm-project/pull/148911.diff

1 Files Affected:

  • (modified) llvm/lib/Analysis/IR2Vec.cpp (+4-3)
diff --git a/llvm/lib/Analysis/IR2Vec.cpp b/llvm/lib/Analysis/IR2Vec.cppindex cfe0c566e2adc..898bf5b202feb 100644--- a/llvm/lib/Analysis/IR2Vec.cpp+++ b/llvm/lib/Analysis/IR2Vec.cpp@@ -304,10 +304,11 @@ Vocabulary::VocabVector Vocabulary::createDummyVocabForTest(unsigned Dim) {   float DummyVal = 0.1f;   // Create a dummy vocabulary with entries for all opcodes, types, and   // operand-  for (unsigned _ : seq(0u, Vocabulary::MaxOpcodes + Vocabulary::MaxTypeIDs +-                                Vocabulary::MaxOperandKinds)) {+  for ([[maybe_unused]] unsigned _ :+       seq(0u, Vocabulary::MaxOpcodes + Vocabulary::MaxTypeIDs ++                   Vocabulary::MaxOperandKinds)) {     DummyVocab.push_back(Embedding(Dim, DummyVal));-    DummyVal += 0.1;+    DummyVal += 0.1f;   }   return DummyVocab; }

Copy link
Collaborator

@AaronBallmanAaronBallman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM!

@svkeerthysvkeerthy merged commitfad0fbc intomainJul 15, 2025
10 of 12 checks passed
@svkeerthysvkeerthy deleted the users/svkeerthy/07-15-warning-fix branchJuly 15, 2025 17:54
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@AaronBallmanAaronBallmanAaronBallman approved these changes

Assignees
No one assigned
Labels
llvm:analysisIncludes value tracking, cost tables and constant foldingmlgo
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@svkeerthy@llvmbot@AaronBallman

[8]ページ先頭

©2009-2025 Movatter.jp