[LLVMdev] Inconsistency in the LLVM docs
Villmow, Micah
Micah.Villmow at amd.com
Wed Oct 10 11:11:26 PDT 2012
http://llvm.org/docs/LangRef.html#i_inttoptr
The 'inttoptr' instruction takes an integer<http://llvm.org/docs/LangRef.html#t_integer> value to cast, and a type to cast it to, which must be a pointer<http://llvm.org/docs/LangRef.html#t_pointer> type.
The final example is:
%Z = inttoptr <4 x i32> %G to <4 x i8*>; yields truncation of vector G to four pointers
The result is not a pointer type, but a vector of pointer types. This violates the restriction of the arguments.
Is this an overview, or should this instruction type be illegal?
Micah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121010/a5ff2319/attachment.html>
More information about the llvm-dev
mailing list