search for: rb_t

Displaying 4 results from an estimated 4 matches for "rb_t".

2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
...ffset float Cap, //Capacitance float Rx, float Ry, float Rz, float step, //dlowell's argument global RB_t *cB) { local float temp_on_cuda[BLOCK_SIZE][BLOCK_SIZE]; local float power_on_cuda[BLOCK_SIZE][BLOCK_SIZE]; local float temp_t[BLOCK_SIZE][BLOCK_SIZE]; // saving temporary temperature result float amb_temp = 80.0f; float step_div_Cap; float Rx_1,Ry_1,Rz_1; int bx = get_group_id(0); int...
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 resolve the "actual" type, so at my pass level &q...
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
...gt; #define BUFFER_LEN 0x100000 > typedef struct RB{ > unsigned int x; > unsigned int y; > int z[BUFFER_LEN]; > unsigned int xx[BUFFER_LEN]; > unsigned int yy[BUFFER_LEN]; > float zz[BUFFER_LEN]; > } RB_t; > > //The kernel sig. with the struct as the last argument: > > __kernel void ht( int iteration, global RB_t *cB){ ... } > > //My LLVM code: > > void MPASS::exPointers(Module& M, Function& F){ > BasicBlock *first = F.begin(); > IRBu...
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
...? //This part is atop my cl kernel file: #define BUFFER_LEN 0x100000 typedef struct RB{ unsigned int x; unsigned int y; int z[BUFFER_LEN]; unsigned int xx[BUFFER_LEN]; unsigned int yy[BUFFER_LEN]; float zz[BUFFER_LEN]; } RB_t; //The kernel sig. with the struct as the last argument: __kernel void ht( int iteration, global RB_t *cB){ ... } //My LLVM code: void MPASS::exPointers(Module& M, Function& F){ BasicBlock *first = F.begin(); IRBuilder<> builder(first->begin());...