[llvm-dev] What can cause llc to throw an error for instruction numbering?
Kaarthik Alagapan via llvm-dev
llvm-dev at lists.llvm.org
Mon Jul 8 10:17:44 PDT 2019
I duplicated an instruction in llvm and changed its opcode by following the guide at https://llvm.org/docs/ExtendingLLVM.html (Adding a new instruction) and then fixed the dependencies that caused an error when building. Now the modified llvm builds but throws but now throws the error:
llc: error: llc: check.ll:12:3: error: instruction expected to be numbered '%5'
%4 = alloca i32, align 4
What changes/modification would cause this error to show up? I was thinking that SelectionDAGBuilder would cause this as it parses IR to an optimized version but not sure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190708/82638812/attachment.html>
More information about the llvm-dev
mailing list