This updates the parsing methods in AArch64's Target Parser to make use
of optional returns instead of "invalid" enum values, making the API's
behaviour clearer.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D142539
[NFC][AArch64] Use optional returns in target parser instead of 'invalid' objects ClosedPublic Authored by pratlucas on Jan 25 2023, 6:52 AM.
Details Summary This updates the parsing methods in AArch64's Target Parser to make use
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 25 2023, 6:52 AM This revision is now accepted and ready to land.Jan 25 2023, 9:54 AM
pratlucas added inline comments. This revision was landed with ongoing or failed builds.Jan 27 2023, 4:36 AM Closed by commit rG9ea00fc74c3c: [NFC][AArch64] Use optional returns in target parser instead of 'invalid'… (authored by pratlucas). · Explain Why This revision was automatically updated to reflect the committed changes. pratlucas marked an inline comment as done.
Revision Contents
Diff 492704 clang/lib/Basic/Targets/AArch64.cpp
clang/lib/Driver/ToolChains/Arch/AArch64.cpp
llvm/include/llvm/TargetParser/AArch64TargetParser.h
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/lib/TargetParser/AArch64TargetParser.cpp
llvm/unittests/TargetParser/TargetParserTest.cpp
|
I think we still need to test getDefaultExtensions, unless we're deleting it.