search for: fbloc

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

Did you mean: bloc
2012 Sep 05
1
[LLVMdev] Calling a function with a pointer to a global char array as argument
...tPointerOperand()->getType()*/, 0); printFunc = M.getOrInsertFunction("print", IntegerType::getInt32Ty(getGlobalContext()), array, NULL); Global Declaration: Constant *fname = ConstantDataArray::getString(getGlobalContext(),"hi", true); Value *FBloc; FBloc = new GlobalVariable(M, fname->getType(), true, GlobalValue::InternalLinkage, fname,...
2011 May 20
0
[LLVMdev] convert a char * to a value
On 5/20/11 5:46 PM, Nabila ABDESSAIED wrote: > Hi all, > > Please i need help, I have a method that takes 2 arguments with type > char *: > void branchPredict(char *b1, char *b2){ > --- > -- > } > i'm supposed to add this method, in an IR basic bloc: > to add it into a basic bloc i do: The problem is that you are passing arrays to the function instead of
2011 May 20
3
[LLVMdev] convert a char * to a value
Hi all, Please i need help, I have a method that takes 2 arguments with type char *: void branchPredict(char *b1, char *b2){ --- -- } i'm supposed to add this method, in an IR basic bloc: to add it into a basic bloc i do: //i: is the basic bloc std::vector<Value*> void_43_params; Constant* tbname = ConstantArray::get(M.getContext(),i->getNameStr() , true); Constant* pbname =