Skip to content

Commit b1be82c

Browse files
toppercgithub-actions[bot]
authored andcommitted
Automerge: [RISCV] Reduce dynamic relocations for RISCVOpcodesList table. NFC
Inline the strings directly into the table instead of storing a pointer. Similar to what was done for other searchable tables in the last couple months.
2 parents 4baa649 + 63ecb01 commit b1be82c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,8 @@ struct SysReg {
484484

485485
namespace RISCVInsnOpcode {
486486
struct RISCVOpcode {
487-
const char *Name;
488-
unsigned Value;
487+
char Name[10];
488+
uint8_t Value;
489489
};
490490

491491
#define GET_RISCVOpcodesList_DECL

0 commit comments

Comments
 (0)