search for: elm_type

Displaying 3 results from an estimated 3 matches for "elm_type".

Did you mean: elem_type
2011 Nov 24
1
[LLVMdev] differences in IR and ELF?
...oid pointers. I think I am going about this wrong, heres how I am doing it: void writeArray(Module &M, GlobalVariable *shadow, Function *val, Function *func) { /* Build up contents */ vector<Constant *> v_elements; Type *elm_type = Type::getInt32PtrTy(M.getContext()); Constant *tmp = dyn_cast<Constant>(shadow); assert(tmp != NULL && "shadow"); v_elements.push_back(ConstantExpr::getBitCast(tmp, elm_type)); tmp = dyn_cast<Constant>(val...
2011 Nov 15
0
[LLVMdev] constructing global array of pointers?
...e contents of the array do not seem to be valid offsets. Am I constructing it wrong? Thank you void writeArray(Module &M, GlobalVariable *shadow, Function *val, Function *func) { /* Build up contents */ vector<Constant *> v_elements; Type *elm_type = Type::getInt32PtrTy(M.getContext()); Constant *tmp = dyn_cast<Constant>(shadow); assert(tmp != NULL && "shadow"); v_elements.push_back(ConstantExpr::getBitCast(tmp, elm_type)); tmp = dyn_cast<Constant>...
2011 Nov 24
0
[LLVMdev] differences in IR and ELF?
...am going about this wrong, heres how I am doing it: > > void writeArray(Module &M, GlobalVariable *shadow, Function *val, > Function *func) { > /* Build up contents */ > vector<Constant *> v_elements; > Type *elm_type = Type::getInt32PtrTy(M.getContext()); > > Constant *tmp = dyn_cast<Constant>(shadow); > assert(tmp != NULL && "shadow"); > v_elements.push_back(ConstantExpr::getBitCast(tmp, > elm_type)); > > tmp =...