search for: createmyregisteralloc

Displaying 7 results from an estimated 7 matches for "createmyregisteralloc".

2006 Aug 03
0
[LLVMdev] Adding register allocator to LLVM
...ess I will have to write this up, but generally it works like this. In your register allocator .cpp file add the following include; #include ""llvm/CodeGen/RegAllocRegistry.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/l...
2006 Sep 02
2
[LLVMdev] Adding register allocator to LLVM
Hi all! I didn't manage to link my regalloc to lli (I added USEDLIBS to its makefile). Without it I can't run tests cause they need lli to be built. So how can I link createMyRegisterAllocator function to lli? Thanks. On 8/22/06, Anton Vayvod <avayvod at gmail.com> wrote: > > I managed to link my RegAlloc.a library to llc tool but can;t make the > same with lli tool. > > Should I use USEDLIBS variable in lli makefile (like llc) or there is > another way? &...
2009 Aug 11
2
[LLVMdev] llc undefined symbol
...chineFunctionPass(&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", createMyRegisterAllocator); the makefile: LEVEL = ../../.. LIBRARYNAME = LLVMMicha LOADABLE_MODULE = 1 USEDLIBS =...
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 Aug 22
0
[LLVMdev] Adding register allocator to LLVM
I managed to link my RegAlloc.a library to llc tool but can;t make the same with lli tool. Should I use USEDLIBS variable in lli makefile (like llc) or there is another way? On 8/20/06, Fernando Magno Quintao Pereira <fernando at cs.ucla.edu> wrote: > > > Dear Anton, > > you can add your register allocator strait iin the > "lib/CodeGen/Passes.cpp", and then
2006 Sep 02
0
[LLVMdev] Adding register allocator to LLVM
On Sat, 2 Sep 2006, Anton Vayvod wrote: > I didn't manage to link my regalloc to lli (I added USEDLIBS to its > makefile). Without it I can't run tests cause they need lli to be built. So > how can I link createMyRegisterAllocator function to lli? Make sure to add it to Codegen/LinkAllCodegenComponents.h. -Chris > On 8/22/06, Anton Vayvod <avayvod at gmail.com> wrote: >> >> I managed to link my RegAlloc.a library to llc tool but can;t make the >> same with lli tool. >> >> Sh...
2006 Aug 20
2
[LLVMdev] Adding register allocator to LLVM
Dear Anton, you can add your register allocator strait iin the "lib/CodeGen/Passes.cpp", and then 're-make' it: "makellvm llc", on the top of lib/CodeGen. It is faster than running make from LLVMOBJDIR. The problem is that it only add to llc the changes on the lib/CodeGen directory. If you change other parts, a make from LLVMOBJDIR will synchronize it. Try adding