blob: 4e5cece048a8d5ec667936bdf99390171bcc46bf [file] [log] [blame]
Owen Anderson4698c5d2010-10-07 17:55:47 +00001//===-- Utils.cpp - TransformUtils Infrastructure -------------------------===//
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 defines the common initialization infrastructure for the
11// TransformUtils library.
12//
13//===----------------------------------------------------------------------===//
14
15#include "llvm/InitializePasses.h"
16#include "llvm-c/Initialization.h"
Chandler Carruth8a8cd2b2014-01-07 11:48:04 +000017#include "llvm/PassRegistry.h"
Owen Anderson4698c5d2010-10-07 17:55:47 +000018
19using namespace llvm;
20
21/// initializeTransformUtils - Initialize all passes in the TransformUtils
22/// library.
23void llvm::initializeTransformUtils(PassRegistry &Registry) {
Diego Novillof5041ce2014-03-03 20:06:11 +000024 initializeAddDiscriminatorsPass(Registry);
Owen Anderson4698c5d2010-10-07 17:55:47 +000025 initializeBreakCriticalEdgesPass(Registry);
26 initializeInstNamerPass(Registry);
27 initializeLCSSAPass(Registry);
28 initializeLoopSimplifyPass(Registry);
29 initializeLowerInvokePass(Registry);
30 initializeLowerSwitchPass(Registry);
31 initializePromotePassPass(Registry);
32 initializeUnifyFunctionExitNodesPass(Registry);
Duncan Sandsa436cbe2010-12-20 20:54:37 +000033 initializeInstSimplifierPass(Registry);
Alex Rosenberg04b43aa2012-09-11 02:46:18 +000034 initializeMetaRenamerPass(Registry);
George Burgess IVe1100f52016-02-02 22:46:49 +000035 initializeMemorySSALazyPass(Registry);
36 initializeMemorySSAPrinterPassPass(Registry);
Owen Anderson4698c5d2010-10-07 17:55:47 +000037}
38
39/// LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses.
40void LLVMInitializeTransformUtils(LLVMPassRegistryRef R) {
41 initializeTransformUtils(*unwrap(R));
42}