IPA.cpp 1014 B

123456789101112131415161718192021222324252627282930
  1. //===-- IPA.cpp -----------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. //
  10. // This file implements the common initialization routines for the IPA library.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #include "llvm/InitializePasses.h"
  14. #include "llvm-c/Initialization.h"
  15. #include "llvm/PassRegistry.h"
  16. using namespace llvm;
  17. /// initializeIPA - Initialize all passes linked into the IPA library.
  18. void llvm::initializeIPA(PassRegistry &Registry) {
  19. initializeCallGraphWrapperPassPass(Registry);
  20. initializeCallGraphPrinterPass(Registry);
  21. initializeCallGraphViewerPass(Registry);
  22. initializeGlobalsModRefPass(Registry);
  23. }
  24. void LLVMInitializeIPA(LLVMPassRegistryRef R) {
  25. initializeIPA(*unwrap(R));
  26. }