aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorErik Jonsson <erik.j.jonsson@ericsson.com>2023-10-20 07:21:24 +0200
committerGitHub <noreply@github.com>2023-10-20 07:21:24 +0200
commitf8325f12606d7c8510abbf933bf95983bf66da7d (patch)
tree15eed529574de5f0aef9f09220697cadf12ac486 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent833a8db5b1e3922d6a4a0a158614af884a49fc02 (diff)
downloadllvm-f8325f12606d7c8510abbf933bf95983bf66da7d.zip
llvm-f8325f12606d7c8510abbf933bf95983bf66da7d.tar.gz
llvm-f8325f12606d7c8510abbf933bf95983bf66da7d.tar.bz2
[Tablegen] Bugfix and refactor VarLenCodeEmitter HwModes. (#68795)
VarLenCodeEmitterGen produced code that did not compile if using alternative encoding in different HwModes. It's not possbile to assign unsigned **Index = Index_<mode>[][2] = { ... }; As a fix, Index and InstBits where removed in favor of mode specific getInstBits_<mode> functions since this is the only place the arrays are accessed. Handling of HwModes is now concentrated to the VarLenCodeEmitterGen::run method reducing the overall amount of code and enabling other types of alternative encodings not related to HwModes. Added a test for VarLenCodeEmitterGen HwModes. Make sure that HwModes are supported in the same way they are supported for the standard CodeEmitter. It should be possible to define instructions with universal encoding across modes, distinct encodings for each mode or only define encodings for some modes. Fixed indentation in generated code.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions