-
Notifications
You must be signed in to change notification settings - Fork 14.9k
[MIR2Vec] Refactor MIR vocabulary to use opcode-based indexing #161713
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+62
−37
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Oct 2, 2025
abf8984
to
c37a901
Compare
39467a8
to
69a74b6
Compare
69a74b6
to
747fe0f
Compare
c37a901
to
0ebc739
Compare
747fe0f
to
049be7b
Compare
5778be1
to
ffc59e7
Compare
049be7b
to
3f44240
Compare
ffc59e7
to
8a80321
Compare
3f44240
to
e0d0999
Compare
8a80321
to
4864150
Compare
mtrofin
approved these changes
Oct 7, 2025
e0d0999
to
9565a4d
Compare
4864150
to
671c686
Compare
Base automatically changed from
users/svkeerthy/10-01-introducing_mir2vec
to
main
October 7, 2025 20:45
8e371bd
to
4d87a59
Compare
4d87a59
to
0afa19d
Compare
Merge activity
|
This introduces UB. In the error case, the nullptr in:
is passed to the constructor which immediately dereferences it and stores it into a reference (invalid for nullptr):
Either the TII member needs to be a pointer, or else the constructor can't be called with nullptr. |
Thanks @jyknight. I will put up a patch shortly. |
svkeerthy
added a commit
that referenced
this pull request
Oct 9, 2025
Added factory methods for vocabulary creation. This also would fix UB issue introduced by #161713
svkeerthy
added a commit
that referenced
this pull request
Oct 9, 2025
Refactor MIRVocabulary to improve opcode lookup and add Section enum for better organization. This is useful for embedder lookups (next patches) (Tracking issue - #141817)
svkeerthy
added a commit
that referenced
this pull request
Oct 9, 2025
Added factory methods for vocabulary creation. This also would fix UB issue introduced by #161713
clingfei
pushed a commit
to clingfei/llvm-project
that referenced
this pull request
Oct 10, 2025
Added factory methods for vocabulary creation. This also would fix UB issue introduced by llvm#161713
DharuniRAcharya
pushed a commit
to DharuniRAcharya/llvm-project
that referenced
this pull request
Oct 13, 2025
Added factory methods for vocabulary creation. This also would fix UB issue introduced by llvm#161713
akadutta
pushed a commit
to akadutta/llvm-project
that referenced
this pull request
Oct 14, 2025
Added factory methods for vocabulary creation. This also would fix UB issue introduced by llvm#161713
This was referenced Oct 17, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refactor MIRVocabulary to improve opcode lookup and add Section enum for better organization. This is useful for embedder lookups (next patches)
(Tracking issue - #141817)