[llvm-dev] type information about instruction

Anastasiya Ruzhanskaya via llvm-dev llvm-dev at lists.llvm.org
Fri Jul 21 04:49:59 PDT 2017

I would like to keep info about size and type info of all instructions (
and Values at the same time). I can do this by extracting type of the
Values, but if I have still some unused instructions , I can't keep track
on them. I try to convert them to Value and get the type or simply get the
type of instruction, but have the following error:

Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is
unsized!"' failed.

This is second or instruction:
  %1 = or i32 10, 20
  %2 = or i32 %1, 10
  ret i32 %1

What can be done in this case?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170721/6ec913d1/attachment.html>

More information about the llvm-dev mailing list