aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2025-05-14 12:51:07 -0700
committerGitHub <noreply@github.com>2025-05-14 12:51:07 -0700
commit5ee67ee6bc45979eb81b087c6a700573e2ab61db (patch)
tree37c625a2bd092d2383e8308d403c85f04405e748 /clang/lib/Frontend/CompilerInvocation.cpp
parent03697cf8fce89e8841c67543aa0e4ecebe91387e (diff)
downloadllvm-5ee67ee6bc45979eb81b087c6a700573e2ab61db.zip
llvm-5ee67ee6bc45979eb81b087c6a700573e2ab61db.tar.gz
llvm-5ee67ee6bc45979eb81b087c6a700573e2ab61db.tar.bz2
[LLVM][TableGen] Code cleanup in FastISelEmitter.cpp (#139644)
- Use StringRef instead of std::string for `InstructionMemo::Name`. - Use range for loops, zip_equal and structured bindings in loops. - Use llvm::any_of instead of manual loops. - Use ListSeparator. - Remove {} around single-line if-else chains. - Use ArrayRef<> instead of const vector reference for function args. - Change `getLegalCName` to accept a `StringRef` to avoid StringRef->std::string casting in several places. - Use StringRef instead of std::string for `OpcodeName` (and in associated maps). Tested by verifying no changes in .inc files with and without this change.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions