Without this, the pass doesn't show up in print-before/after-all.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/X86/X86TargetMachine.cpp | ||
---|---|---|
70 | Just be curious, why there is no error before without initialization? |
llvm/lib/Target/X86/X86TargetMachine.cpp | ||
---|---|---|
70 | I think all it really does is tell the pass registry about the pass. Somehow that's required for the printing code. The analysis usage is put in the initialize function with INITIALIZE_PASS_DEPENDENCY which makes sure the initialize function for the dependency is called. The pass manager uses getAnalysis usage to determine what analysis passes need to run. That happens independent of the initialize function. |
Just be curious, why there is no error before without initialization?