search for: myregalloc

Displaying 6 results from an estimated 6 matches for "myregalloc".

2009 Aug 11
2
[LLVMdev] llc undefined symbol
...// Pass identification, replacement for typeid MyRegisterAllocator() : MachineFunctionPass(&ID) {} virtual bool runOnMachineFunction(MachineFunction &MF); }; char MyRegisterAllocator::ID = 0; } static RegisterPass<MyRegisterAllocator>X("myregalloc", " my register allocator help string"); FunctionPass* createMyRegisterAllocator() { return new MyRegisterAllocator(); } static RegisterRegAlloc MyRegAlloc("myregalloc", " my register allocator help string", createMyRegisterAllocato...
2006 Aug 03
0
[LLVMdev] Adding register allocator to LLVM
...ocRegistry.h"" In your register allocator .cpp file define a create function in the form; FunctionPass *createMyRegisterAllocator() { return new MyRegisterAllocator(); } and the "installing" static constructor declaration, in the form; static RegisterRegAlloc myRegAlloc("myregalloc", " my register allocator help string", createMyRegisterAllocator); To force the load/linking of your register allocator into the llc/lli tools, add your create function's global declaration to "Passes.h" and add a "pseudo" cal...
2006 Aug 03
3
[LLVMdev] Adding register allocator to LLVM
Hi! I'm developing a register allocator and need it to be available as an option for llc tool. I used to edit /lib/CodeGen/Passes.cpp for this aim but after yesterday's update these options are defined somewhere else and I can't find the place. Thanks for your help. Tony. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Sep 02
0
[LLVMdev] Testing a register allocator
> Hi! > > I developed a register allocator within LLVM and now I need to test its > efficiency. Can I do this using llvm-test package? > Do llvm tests check all available regalloc options automatically? If not, > then what modifications should I do to the test files? > It would be great if I could test my algo along with linearscan and compare > the results. > >
2006 Sep 03
2
[LLVMdev] Testing a register allocator
...architechtures to use my allocator. I run make TEST=nightly report.html and got all tests under LLCBETA failed ('*' symbol). Though I know that my algorithm works. At least I succeeded to pass some files from the LLVM tests (oggenc.c, for example) through llvm-gcc -emit-llvm ; llc -regalloc=myregalloc; gcc -g commands and everything worked fine (even running of the compiled file). So I guess that nightlytest compares output of tested programs with some prepared results and the output of llc with my regalloc is different from the expected. Is it right? Or did I do smth wrong? BTW, how can I run...
2006 Sep 01
3
[LLVMdev] Testing a register allocator
Hi! I developed a register allocator within LLVM and now I need to test its efficiency. Can I do this using llvm-test package? Do llvm tests check all available regalloc options automatically? If not, then what modifications should I do to the test files? It would be great if I could test my algo along with linearscan and compare the results. Thanks. Tony. -- "Nae king! Nae quin! Nae