[cfe-dev] Passes after Polly | How are Passes sequenced without the PassRegistry ?

Michael Kruse via cfe-dev cfe-dev at lists.llvm.org
Fri May 12 05:28:48 PDT 2017


2017-05-12 14:20 GMT+02:00 SANJAY SRIVALLABH SINGAPURAM
<llvmresch_int01 at iith.ac.in>:
> How is Polly called from Clang ?

Polly registers itself to the PassBuilderBuilder using
llvm::RegisterStandardPasses. clang will then call
PassManagerBuilder::populateModulePassManager and get a PassManager
with Polly in it.

> What are the Passes sequenced after Polly ?

If you look into the source of
PassManagerBuilder::populateModulePassManager, you can see where Polly
is added. There are multiple positions possible (addExtensionsToPM),
determined by the -polly-position= switch.

Michael

-- 
Tardyzentrismus verboten!



More information about the cfe-dev mailing list