Displaying 2 results from an estimated 2 matches for "func_branchpredict".
2011 May 20
3
[LLVMdev] convert a char * to a value
...id_43_params;
Constant* tbname = ConstantArray::get(M.getContext(),i->getNameStr() ,
true);
Constant* pbname = ConstantArray::get(M.getContext(),
i->getPrevNode()->getNameStr(), true);
void_43_params.push_back(tbname);
void_43_params.push_back(pbname);
CallInst* void_43 = CallInst::Create(func_branchPredict,
void_43_params.begin(), void_43_params.end(), "", i->getTerminator());
when i execute the pass (opt -load ....) i get an error:
Call parameter type does not match function signature!
[3 x i8] c"bb\00"
i8* call void @branchPredict([3 x i8] c"bb\00", [4 x i8] c...
2011 May 20
0
[LLVMdev] convert a char * to a value
...ConstantArray::get(M.getContext(),i->getNameStr() ,
> true);
> Constant* pbname = ConstantArray::get(M.getContext(),
> i->getPrevNode()->getNameStr(), true);
> void_43_params.push_back(tbname);
> void_43_params.push_back(pbname);
> CallInst* void_43 = CallInst::Create(func_branchPredict,
> void_43_params.begin(), void_43_params.end(), "", i->getTerminator());
>
> when i execute the pass (opt -load ....) i get an error:
>
> Call parameter type does not match function signature!
> [3 x i8] c"bb\00"
> i8* call void @branchPredict([3 x i...