Skip to content
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

[TableGen][NFC] Remove MultiClass argument and Scoper in QualifyName #69297

Merged
merged 3 commits into from Oct 23, 2023

Conversation

wangpc-pp
Copy link
Contributor

MultiClass argument is not used any more since aa84326.

Besides, for maintainability, we should put the implementation of
qualifying name in one place (that is QualifyName function), so
Scoper is removed and we use IsMC to indicate that we are in a
multiclass.

MultiClass argument is not used any more since aa84326.

Besides, for maintainability, we should put the implementation of
qualifying name in one place (that is `QualifyName` function), so
`Scoper` is removed and we use `IsMC` to indicate that we are in a
multiclass.
…fyName

Add overloaded QualifyName for MultiClass
Copy link
Collaborator

@nhaehnle nhaehnle left a comment

Choose a reason for hiding this comment

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

LGTM, but see the inline suggestion.

I wonder if Record should have an IsMulticlass field to avoid the need for the IsMC boolean argument?

llvm/lib/TableGen/TGParser.cpp Outdated Show resolved Hide resolved
@wangpc-pp
Copy link
Contributor Author

I wonder if Record should have an IsMulticlass field to avoid the need for the IsMC boolean argument?

multiclass is represented by C++ class MultiClass, where there is a Record field Rec. I think this can be done, but some refactors are needed. I Will push another PR for it later.

@wangpc-pp wangpc-pp merged commit 1e43975 into llvm:main Oct 23, 2023
3 checks passed
@wangpc-pp wangpc-pp deleted the main-tablegen-remove-mc branch October 23, 2023 03:22
Guzhu-AMD pushed a commit to GPUOpen-Drivers/llvm-project that referenced this pull request Oct 26, 2023
Local branch amd-gfx 0f5dcae Merged main:86bb713142c3 into amd-gfx:fd6ee38e1eb7
Remote branch main 1e43975 [TableGen][NFC] Remove MultiClass argument and Scoper in QualifyName (llvm#69297)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants