<div dir="ltr">See the commits here: <a href="https://reviews.llvm.org/D52100">https://reviews.llvm.org/D52100</a><div>This patch adds support for instructions bigger than 64 bits.  A number of the function signatures change.</div><div><br></div><div>Steve</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 27, 2020 at 7:54 PM Zhang via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><font>Hi:</font></div><div><font>For now I've already successfully generated DisassemblerTable from TableGen with ``-gen-disassembler`` which contains the following function:</font></div><div><font><br></font></div><div><font>```</font></div><div><font><div>template<typename InsnType></div><div>static DecodeStatus decodeInstruction(const uint8_t DecodeTable[], MCInst &MI,</div><div>                                      InsnType insn, uint64_t Address,</div><div>                                      const void *DisAsm,</div><div>                                      const MCSubtargetInfo &STI)</div></font></div><div><font>```</font></div><div><font><br></font></div><div>From my understanding here, insn is supposed to contain the actual instruction.</div><div>However in our ISA, instructions can exceed the limit of uint64_t, and passing APInt as InsnType fails to compile because this function calls ``InsnType CurFieldValue = 0`` which is invalid for APInt.</div><div>My question is, which type should I use here?</div><div><br></div><div><br></div><div>Zhang</div><div><u></u><u></u></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>