blob: e363dd40da7f1d83b1e197d7fa3c2cafba3e791e [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) {
Xinliang David Li1eaecef2016-06-15 21:51:30 +000024 initializeAddDiscriminatorsLegacyPassPass(Registry);
Owen Anderson4698c5d2010-10-07 17:55:47 +000025 initializeBreakCriticalEdgesPass(Registry);
26 initializeInstNamerPass(Registry);
Easwaran Ramane12c4872016-06-09 19:44:46 +000027 initializeLCSSAWrapperPassPass(Registry);
Owen Anderson4698c5d2010-10-07 17:55:47 +000028 initializeLoopSimplifyPass(Registry);
29 initializeLowerInvokePass(Registry);
30 initializeLowerSwitchPass(Registry);
Mehdi Aminid5faa262016-04-12 21:35:28 +000031 initializeNameAnonFunctionPass(Registry);
Davide Italianocccf4f02016-06-14 03:22:22 +000032 initializePromoteLegacyPassPass(Registry);
Owen Anderson4698c5d2010-10-07 17:55:47 +000033 initializeUnifyFunctionExitNodesPass(Registry);
Duncan Sandsa436cbe2010-12-20 20:54:37 +000034 initializeInstSimplifierPass(Registry);
Alex Rosenberg04b43aa2012-09-11 02:46:18 +000035 initializeMetaRenamerPass(Registry);
Geoff Berryb96d3b22016-06-01 21:30:40 +000036 initializeMemorySSAWrapperPassPass(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}