search for: nb_total

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

Did you mean: n_total
2011 Apr 26
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
...unwind >> > > noalias is only for arguments of pointer type. You probably meant it to > be on the second argument rather than the first. I suggest you correct > your code that adds the attribute. > > Ciao, Duncan. > no my fucntion is void consume(int nb_into_bloc, int *nb_total) the second is a pointer here is how I pass the parameters Instruction* ii = i->getTerminator(); const int n = cast <int> (i->size()); ConstantInt* inValue = ConstantInt::get(Type::getInt32Ty(Context), n); std::vector<Value*> int32_16_params; int32_16_params.push_back(inValu...
2011 Apr 26
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
...noalias is only for arguments of pointer type. You probably meant it to > be on the second argument rather than the first. I suggest you correct > your code that adds the attribute. > > Ciao, Duncan. > > > no my fucntion is > void consume(int nb_into_bloc, int *nb_total) > the second is a pointer > here is how I pass the parameters > Instruction* ii = i->getTerminator(); > const int n = cast <int> (i->size()); > ConstantInt* inValue = ConstantInt::get(Type::getInt32Ty(Context), n); > std::vector<Value*> int32_16_params;...
2011 Apr 26
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
Hi Nabila, > Now when i tried this pass an error says: > Wrong type for attribute noalias > tail call void @consume(i32 noalias 3, i32* @y) nounwind noalias is only for arguments of pointer type. You probably meant it to be on the second argument rather than the first. I suggest you correct your code that adds the attribute. Ciao, Duncan.
2011 Apr 26
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
I have defined the fucntion in another object file and linked it to the in fact the fucntion is : void consume(int , int * ); std::vector<Value*> int32_16_params; int32_16_params.push_back(inValue);//inValue is ConstantInt* inValue int32_16_params.push_back(gvar_int32_y); CallInst* int32_16 = CallInst::Create(func_consume, int32_16_params.begin(), int32_16_params.end(), "",
2011 Apr 26
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
...er type. You probably meant it >> to >> be on the second argument rather than the first. I suggest you correct >> your code that adds the attribute. >> >> Ciao, Duncan. >> >> >> no my fucntion is >> void consume(int nb_into_bloc, int *nb_total) >> the second is a pointer >> here is how I pass the parameters >> Instruction* ii = i->getTerminator(); >> const int n = cast <int> (i->size()); >> ConstantInt* inValue = ConstantInt::get(Type::getInt32Ty(Context), n); >> std::vector<Value*&g...