Displaying 3 results from an estimated 3 matches for "str18".
Did you mean:
str1
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
If I do M.dump(), at the top of the output I have:
%struct.RB = type opaque
Further down I have:
@.str18 = internal addrspace(2) constant [13 x i8] c"RB_t*\00"
However nowhere does it dump the full struct type when I call "M.dump()". I have it explicitly defined above the kernel in the kernel file, but LLVM doesn't seem to pick it up.
Opaque is a placeholder until it can reso...
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
...LVM CreateStructGEP type assert error
On Wed, Aug 20, 2014 at 08:55:32PM +0000, Lowell, Daniel wrote:
> If I do M.dump(), at the top of the output I have:
>
Can you post the full .cl file you are compiling?
-Tom
> %struct.RB = type opaque
>
>
> Further down I have:
>
> @.str18 = internal addrspace(2) constant [13 x i8] c"RB_t*\00"
>
>
> However nowhere does it dump the full struct type when I call "M.dump()". I have it explicitly defined above the kernel in the kernel file, but LLVM doesn't seem to pick it up.
> Opaque is a placeholder...
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
cB->getType()->getPointerElementType()->dump();
gives:
%struct.RB = type opaque2189 x_idx = builder.CreateStructGEP(cB, 0);
cB->dump()
gives:
%struct.RB addrspace(1)* %cB
$1 = void
//To undo confusion, the last cB is the function arg name. For this example I unfortunately chose the same name for my argument Value* as the argument name.
//Also one correction. I am running