Skip to content

Commit 5ee67ee

Browse files
authored
[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.
1 parent 03697cf commit 5ee67ee

File tree

1 file changed

+94
-129
lines changed

1 file changed

+94
-129
lines changed

0 commit comments

Comments
 (0)