diff options
author | Craig Topper <craig.topper@sifive.com> | 2025-07-25 14:15:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-25 14:15:02 -0700 |
commit | 18397f60633efefcee413d68a1e80cb726bb4d16 (patch) | |
tree | 43ac949cff60bba0bb25b087cc6c66b3937aa956 /llvm/unittests/ExecutionEngine/Orc/ThreadSafeModuleTest.cpp | |
parent | 9e09c4dd52a093501fe361890bd2924daf79e50e (diff) | |
download | llvm-18397f60633efefcee413d68a1e80cb726bb4d16.zip llvm-18397f60633efefcee413d68a1e80cb726bb4d16.tar.gz llvm-18397f60633efefcee413d68a1e80cb726bb4d16.tar.bz2 |
[RISCV] Use Record from CompressPat in compress/uncompress functions. (#150664)
Instead of using the Record from the instruction definition, use the
Record specified in the CompressPat DAG. This will allow us to use
Records that are subsets of both the source and destination.
I want to use this to merge the C_*_HINT instructions back into their
regular non-HINT versions, but prevent those encodings from being part
of compress/uncompress. For example, we will use GPRNoX0 for the C_ADDI
CompressPat while both C_ADDI and ADDI will use GPR in their instruction
definitions.
To do this I've recorded the original DAG Record in the OperandMap using
a struct in the union to represent the 3 fields needed for an Operand.
Previously we stored TiedOpIdx outside the union, but only used it for
Operand.
There is a verification hole here where we don't have any way to check
that an immediate predicate is a subset of an instruction predicate at
tablegen time. Prior to #148660 we had this hole in one direction, but
that patch made it in two directions. I'm not sure if this patch makes
it any worse. Now we're using what is in the CompressPat where before we
were using whatever was in the instructions and ignoring the predicate
in the CompressPat.
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/ThreadSafeModuleTest.cpp')
0 files changed, 0 insertions, 0 deletions