Continuing on from D105780, this should be the last major bit of attribute cleanup. Currently, LLParser implements attribute parsing for functions, parameters and returns separately, enumerating all supported (and unsupported) attributes each time. This patch extracts the common parsing logic, and performs a check afterwards whether the attribute is valid in the given position. Parameters and returns are handled together, while function attributes need slightly different logic to support attribute groups.
Details
Details
- Reviewers
aeubanks - Group Reviewers
Restricted Project - Commits
- rGf59209a86eaf: [AsmParser] Unify parsing of attributes
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo