search for: arrptr

Displaying 1 result from an estimated 1 matches for "arrptr".

Did you mean: errptr
2011 Jul 09
1
[LLVMdev] getting and setting array indices c interface
I really can't figure out how to get and set array indices from the c interface. so to get an element I'm calling tindex = *fn\SymbolTable(*index\name) index = LLVMBuildLoad(builder,tindex,"index") arr = *fn\SymbolTable(*array\name) arrptr = LLVMBuildLoad(Builder,arr,"arrayptr") tmp = LLVMBuildGEP(Builder,arrptr,index,0,"ptr") ptr = llvmBuildload(Builder,tmp,"ele") and to set tarr = *fn\SymbolTable(*array\name) Arr = LLVMBuildLoad(builder,tarr,"array") tval = *fn\SymbolTable(*value\na...