Skip to content

Commit b718d65

Browse files
committed
Move where emitRegClassByHwModeDecoders is called
1 parent c9cafed commit b718d65

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
@@ -910,8 +910,6 @@ void DecoderEmitter::emitRegClassByHwModeDecoders(
910910
void DecoderEmitter::emitDecoderFunction(formatted_raw_ostream &OS,
911911
const DecoderSet &Decoders,
912912
unsigned BucketBitWidth) const {
913-
emitRegClassByHwModeDecoders(OS);
914-
915913
// The decoder function is just a big switch statement or a table of function
916914
// pointers based on the input decoder index.
917915

@@ -2080,6 +2078,8 @@ template <typename T> constexpr uint32_t InsnBitWidth = 0;
20802078
emitInstrLenTable(OS, InstrLen);
20812079
}
20822080

2081+
emitRegClassByHwModeDecoders(OS);
2082+
20832083
// Map of (bitwidth, namespace, hwmode) tuple to encoding IDs.
20842084
// Its organized as a nested map, with the (namespace, hwmode) as the key for
20852085
// the inner map and bitwidth as the key for the outer map. We use std::map

0 commit comments

Comments
 (0)