search for: myregisterallocator

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

2009 Aug 11
2
[LLVMdev] llc undefined symbol
...I'm writing a pass for the llc tool. If I try to load my pass(llc -load ../mypass.so), this error message appears : Error opening '/nfs/wsi/ti/graumann/llvm-2.5/Release/lib/LLVMMicha.so': /nfs/wsi/ti/graumann/llvm-2.5/Release/lib/LLVMMicha.so: undefined symbol: _ZTVN12_GLOBAL__N_119MyRegisterAllocatorE -load request ignored. Is this code wrong for the pass registration, or the makefile? Thank you for help Michael Code of my pass: using namespace llvm; namespace { struct MyRegisterAllocator : public MachineFunctionPass {...
2006 Aug 03
0
[LLVMdev] Adding register allocator to LLVM
...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/linki...
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: