diff options
author | Rahul Joshi <rjoshi@nvidia.com> | 2025-02-10 08:16:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-10 08:16:12 -0800 |
commit | 8380b5c7494e5511dfdc944108ff316453a36061 (patch) | |
tree | f4eac425da5348b53f442447a26dff06975e4667 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 71fcc825b4e271b7608b54de27ae69fe70f00fad (diff) | |
download | llvm-8380b5c7494e5511dfdc944108ff316453a36061.zip llvm-8380b5c7494e5511dfdc944108ff316453a36061.tar.gz llvm-8380b5c7494e5511dfdc944108ff316453a36061.tar.bz2 |
[TableGen][InstrInfo] Cull mapping that have not been enabled/not needed (#126137)
- Detect whether logical operand mapping/named operand mappings have
been enabled in a previous pass over instructions and execute the
relevant emission code only if those mappings are enabled.
- For these mappings, skip the fixed set of predefined instructions as
they won't have these mappings enabled.
- Emit operand type mappings only for X86 target, as they are only used
by X86 and look for X86 specific `X86MemOperand`.
- Cleanup `emitOperandTypeMappings` code: remove code to handle empty
instruction list and use range for loops.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions