llvm-tutor icon indicating copy to clipboard operation
llvm-tutor copied to clipboard

Add extension points for TargetPassConfig::addMachinePasses

Open ssarfaty opened this issue 2 years ago • 2 comments

in LLVM 16 the Add extension points for MachinePass should be availible, i couldn't find a way to write a plugin in LLVM that can change the function prologue and epilogue that the MachinePass creates..

do you have such example ?

ssarfaty avatar Dec 12 '22 01:12 ssarfaty

Hello 👋🏻 !

do you have such example ?

I do not. Would you like to contribute one? :)

-Andrzej

banach-space avatar Dec 12 '22 09:12 banach-space

thats the problem with LLVM .. the new pass manager should have support also like GCC RTL pass the ASM changes but not many example exist ... for GCC there are some that change the Canary implementation: https://github.com/enferex/sataniccanary/blob/master/sataniccanary.c

i'm looking for such example in LLVM ...

ssarfaty avatar Dec 12 '22 10:12 ssarfaty