blob: b0c3b80c9c6a7f7349aa272a10c800da26616278 [file] [log] [blame]
Chris Lattner47877052006-09-04 04:16:09 +00001//===-- LLVMTargetMachine.cpp - Implement the LLVMTargetMachine class -----===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Chris Lattner47877052006-09-04 04:16:09 +00007//
8//===----------------------------------------------------------------------===//
9//
10// This file implements the LLVMTargetMachine class.
11//
12//===----------------------------------------------------------------------===//
13
14#include "llvm/Target/TargetMachine.h"
15#include "llvm/PassManager.h"
16#include "llvm/Pass.h"
Chris Lattner31442f92007-03-31 00:24:43 +000017#include "llvm/Assembly/PrintModulePass.h"
Daniel Dunbar78945782009-08-13 23:48:47 +000018#include "llvm/CodeGen/AsmPrinter.h"
Chris Lattner47877052006-09-04 04:16:09 +000019#include "llvm/CodeGen/Passes.h"
Gordon Henriksen5a29c9e2008-08-17 12:56:54 +000020#include "llvm/CodeGen/GCStrategy.h"
Dan Gohmanad2afc22009-07-31 18:16:33 +000021#include "llvm/CodeGen/MachineFunctionAnalysis.h"
Chris Lattner47877052006-09-04 04:16:09 +000022#include "llvm/Target/TargetOptions.h"
Dale Johannesen1532f3d2008-04-02 00:25:04 +000023#include "llvm/Target/TargetAsmInfo.h"
Daniel Dunbar6d823cd2009-07-15 23:48:37 +000024#include "llvm/Target/TargetRegistry.h"
Chris Lattner47877052006-09-04 04:16:09 +000025#include "llvm/Transforms/Scalar.h"
Chris Lattner31442f92007-03-31 00:24:43 +000026#include "llvm/Support/CommandLine.h"
David Greene71847812009-07-14 20:18:05 +000027#include "llvm/Support/FormattedStream.h"
Chris Lattner47877052006-09-04 04:16:09 +000028using namespace llvm;
29
Dan Gohman2c4bf112008-09-25 01:14:49 +000030namespace llvm {
31 bool EnableFastISel;
32}
33
Chris Lattner85ef2542007-06-19 05:47:49 +000034static cl::opt<bool> PrintLSR("print-lsr-output", cl::Hidden,
35 cl::desc("Print LLVM IR produced by the loop-reduce pass"));
36static cl::opt<bool> PrintISelInput("print-isel-input", cl::Hidden,
37 cl::desc("Print LLVM IR input to isel pass"));
Evan Cheng8bd60352007-07-20 21:56:13 +000038static cl::opt<bool> PrintEmittedAsm("print-emitted-asm", cl::Hidden,
39 cl::desc("Dump emitter generated instructions as assembly"));
Gordon Henriksen93f96d02008-01-07 01:33:09 +000040static cl::opt<bool> PrintGCInfo("print-gc", cl::Hidden,
41 cl::desc("Dump garbage collector data"));
Jakob Stoklund Olesen48872e02009-05-16 00:33:53 +000042static cl::opt<bool> VerifyMachineCode("verify-machineinstrs", cl::Hidden,
43 cl::desc("Verify generated machine code"),
44 cl::init(getenv("LLVM_VERIFY_MACHINEINSTRS")!=NULL));
Chris Lattner85ef2542007-06-19 05:47:49 +000045
Chris Lattner459525d2008-01-14 19:00:06 +000046// When this works it will be on by default.
47static cl::opt<bool>
48DisablePostRAScheduler("disable-post-RA-scheduler",
49 cl::desc("Disable scheduling after register allocation"),
50 cl::init(true));
51
Dan Gohmandc756852008-10-01 20:39:19 +000052// Enable or disable FastISel. Both options are needed, because
53// FastISel is enabled by default with -fast, and we wish to be
54// able to enable or disable fast-isel independently from -fast.
Dan Gohmaneb0d6ab2008-10-07 23:00:56 +000055static cl::opt<cl::boolOrDefault>
Dan Gohmandc756852008-10-01 20:39:19 +000056EnableFastISelOption("fast-isel", cl::Hidden,
57 cl::desc("Enable the experimental \"fast\" instruction selector"));
Dan Gohman2c4bf112008-09-25 01:14:49 +000058
Chris Lattnera7ac47c2009-08-12 07:22:17 +000059
60LLVMTargetMachine::LLVMTargetMachine(const Target &T,
61 const std::string &TargetTriple)
62 : TargetMachine(T) {
63 AsmInfo = T.createAsmInfo(TargetTriple);
64}
65
66
67
Bill Wendling04523ea2007-02-08 01:36:53 +000068FileModel::Model
Dan Gohmanbfae8312008-03-11 22:29:46 +000069LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
David Greene71847812009-07-14 20:18:05 +000070 formatted_raw_ostream &Out,
Bill Wendling04523ea2007-02-08 01:36:53 +000071 CodeGenFileType FileType,
Bill Wendling98a366d2009-04-29 23:29:43 +000072 CodeGenOpt::Level OptLevel) {
Dan Gohman02dae4b2008-09-25 00:37:07 +000073 // Add common CodeGen passes.
Bill Wendlingbe8cc2a2009-04-29 00:15:41 +000074 if (addCommonCodeGenPasses(PM, OptLevel))
Bill Wendling04523ea2007-02-08 01:36:53 +000075 return FileModel::Error;
76
Jim Laskey9d4209f2006-11-07 19:33:46 +000077 // Fold redundant debug labels.
78 PM.add(createDebugLabelFoldingPass());
Dan Gohman02dae4b2008-09-25 00:37:07 +000079
80 if (PrintMachineCode)
Bill Wendling04523ea2007-02-08 01:36:53 +000081 PM.add(createMachineFunctionPrinterPass(cerr));
82
Bill Wendlingbe8cc2a2009-04-29 00:15:41 +000083 if (addPreEmitPass(PM, OptLevel) && PrintMachineCode)
Bill Wendling04523ea2007-02-08 01:36:53 +000084 PM.add(createMachineFunctionPrinterPass(cerr));
85
Bill Wendling98a366d2009-04-29 23:29:43 +000086 if (OptLevel != CodeGenOpt::None)
Evan Chengbbf1db72009-05-07 05:42:24 +000087 PM.add(createCodePlacementOptPass());
Evan Chengd703ed62008-02-28 23:29:57 +000088
Chris Lattner47877052006-09-04 04:16:09 +000089 switch (FileType) {
Bill Wendling04523ea2007-02-08 01:36:53 +000090 default:
91 break;
92 case TargetMachine::AssemblyFile:
Bill Wendlingbe8cc2a2009-04-29 00:15:41 +000093 if (addAssemblyEmitter(PM, OptLevel, getAsmVerbosityDefault(), Out))
Bill Wendling04523ea2007-02-08 01:36:53 +000094 return FileModel::Error;
95 return FileModel::AsmFile;
96 case TargetMachine::ObjectFile:
97 if (getMachOWriterInfo())
98 return FileModel::MachOFile;
99 else if (getELFWriterInfo())
100 return FileModel::ElfFile;
Chris Lattner47877052006-09-04 04:16:09 +0000101 }
Bill Wendling04523ea2007-02-08 01:36:53 +0000102
103 return FileModel::Error;
104}
Dan Gohman02dae4b2008-09-25 00:37:07 +0000105
Daniel Dunbar5d77cad2009-07-15 23:34:19 +0000106bool LLVMTargetMachine::addAssemblyEmitter(PassManagerBase &PM,
107 CodeGenOpt::Level OptLevel,
108 bool Verbose,
109 formatted_raw_ostream &Out) {
Daniel Dunbar67d894e2009-08-13 19:38:51 +0000110 FunctionPass *Printer =
111 getTarget().createAsmPrinter(Out, *this, getTargetAsmInfo(), Verbose);
Daniel Dunbar5d77cad2009-07-15 23:34:19 +0000112 if (!Printer)
Daniel Dunbar36129db2009-07-15 23:54:01 +0000113 return true;
114
Daniel Dunbar5d77cad2009-07-15 23:34:19 +0000115 PM.add(Printer);
116 return false;
117}
118
Bill Wendling04523ea2007-02-08 01:36:53 +0000119/// addPassesToEmitFileFinish - If the passes to emit the specified file had to
120/// be split up (e.g., to add an object writer pass), this method can be used to
121/// finish up adding passes to emit the file, if necessary.
Dan Gohmanbfae8312008-03-11 22:29:46 +0000122bool LLVMTargetMachine::addPassesToEmitFileFinish(PassManagerBase &PM,
Bill Wendling04523ea2007-02-08 01:36:53 +0000123 MachineCodeEmitter *MCE,
Bill Wendling98a366d2009-04-29 23:29:43 +0000124 CodeGenOpt::Level OptLevel) {
Bill Wendling04523ea2007-02-08 01:36:53 +0000125 if (MCE)
Daniel Dunbarcfe9a602009-07-15 22:33:19 +0000126 addSimpleCodeEmitter(PM, OptLevel, *MCE);
127 if (PrintEmittedAsm)
128 addAssemblyEmitter(PM, OptLevel, true, ferrs());
Dan Gohman02dae4b2008-09-25 00:37:07 +0000129
Gordon Henriksen5eca0752008-08-17 18:44:35 +0000130 PM.add(createGCInfoDeleter());
Bill Wendling04523ea2007-02-08 01:36:53 +0000131
Chris Lattner47877052006-09-04 04:16:09 +0000132 return false; // success!
133}
134
Bruno Cardoso Lopesa3f99f92009-05-30 20:51:52 +0000135/// addPassesToEmitFileFinish - If the passes to emit the specified file had to
136/// be split up (e.g., to add an object writer pass), this method can be used to
137/// finish up adding passes to emit the file, if necessary.
138bool LLVMTargetMachine::addPassesToEmitFileFinish(PassManagerBase &PM,
139 JITCodeEmitter *JCE,
140 CodeGenOpt::Level OptLevel) {
141 if (JCE)
Daniel Dunbarcfe9a602009-07-15 22:33:19 +0000142 addSimpleCodeEmitter(PM, OptLevel, *JCE);
143 if (PrintEmittedAsm)
144 addAssemblyEmitter(PM, OptLevel, true, ferrs());
Bruno Cardoso Lopesa3f99f92009-05-30 20:51:52 +0000145
146 PM.add(createGCInfoDeleter());
147
Bruno Cardoso Lopesa3f99f92009-05-30 20:51:52 +0000148 return false; // success!
149}
150
Bruno Cardoso Lopesac57e6e2009-07-06 05:09:34 +0000151/// addPassesToEmitFileFinish - If the passes to emit the specified file had to
152/// be split up (e.g., to add an object writer pass), this method can be used to
153/// finish up adding passes to emit the file, if necessary.
154bool LLVMTargetMachine::addPassesToEmitFileFinish(PassManagerBase &PM,
155 ObjectCodeEmitter *OCE,
156 CodeGenOpt::Level OptLevel) {
157 if (OCE)
Daniel Dunbarcfe9a602009-07-15 22:33:19 +0000158 addSimpleCodeEmitter(PM, OptLevel, *OCE);
159 if (PrintEmittedAsm)
160 addAssemblyEmitter(PM, OptLevel, true, ferrs());
Bruno Cardoso Lopesac57e6e2009-07-06 05:09:34 +0000161
162 PM.add(createGCInfoDeleter());
163
Bruno Cardoso Lopesac57e6e2009-07-06 05:09:34 +0000164 return false; // success!
165}
166
Chris Lattner47877052006-09-04 04:16:09 +0000167/// addPassesToEmitMachineCode - Add passes to the specified pass manager to
168/// get machine code emitted. This uses a MachineCodeEmitter object to handle
169/// actually outputting the machine code and resolving things like the address
170/// of functions. This method should returns true if machine code emission is
171/// not supported.
172///
Dan Gohmanbfae8312008-03-11 22:29:46 +0000173bool LLVMTargetMachine::addPassesToEmitMachineCode(PassManagerBase &PM,
Chris Lattner47877052006-09-04 04:16:09 +0000174 MachineCodeEmitter &MCE,
Bill Wendling98a366d2009-04-29 23:29:43 +0000175 CodeGenOpt::Level OptLevel) {
Dan Gohman02dae4b2008-09-25 00:37:07 +0000176 // Add common CodeGen passes.
Bill Wendlingbe8cc2a2009-04-29 00:15:41 +0000177 if (addCommonCodeGenPasses(PM, OptLevel))
Dan Gohman02dae4b2008-09-25 00:37:07 +0000178 return true;
179
Bill Wendlingbe8cc2a2009-04-29 00:15:41 +0000180 if (addPreEmitPass(PM, OptLevel) && PrintMachineCode)
Dan Gohman02dae4b2008-09-25 00:37:07 +0000181 PM.add(createMachineFunctionPrinterPass(cerr));
182
Daniel Dunbarcfe9a602009-07-15 22:33:19 +0000183 addCodeEmitter(PM, OptLevel, MCE);
184 if (PrintEmittedAsm)
185 addAssemblyEmitter(PM, OptLevel, true, ferrs());
Dan Gohman02dae4b2008-09-25 00:37:07 +0000186
187 PM.add(createGCInfoDeleter());
188
Dan Gohman02dae4b2008-09-25 00:37:07 +0000189 return false; // success!
190}
191
Bruno Cardoso Lopesa3f99f92009-05-30 20:51:52 +0000192/// addPassesToEmitMachineCode - Add passes to the specified pass manager to
193/// get machine code emitted. This uses a MachineCodeEmitter object to handle
194/// actually outputting the machine code and resolving things like the address
195/// of functions. This method should returns true if machine code emission is
196/// not supported.
197///
198bool LLVMTargetMachine::addPassesToEmitMachineCode(PassManagerBase &PM,
199 JITCodeEmitter &JCE,
200 CodeGenOpt::Level OptLevel) {
201 // Add common CodeGen passes.
202 if (addCommonCodeGenPasses(PM, OptLevel))
203 return true;
204
205 if (addPreEmitPass(PM, OptLevel) && PrintMachineCode)
206 PM.add(createMachineFunctionPrinterPass(cerr));
207
Daniel Dunbarcfe9a602009-07-15 22:33:19 +0000208 addCodeEmitter(PM, OptLevel, JCE);
209 if (PrintEmittedAsm)
210 addAssemblyEmitter(PM, OptLevel, true, ferrs());
Bruno Cardoso Lopesa3f99f92009-05-30 20:51:52 +0000211
212 PM.add(createGCInfoDeleter());
213
Bruno Cardoso Lopesa3f99f92009-05-30 20:51:52 +0000214 return false; // success!
215}
216
Jakob Stoklund Olesen48872e02009-05-16 00:33:53 +0000217static void printAndVerify(PassManagerBase &PM,
218 bool allowDoubleDefs = false) {
219 if (PrintMachineCode)
220 PM.add(createMachineFunctionPrinterPass(cerr));
221
222 if (VerifyMachineCode)
223 PM.add(createMachineVerifierPass(allowDoubleDefs));
224}
225
Bill Wendling98a366d2009-04-29 23:29:43 +0000226/// addCommonCodeGenPasses - Add standard LLVM codegen passes used for both
227/// emitting to assembly files or machine code output.
Dan Gohman02dae4b2008-09-25 00:37:07 +0000228///
Bill Wendlingbe8cc2a2009-04-29 00:15:41 +0000229bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
Bill Wendling98a366d2009-04-29 23:29:43 +0000230 CodeGenOpt::Level OptLevel) {
Chris Lattner47877052006-09-04 04:16:09 +0000231 // Standard LLVM-Level Passes.
Dan Gohman02dae4b2008-09-25 00:37:07 +0000232
Chris Lattner47877052006-09-04 04:16:09 +0000233 // Run loop strength reduction before anything else.
Bill Wendling98a366d2009-04-29 23:29:43 +0000234 if (OptLevel != CodeGenOpt::None) {
Chris Lattnerc8d288f2007-03-31 04:18:03 +0000235 PM.add(createLoopStrengthReducePass(getTargetLowering()));
236 if (PrintLSR)
Daniel Dunbar3b0da262008-10-22 03:25:22 +0000237 PM.add(createPrintFunctionPass("\n\n*** Code after LSR ***\n", &errs()));
Chris Lattnerc8d288f2007-03-31 04:18:03 +0000238 }
Dan Gohman02dae4b2008-09-25 00:37:07 +0000239
Duncan Sandsb0f1e172009-05-22 20:36:31 +0000240 // Turn exception handling constructs into something the code generators can
241 // handle.
Jim Grosbach1b747ad2009-08-11 00:09:57 +0000242 switch (getTargetAsmInfo()->getExceptionHandlingType())
243 {
244 // SjLj piggy-backs on dwarf for this bit
245 case ExceptionHandling::SjLj:
246 case ExceptionHandling::Dwarf:
Duncan Sandsb0f1e172009-05-22 20:36:31 +0000247 PM.add(createDwarfEHPass(getTargetLowering(), OptLevel==CodeGenOpt::None));
Jim Grosbach1b747ad2009-08-11 00:09:57 +0000248 break;
249 case ExceptionHandling::None:
250 PM.add(createLowerInvokePass(getTargetLowering()));
251 break;
252 }
Duncan Sandsb0f1e172009-05-22 20:36:31 +0000253
254 PM.add(createGCLoweringPass());
Dan Gohman02dae4b2008-09-25 00:37:07 +0000255
Chris Lattner47877052006-09-04 04:16:09 +0000256 // Make sure that no unreachable blocks are instruction selected.
257 PM.add(createUnreachableBlockEliminationPass());
Bill Wendling04523ea2007-02-08 01:36:53 +0000258
Bill Wendling98a366d2009-04-29 23:29:43 +0000259 if (OptLevel != CodeGenOpt::None)
Chris Lattnerc8d288f2007-03-31 04:18:03 +0000260 PM.add(createCodeGenPreparePass(getTargetLowering()));
261
Bill Wendlinge9e6bdf2008-11-13 01:02:14 +0000262 PM.add(createStackProtectorPass(getTargetLowering()));
Bill Wendling2b58ce52008-11-04 02:10:20 +0000263
Chris Lattnerc8d288f2007-03-31 04:18:03 +0000264 if (PrintISelInput)
Daniel Dunbarf4db3a52008-10-21 23:33:38 +0000265 PM.add(createPrintFunctionPass("\n\n"
266 "*** Final LLVM Code input to ISel ***\n",
Daniel Dunbar3b0da262008-10-22 03:25:22 +0000267 &errs()));
Chris Lattnerc8d288f2007-03-31 04:18:03 +0000268
Dan Gohman02dae4b2008-09-25 00:37:07 +0000269 // Standard Lower-Level Passes.
270
Dan Gohmanad2afc22009-07-31 18:16:33 +0000271 // Set up a MachineFunction for the rest of CodeGen to work on.
272 PM.add(new MachineFunctionAnalysis(*this, OptLevel));
273
Dan Gohmandc756852008-10-01 20:39:19 +0000274 // Enable FastISel with -fast, but allow that to be overridden.
Dan Gohmaneb0d6ab2008-10-07 23:00:56 +0000275 if (EnableFastISelOption == cl::BOU_TRUE ||
Bill Wendling98a366d2009-04-29 23:29:43 +0000276 (OptLevel == CodeGenOpt::None && EnableFastISelOption != cl::BOU_FALSE))
Dan Gohmandc756852008-10-01 20:39:19 +0000277 EnableFastISel = true;
278
Chris Lattner47877052006-09-04 04:16:09 +0000279 // Ask the target for an isel.
Bill Wendlingbe8cc2a2009-04-29 00:15:41 +0000280 if (addInstSelector(PM, OptLevel))
Chris Lattner47877052006-09-04 04:16:09 +0000281 return true;
Bill Wendling04523ea2007-02-08 01:36:53 +0000282
Chris Lattner47877052006-09-04 04:16:09 +0000283 // Print the instruction selected machine code...
Jakob Stoklund Olesen48872e02009-05-16 00:33:53 +0000284 printAndVerify(PM, /* allowDoubleDefs= */ true);
Bill Wendling0f940c92007-12-07 21:42:31 +0000285
Bill Wendling98a366d2009-04-29 23:29:43 +0000286 if (OptLevel != CodeGenOpt::None) {
Bill Wendlingcc8f6032008-01-04 08:11:03 +0000287 PM.add(createMachineLICMPass());
Chris Lattner3c42f122008-01-05 06:14:16 +0000288 PM.add(createMachineSinkingPass());
Evan Cheng8799dbe2009-07-13 23:44:01 +0000289 printAndVerify(PM, /* allowDoubleDefs= */ true);
Evan Cheng8f0d99e2009-02-09 08:45:39 +0000290 }
Bill Wendling0f940c92007-12-07 21:42:31 +0000291
Anton Korobeynikovb013f502008-04-23 18:26:03 +0000292 // Run pre-ra passes.
Jakob Stoklund Olesen48872e02009-05-16 00:33:53 +0000293 if (addPreRegAlloc(PM, OptLevel))
294 printAndVerify(PM);
Anton Korobeynikovb013f502008-04-23 18:26:03 +0000295
Evan Cheng3f32d652008-06-04 09:18:41 +0000296 // Perform register allocation.
Chris Lattner47877052006-09-04 04:16:09 +0000297 PM.add(createRegisterAllocator());
Evan Cheng3f32d652008-06-04 09:18:41 +0000298
299 // Perform stack slot coloring.
Bill Wendling98a366d2009-04-29 23:29:43 +0000300 if (OptLevel != CodeGenOpt::None)
Evan Cheng6248fa42009-08-05 07:26:17 +0000301 // FIXME: Re-enable coloring with register when it's capable of adding
302 // kill markers.
303 PM.add(createStackSlotColoringPass(false));
Evan Cheng3f32d652008-06-04 09:18:41 +0000304
Jakob Stoklund Olesen48872e02009-05-16 00:33:53 +0000305 printAndVerify(PM); // Print the register-allocated code
Dan Gohman02dae4b2008-09-25 00:37:07 +0000306
Evan Cheng3f32d652008-06-04 09:18:41 +0000307 // Run post-ra passes.
Jakob Stoklund Olesen48872e02009-05-16 00:33:53 +0000308 if (addPostRegAlloc(PM, OptLevel))
309 printAndVerify(PM);
Dan Gohman02dae4b2008-09-25 00:37:07 +0000310
Christopher Lambada779f2007-07-27 07:36:14 +0000311 PM.add(createLowerSubregsPass());
Jakob Stoklund Olesen48872e02009-05-16 00:33:53 +0000312 printAndVerify(PM);
Bill Wendling04523ea2007-02-08 01:36:53 +0000313
Chris Lattner47877052006-09-04 04:16:09 +0000314 // Insert prolog/epilog code. Eliminate abstract frame index references...
315 PM.add(createPrologEpilogCodeInserter());
Jakob Stoklund Olesen48872e02009-05-16 00:33:53 +0000316 printAndVerify(PM);
Dan Gohman02dae4b2008-09-25 00:37:07 +0000317
Dale Johannesene7e7d0d2007-07-13 17:13:54 +0000318 // Second pass scheduler.
Bill Wendling98a366d2009-04-29 23:29:43 +0000319 if (OptLevel != CodeGenOpt::None && !DisablePostRAScheduler) {
Dale Johannesen72f15962007-07-13 17:31:29 +0000320 PM.add(createPostRAScheduler());
Jakob Stoklund Olesen48872e02009-05-16 00:33:53 +0000321 printAndVerify(PM);
Dan Gohman5ce09732008-11-20 19:54:21 +0000322 }
323
Dan Gohman23b0d492008-12-18 01:36:42 +0000324 // Branch folding must be run after regalloc and prolog/epilog insertion.
Jakob Stoklund Olesen48872e02009-05-16 00:33:53 +0000325 if (OptLevel != CodeGenOpt::None) {
Dan Gohman23b0d492008-12-18 01:36:42 +0000326 PM.add(createBranchFoldingPass(getEnableTailMergeDefault()));
Jakob Stoklund Olesen48872e02009-05-16 00:33:53 +0000327 printAndVerify(PM);
328 }
Dan Gohman23b0d492008-12-18 01:36:42 +0000329
Gordon Henriksen93f96d02008-01-07 01:33:09 +0000330 PM.add(createGCMachineCodeAnalysisPass());
Jakob Stoklund Olesen48872e02009-05-16 00:33:53 +0000331 printAndVerify(PM);
Dan Gohman02dae4b2008-09-25 00:37:07 +0000332
Gordon Henriksen93f96d02008-01-07 01:33:09 +0000333 if (PrintGCInfo)
Gordon Henriksen5eca0752008-08-17 18:44:35 +0000334 PM.add(createGCInfoPrinter(*cerr));
Bill Wendling04523ea2007-02-08 01:36:53 +0000335
Dan Gohman02dae4b2008-09-25 00:37:07 +0000336 return false;
Chris Lattner47877052006-09-04 04:16:09 +0000337}