Displaying 3 results from an estimated 3 matches for "mypassnam".
Did you mean:
mypassname
2011 Jan 18
1
[LLVMdev] adding a codegen pass into llvm
Thanks for your last reply.
Could I understand the way to adding a pass (built into the llvm rather than
dynamic loadable) includes:
1. Declaring a creator function for this pass
2. Implementing the creator function for this pass
3. Instantiating this pass and get a object of it
3. Register this pass into the PassRegistry
Then, for a built-into bytecode pass,
task 1(declaration of the
2002 Sep 22
0
[LLVMdev] Cute LLVM feature that may be useful for 426 people
...mon need, LLVM provides the Statistic<>
template class that can be used to keep track of this kind of
information. You can find various examples of statistic users, but
this basics of using it are as follows:
Define your statistic like this:
static Statistic<> Foo("mypassname\t- The # of times I did stuff");
Whenever you make a transformation, bump the counter:
++Foo;
That's all you have to do. To get 'opt' to print out the statistics
gathered, use the '-stats' option:
$ opt -stats -mypassname < program.bc > /dev/null...
2010 Jan 22
1
[LLVMdev] debugging a pass for LTO
Thank you very much for your suggestions. That's very helpful.
However, since I'm trying to compile several somewhat large projects,
I assume generating bitcode for each single file and linking them
together might be painful (I don't want to modify too much the project
makefiles). So I hope my pass can be used just with simple compilation
command like
"llvm-gcc