adding a target dependent transform pass

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???

From: "Reed Kotler" <rkotler@mips.com>
Cc: LLVMdev@cs.uiuc.edu
Sent: Wednesday, April 3, 2013 6:30:56 PM
Subject: Re: [LLVMdev] adding a target dependent transform pass

>> 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

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 :slight_smile:
Oh well...

Reed