Hey, I want to implement a FIR compiler plugin, wh...
# compiler
h
Hey, I want to implement a FIR compiler plugin, which "only" needs to analyze the body of a function, without modifications. I can't use KSP because it does not support getting the body and its statements. Do you have any docs which extension would be the start point to visit the function body after resolution?
j
h
Thank you! And how do you actually register your
FirAdditionalCheckersExtension
? I used cite as template from Jake and he uses
IrGenerationExtension.registerExtension
, but what is the fir equivalent?
j
same place but with fir API
Copy code
FirExtensionRegistrarAdapter::registerExtension