[all-commits] [llvm/llvm-project] d56f23: [AsmParser] Replace starIsStartOfStatement with to...
Jason Eckhardt via All-commits
all-commits at lists.llvm.org
Wed May 7 10:36:40 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d56f23e4083d8c5aaf123da0f3adfeda50e47417
https://github.com/llvm/llvm-project/commit/d56f23e4083d8c5aaf123da0f3adfeda50e47417
Author: Jason Eckhardt <jeckhardt at nvidia.com>
Date: 2025-05-07 (Wed, 07 May 2025)
Changed paths:
M llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h
M llvm/lib/MC/MCParser/AsmParser.cpp
M llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp
Log Message:
-----------
[AsmParser] Replace starIsStartOfStatement with tokenIsStartOfStatement. (#137997)
Currently `MCTargetAsmParser::starIsStartOfStatement` checks for `*` at
the start of the statement. There are other (currently) downstream
back-ends that need the same treatment for other tokens. Instead of
introducing bespoke APIs for each such token, we generalize (and rename)
starIsStartOfStatement as tokenIsStartOfStatement which takes the token
of interest as an argument.
Update the BPF AsmParser (the only upstream consumer today) to use the
new version.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list