[LLVMdev] Inconsistency in the LLVM docs
Nadav Rotem
nrotem at apple.com
Wed Oct 10 11:51:51 PDT 2012
Hi Micah,
We need to fix the documentation here. We want to be able to convert vectors of integers to vectors of pointers and back.
There are a few tests such as (/InstCombine/vector_gep1.ll) that check for these conversions.
Nadav
On Oct 10, 2012, at 11:11 AM, "Villmow, Micah" <Micah.Villmow at amd.com> wrote:
> http://llvm.org/docs/LangRef.html#i_inttoptr
>
> The 'inttoptr' instruction takes an integer value to cast, and a type to cast it to, which must be a 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
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121010/03950531/attachment.html>
More information about the llvm-dev
mailing list