search for: getint32ptrty

Displaying 5 results from an estimated 5 matches for "getint32ptrty".

Did you mean: getint1ptrty
2016 Dec 28
1
llvm pass
I want to insert new alloca Instruction after existing alloca Instruction in llvm pass so what attribute to be passed at last in following newallocaI = new AllocaInst(llvm::Type::getInt32PtrTy(context,0), //type 0, // ArraySize 8, // Alignment "p", // const <http://llvm.org/docs/doxygen/html/AArch64PromoteConstant_8cpp.html#a90f8350f...
2011 Nov 24
1
[LLVMdev] differences in IR and ELF?
...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); asse...
2011 Nov 15
0
[LLVMdev] constructing global array of pointers?
...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>(val);...
2011 Nov 24
0
[LLVMdev] differences in IR and ELF?
...is 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&...
2013 Jan 27
2
[LLVMdev] Passing an array to an external function
...strument the branch target instructions CallInst::Create(hook, Args, "",CI); Also, I 'hook' is defined as M.getOrInsertFunction("hook", Type::getVoidTy(M.getContext()), PointerType::get(Type::getInt32PtrTy(M.getContext()),0), //?? (Type*)0); Could someone kindly keep me a few pointers on passing arrays to an external function (say with the signature void hook(int abc[]) ). I am probably wrong all the way through, and would really appreciate some...