<div dir="ltr"><div><div><div>Hi Developers,<br><br></div>I have started developing LLVM backend for my Target.<br>Unfortunately, I hit quite a few times very cryptic error messages when compiling <br>with TableGen.<br> The most cryptic error message was when compiling with TableGen, with the option <br>-gen-emitter . Here I got the following error message:<br>llvm-tblgen: /home/varun/workspace-llvm/llvm/utils/TableGen/CodeGenInstruction.h:186: std::pair<unsigned int, unsigned int> llvm::CGIOperandList::getSubOperandNumber(unsigned int) const: Assertion `i < OperandList.size() && "Invalid flat operand #"' failed.<br>0  llvm-tblgen     0x0000000000641025<br>1  llvm-tblgen     0x0000000000641380<br>2  llvm-tblgen     0x000000000063f656<br>3  llvm-tblgen     0x000000000064099d<br>4  libpthread.so.0 0x00002abdd763b330<br>5  libc.so.6       0x00002abdd84ccc37 gsignal + 55<br>6  libc.so.6       0x00002abdd84d0028 abort + 328<br>7  libc.so.6       0x00002abdd84c5bf6<br>8  libc.so.6       0x00002abdd84c5ca2<br>9  llvm-tblgen     0x000000000042aa36<br>10 llvm-tblgen     0x000000000045f8f1<br>11 llvm-tblgen     0x0000000000460215<br>12 llvm-tblgen     0x0000000000460996<br>13 llvm-tblgen     0x0000000000460d27<br>14 llvm-tblgen     0x00000000005ce3df<br>15 llvm-tblgen     0x0000000000660bf9<br>16 llvm-tblgen     0x00000000005cea27<br>17 libc.so.6       0x00002abdd84b7f45 __libc_start_main + 245<br>18 llvm-tblgen     0x00000000004059e9<br>Stack dump:<br>0.    Program arguments: ../../../bin/llvm-tblgen -gen-emitter -I /home/varun/workspace-llvm/llvm/lib/Target/LEG -I /home/varun/workspace-llvm/llvm/lib/Target -I /home/varun/workspace-llvm/llvm/include /home/varun/workspace-llvm/llvm/lib/Target/LEG/LEG.td -o /home/varun/workspace-llvm/llvm-build/lib/Target/LEG/LEGGenMCCodeEmitter.inc.tmp <br>Aborted (core dumped)<br><br></div>Please help me to solve this error.<br></div>Thank you in advance<br><br clear="all"><div><div><div><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br></div><div><br></div>Thanks and Regards<div>Varun</div></div></div></div></div></div>
</div></div></div></div></div>