aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2024-09-13 17:30:19 -0700
committerGitHub <noreply@github.com>2024-09-13 17:30:19 -0700
commitd3cdf0f2220cb913092934d7bf08c89951d56f8d (patch)
treef0b03d4577effdbc859d2fdb67f8527643946562 /clang/lib/CodeGen/CodeGenAction.cpp
parent0e34dbb4f452013eab89a0a8f04a436ff6c408d4 (diff)
downloadllvm-d3cdf0f2220cb913092934d7bf08c89951d56f8d.zip
llvm-d3cdf0f2220cb913092934d7bf08c89951d56f8d.tar.gz
llvm-d3cdf0f2220cb913092934d7bf08c89951d56f8d.tar.bz2
[LLVM][Option] Refactor option name comparison (#108219)
Move common functions shared by TableGen Option Emitter and Options library to Support: - Move `StrCmpOptionName` and base it on the existing version in OptTable.cpp, with an additional mode to control fall back to case insensitive comparison. - Add `StrCmpOptionPrefixes` to compare prefixes and use zip() to iterate through lists of prefixes. - Rename `CompareOptionRecords` to less ambiguous name `IsOptionRecordLess`. - Merge 2 back-to-back ifs with same condition in `IsOptionRecordLess`. Fixes https://github.com/llvm/llvm-project/issues/107723
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
0 files changed, 0 insertions, 0 deletions