search for: func_consume_p

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

Did you mean: func_consume
2011 Apr 26
1
[LLVMdev] inserting a fucntion call at the end of basic bloc
...= M.getOrInsertFunction("consume", FuncTy_3); llvm::Function* func_consume = llvm::cast<llvm::Function > (consum); func_consume ->setLinkage(GlobalValue::ExternalLinkage); func_consume->setCallingConv(CallingConv::C); AttrListPtr func_consume_PAL; func_consume->setAttributes(func_consume_PAL); i have tried to modify the method consume so that it is void consume(int*) and chaged the declaration also and it works now when i have modified the method consume like this void consume(int) and modified the declaration it doesn...
2011 Apr 26
0
[LLVMdev] inserting a fucntion call at the end of basic bloc
Hi Nabila, > where did the "noalias" attribute and "tail call" (rather than "call") come > from? Are you setting these yourself or running some optimization pass after > your pass? > > > i have written a module pass and i have compiled it and then you didn't answer my questions, you just repeated what you said before. Ciao,
2011 Apr 26
2
[LLVMdev] inserting a fucntion call at the end of basic bloc
2011/4/26 Duncan Sands <baldrick at free.fr> > 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