search for: void_43

Displaying 2 results from an estimated 2 matches for "void_43".

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 = 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_...
2011 May 20
0
[LLVMdev] convert a char * to a value
...bugInstrumentation/DebugInstrumentation.cpp in the SAFECode source tree (directions for getting it from SVN are at http://safecode.cs.illinois.edu under the Download link). I think it is similar to what you want to do. -- John T. > > //i: is the basic bloc > std::vector<Value*> void_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); > CallI...