Thanks!!
I was forgetting about the hooks in TargetPassConfig. I've used them
before (just last week even but was just cutting and pasting something
from another port so I did not really look too much at what is there)
and was trying to add the pass to TargetMachine and couldn't see how
that was possible for this pass. There was no mention
of this in the writing a llvm pass doc or writing an LLVM compiler
backend doc.
There is an expression in Russian: "Старость не радость".
It means basically that old age is nothing to be excited about :)
Oh well...
Reed
On 04/03/2013 04:37 PM, Hal Finkel wrote:> ----- Original Message -----
>> From: "Reed Kotler" <rkotler at mips.com>
>> Cc: LLVMdev at cs.uiuc.edu
>> Sent: Wednesday, April 3, 2013 6:30:56 PM
>> Subject: Re: [LLVMdev] adding a target dependent transform pass
>>
>> On 04/02/2013 03:31 PM, Reed Kotler wrote:
>>> On 04/02/2013 03:00 PM, reed kotler wrote:
>>>> How do you add a target dependent transform pass?
>>>>
>>>> tia.
>>>>
>>>> eed
>>> I need to add a module pass.
>> Do you need to just add them to the Transform subdirectory????
> I might be missing some relevant context here, but have you looked at how
the AMDGPUStructurizeCFG pass is added in R600/AMDGPUTargetMachine.cpp?
>
> -Hal
>
>>
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20130403/cd7619e5/attachment.html>