blob: aa23e80548724faed0762a9c06902bc22a1e9fd3 [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);
Michael Kuperstein31b83992016-08-12 17:28:27 +000029 initializeLowerInvokeLegacyPassPass(Registry);
Owen Anderson4698c5d2010-10-07 17:55:47 +000030 initializeLowerSwitchPass(Registry);
Mehdi Amini27d23792016-09-16 16:56:30 +000031 initializeNameAnonGlobalLegacyPassPass(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);
Chad Rosier232e29e2016-07-06 21:20:47 +000037 initializeMemorySSAPrinterLegacyPassPass(Registry);
Owen Anderson4698c5d2010-10-07 17:55:47 +000038}
39
40/// LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses.
41void LLVMInitializeTransformUtils(LLVMPassRegistryRef R) {
42 initializeTransformUtils(*unwrap(R));
43}