Skip to content

Commit 4e000e3

Browse files
committed
Move where emitRegClassByHwModeDecoders is called
1 parent 7c5dfa8 commit 4e000e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/utils/TableGen/DecoderEmitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,6 @@ void DecoderEmitter::emitRegClassByHwModeDecoders(
909909
void DecoderEmitter::emitDecoderFunction(formatted_raw_ostream &OS,
910910
const DecoderSet &Decoders,
911911
unsigned BucketBitWidth) const {
912-
emitRegClassByHwModeDecoders(OS);
913-
914912
// The decoder function is just a big switch statement or a table of function
915913
// pointers based on the input decoder index.
916914

@@ -1991,6 +1989,8 @@ template <typename T> constexpr uint32_t InsnBitWidth = 0;
19911989
emitInstrLenTable(OS, InstrLen);
19921990
}
19931991

1992+
emitRegClassByHwModeDecoders(OS);
1993+
19941994
// Map of (bitwidth, namespace, hwmode) tuple to encoding IDs.
19951995
// Its organized as a nested map, with the (namespace, hwmode) as the key for
19961996
// the inner map and bitwidth as the key for the outer map. We use std::map

0 commit comments

Comments
 (0)