aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <Krzysztof.Parzyszek@amd.com>2025-01-29 11:54:52 -0600
committerGitHub <noreply@github.com>2025-01-29 11:54:52 -0600
commitc8593239a3b5a8864c2a315db33bbcb7b68f3da0 (patch)
tree05b6309a287d8a667dcebfbda8bc5af56fe88809 /llvm/lib/Object/ELFObjectFile.cpp
parentaa2952165cd1808dab2bb49b97becc097f4c9cac (diff)
downloadllvm-c8593239a3b5a8864c2a315db33bbcb7b68f3da0.zip
llvm-c8593239a3b5a8864c2a315db33bbcb7b68f3da0.tar.gz
llvm-c8593239a3b5a8864c2a315db33bbcb7b68f3da0.tar.bz2
[flang][OpenMP] Make parsing of trait properties more context-sensitive (#122900)
A trait poperty can be one of serveral alternatives (name, expression, etc.), and each property in a list was parsed as if it could be any of these alternatives independently from other properties. This made the parsing vulnerable to certain ambiguities in the trait grammar (provided in the OpenMP spec). At the same time the OpenMP spec gives the expected types of properties for almost every trait: all properties listed for a given trait are usually of the same type, e.g. names, clauses, etc. Incorporate these restrictions into the parser, and additionally use property extensions as the fallback if the parsing of the expected property type failed. This is intended to allow the parser to succeed, and instead let the semantic-checking code emit a more user-friendly message.
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions