On Apr 29, 2013, at 10:08 PM, kavitha <kavitha.madhu27 at gmail.com>
wrote:
> Hi,
> I wanted to write a new register allocation algorithm. I wrote it the same
way RegAllocFast has been written and registered it. I added it to
ForceCodegenLinking struct as well. But after build, it is not listed in llc
--help. I tried to change the registered name of greedy algorithm to something
else and that doesnt seem to be reflecting in llc help either.
>
> Am i supposed to build llvm completely again? Or am i missing something?
RegisterRegAlloc's static initiailizer should add the command line
option...
static RegisterRegAlloc greedyRegAlloc("greedy", "greedy register
allocator",
createGreedyRegisterAllocator);
make clean is often your friend.
-Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20130430/691b869e/attachment.html>