search for: mainfun

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

Did you mean: mainfunc
2007 Jan 04
1
need help with debug package
Hi all, I met a problem while using the debug package, I have the following program: mainfun<- function(){ beta<-1 result<-subfun(beta+x) } subfun<-function(expr){ y <- eval(expr, envir=list(x=c(1,2)),enclos = parent.frame()) return(y) } I have no problem using this program without calling the debug package....
2007 Mar 06
6
[LLVMdev] alloca & store generation
...argc, sbyte** %argv) { entry: alloca int ; <int*>:0 [#uses=1] alloca sbyte** ; <sbyte***>:0 [#uses=1] store int %argc, int* %0 store sbyte** %argv, sbyte*** %0 ... ----- I used the following code in my transformation: ----- BasicBlock* eb = M.getMainFunction()->getEntryBlock(); Function::arg_iterator argc_it = mainfun->arg_begin(); Function::arg_iterator argv_it = argc_it; ++argv_it; Argument* argc = &*argc_it; Argument* argv = &*argv_it; Instruction* insertNewInstsBefore = &eb->front(); AllocaInst* argc_a...
2007 Mar 06
0
[LLVMdev] alloca & store generation
...; <int*>:0 [#uses=1] > alloca sbyte** ; <sbyte***>:0 [#uses=1] > store int %argc, int* %0 > store sbyte** %argv, sbyte*** %0 > ... > ----- > > I used the following code in my transformation: > > ----- > BasicBlock* eb = M.getMainFunction()->getEntryBlock(); > Function::arg_iterator argc_it = mainfun->arg_begin(); > Function::arg_iterator argv_it = argc_it; > ++argv_it; > Argument* argc = &*argc_it; > Argument* argv = &*argv_it; > Instruction* insertNewInstsBefore = &eb->...