[cfe-users] PointerTy and VectorTy

David Blaikie via cfe-users cfe-users at lists.llvm.org
Thu Feb 25 08:05:14 PST 2016


PointerType::getElementType should give you the vector type, which should
have the size and element type
On Feb 25, 2016 5:03 AM, "Simona Simona via cfe-users" <
cfe-users at lists.llvm.org> wrote:

> Hello,
>
> I'm using LLVM 3.4 and have the following IR instruction:
>            %tmp1 = load *<2 x float>** %tmp, align 1, !dbg !26
>
> The operand 0 of the load instruction is of type PointerType. I've checked
> this using: I.getOperand(0)->getType()->isPointerTy().
> I would appreciate if someone could tell me how I could extract from this
> PointerType operand the vector size (2) and the scalar type (float).
>
> Many thanks,
> Simona
>
>
>
> _______________________________________________
> cfe-users mailing list
> cfe-users at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20160225/1695708f/attachment.html>


More information about the cfe-users mailing list