Re: [cfe-users] PointerTy and VectorTy

2016-02-25 Thread David Blaikie via cfe-users
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@lists.llvm.org> wrote: > Hello, > > I'm using LLVM 3.4 and have the following IR instruction: >%tmp1 = load *<2 x

[cfe-users] PointerTy and VectorTy

2016-02-25 Thread Simona Simona via cfe-users
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 tel