search for: anshul_insert

Displaying 4 results from an estimated 4 matches for "anshul_insert".

2013 Mar 05
5
[LLVMdev] LLVM load instruction query
HI, I am creating a pass that will pass loaded value by load instruction to an external function. I don't know how to do it.Please Help.
2013 Mar 05
0
[LLVMdev] LLVM load instruction query
...a at ubuntu:~/Desktop$ > ./myscript llvm[0]: Compiling printFunc.cpp for Release+Asserts build (PIC) > llvm[0]: Linking Release+Asserts Loadable Module Ass1Pri.so 0 opt > 0x0854449b Stack dump: 0. Program arguments: opt -load > /home/anshul/llvm/llvm-3.2/Release+Asserts/lib/Ass1Pri.so -anshul_insert 1. > Running pass 'test function exist' on module '<stdin>'. ./myscript: line 6: > 10726 Segmentation fault (core dumped) opt -load > /home/anshul/llvm/llvm-3.2/Release+Asserts/lib/Ass1Pri.so -anshul_insert < > a.bc > b1.bc 'main' function not found i...
2013 Mar 06
1
[LLVMdev] LLVM load instruction query
...cpProf= cast<Function>(cpProfFunc); for(Module::iterator F = M.begin(), E = M.end(); F!= E; ++F) { for(Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB) { anshul_insert::runOnBasicBlock(BB); } } return false; } virtual bool runOnBasicBlock(Function::iterator &BB) { for(BasicBlock::iterator BI = BB->begin(), BE = BB->end(); BI != BE; ++BI) {...
2013 Mar 05
0
[LLVMdev] LLVM load instruction query
Hi Anshul, > I am creating a pass that will pass loaded value by load instruction to an > external function. > I don't know how to do it.Please Help. your question is too vague for anyone to be able to help you. Add details, for example provide the code for your pass. Ciao, Duncan.