aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorIvan Kosarev <ivan.kosarev@amd.com>2022-11-10 12:19:53 +0000
committerIvan Kosarev <ivan.kosarev@amd.com>2022-11-10 12:48:11 +0000
commitaf6b1f797f946c560f8a7b0e647f51e23d4c666f (patch)
tree3d96e92d157c7d0fd0c2334d0decdc84984f1123 /flang/lib/Frontend/CompilerInvocation.cpp
parent30498cf7c46f90db0f67ff01f0246860e55be0f2 (diff)
downloadllvm-af6b1f797f946c560f8a7b0e647f51e23d4c666f.zip
llvm-af6b1f797f946c560f8a7b0e647f51e23d4c666f.tar.gz
llvm-af6b1f797f946c560f8a7b0e647f51e23d4c666f.tar.bz2
[AsmParser] Match mandatory operands following optional operands.
Currently, the asm parser stops matching instruction operands as soon as the first optional operand is encountered. This leads to the need for custom checks on missing mandatory operands that come after optional operands. The patch changes the parser to always match all optional and mandatory instruction operands, thus making the custom checks unnecessary. This is particularly useful for the AMDGPU backend where we have numerous optional instruction modifiers. Reviewed By: dp Differential Revision: https://reviews.llvm.org/D137549
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions