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] Add record kind to Record class #69919

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

wangpc-pp
Copy link
Contributor

@wangpc-pp wangpc-pp commented Oct 23, 2023

enum RecordKind is added to indicate the kind of Record (which
can be a normal record definition, anonymous record definition,
class or multiclass).

Some arguments like IsMC and IsDefm are removed since we can
get the information from RecordKind.

Copy link
Member

@Artem-B Artem-B left a comment

Choose a reason for hiding this comment

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

Nice cleanup.
LGTM, modulo the nit about argument comments.

llvm/lib/TableGen/Record.cpp Outdated Show resolved Hide resolved
enum `RecordKind` is added to indicate the kind of Record (which
can be a normal record, anonymous record, class or multiclass).

Some arguments like `IsMC` and `IsDefm` are removed since we can
get the information from `RecordKind`.
Apply renaming suggestion and remove argument comments
@wangpc-pp wangpc-pp force-pushed the main-tablegen-record-is-multiclass branch from dd84a16 to d801282 Compare October 24, 2023 06:05
@wangpc-pp wangpc-pp merged commit d1d3aa3 into llvm:main Oct 24, 2023
2 of 3 checks passed
@wangpc-pp wangpc-pp deleted the main-tablegen-record-is-multiclass branch October 24, 2023 06:28
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.

3 participants