diff options
author | Jason Eckhardt <jeckhardt@nvidia.com> | 2024-03-12 16:01:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-12 16:01:58 -0500 |
commit | e9492ccae085b5feb850ff17a96fe8211f7f6d7d (patch) | |
tree | 06afba826609c10d247ca468bd8efac3ea6fb819 /llvm/lib/Object/COFFImportFile.cpp | |
parent | 54f631d11640732af0dc9c2aa53af4e118d9fe36 (diff) | |
download | llvm-e9492ccae085b5feb850ff17a96fe8211f7f6d7d.zip llvm-e9492ccae085b5feb850ff17a96fe8211f7f6d7d.tar.gz llvm-e9492ccae085b5feb850ff17a96fe8211f7f6d7d.tar.bz2 |
[TableGen] DecoderEmitter clean-ups and modernization. (#84832)
The decoder emitter is showing some signs of age. This patch makes a few
kinds of clean-ups:
- Use ranged-for more widely, including using enumerate() for those
loops maintaining a loop index along with the items.
- Reduce the number of arguments to fieldFromInsn (removes an out
reference parameter: CodingStandards). The insn_t argument to insnWithID
can/should probably be removed soon too since modern C++ allows us to
return a local container without a copy.
- Use raw strings for the large emitted code segments. This enhances
both readability and modifiability.
Diffstat (limited to 'llvm/lib/Object/COFFImportFile.cpp')
0 files changed, 0 insertions, 0 deletions