Chris Lattner | 76351aa | 2004-04-02 05:06:57 +0000 | [diff] [blame] | 1 | //===- opt.cpp - The LLVM Modular Optimizer -------------------------------===// |
Misha Brukman | 3da94ae | 2005-04-22 00:00:37 +0000 | [diff] [blame] | 2 | // |
John Criswell | 7c0e022 | 2003-10-20 17:47:21 +0000 | [diff] [blame] | 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file was developed by the LLVM research group and is distributed under |
| 6 | // the University of Illinois Open Source License. See LICENSE.TXT for details. |
Misha Brukman | 3da94ae | 2005-04-22 00:00:37 +0000 | [diff] [blame] | 7 | // |
John Criswell | 7c0e022 | 2003-10-20 17:47:21 +0000 | [diff] [blame] | 8 | //===----------------------------------------------------------------------===// |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 9 | // |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 10 | // Optimizations may be specified an arbitrary number of times on the command |
Reid Spencer | fd90dd5 | 2006-08-18 06:34:30 +0000 | [diff] [blame^] | 11 | // line, They are run in the order specified. |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 12 | // |
Chris Lattner | 0eafc31 | 2001-10-18 06:05:15 +0000 | [diff] [blame] | 13 | //===----------------------------------------------------------------------===// |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 14 | |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 15 | #include "llvm/Module.h" |
Reid Spencer | fd90dd5 | 2006-08-18 06:34:30 +0000 | [diff] [blame^] | 16 | #include "llvm/Assembly/Parser.h" |
Chris Lattner | fb1b3f1 | 2002-01-31 00:47:12 +0000 | [diff] [blame] | 17 | #include "llvm/PassManager.h" |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 18 | #include "llvm/Bytecode/Reader.h" |
Chris Lattner | fb1b3f1 | 2002-01-31 00:47:12 +0000 | [diff] [blame] | 19 | #include "llvm/Bytecode/WriteBytecodePass.h" |
Chris Lattner | ffa6f9c | 2001-10-19 15:39:14 +0000 | [diff] [blame] | 20 | #include "llvm/Assembly/PrintModulePass.h" |
Chris Lattner | 22d26d7 | 2002-02-20 17:56:53 +0000 | [diff] [blame] | 21 | #include "llvm/Analysis/Verifier.h" |
Owen Anderson | 07000c6 | 2006-05-12 06:33:49 +0000 | [diff] [blame] | 22 | #include "llvm/Target/TargetData.h" |
Vikram S. Adve | 18fdfc4 | 2002-09-16 16:09:43 +0000 | [diff] [blame] | 23 | #include "llvm/Target/TargetMachine.h" |
Chris Lattner | 2053a2a | 2002-07-26 21:09:32 +0000 | [diff] [blame] | 24 | #include "llvm/Support/PassNameParser.h" |
Chris Lattner | bed85ff | 2004-05-27 05:41:36 +0000 | [diff] [blame] | 25 | #include "llvm/System/Signals.h" |
Reid Spencer | 551ccae | 2004-09-01 22:55:40 +0000 | [diff] [blame] | 26 | #include "llvm/Support/PluginLoader.h" |
| 27 | #include "llvm/Support/SystemUtils.h" |
Reid Spencer | fd90dd5 | 2006-08-18 06:34:30 +0000 | [diff] [blame^] | 28 | #include "llvm/Support/Timer.h" |
| 29 | #include "llvm/Analysis/LinkAllAnalyses.h" |
Jeff Cohen | 4b807e0 | 2005-01-06 06:02:53 +0000 | [diff] [blame] | 30 | #include "llvm/Transforms/LinkAllPasses.h" |
Reid Spencer | af303d5 | 2006-06-07 23:03:13 +0000 | [diff] [blame] | 31 | #include "llvm/LinkAllVMCore.h" |
Chris Lattner | 73e11d7 | 2001-10-18 06:13:08 +0000 | [diff] [blame] | 32 | #include <fstream> |
Chris Lattner | 6320232 | 2001-11-26 19:22:39 +0000 | [diff] [blame] | 33 | #include <memory> |
Chris Lattner | c0ce68b | 2002-07-23 18:12:22 +0000 | [diff] [blame] | 34 | #include <algorithm> |
Anand Shukla | 63aaa11 | 2002-06-25 21:43:28 +0000 | [diff] [blame] | 35 | |
Brian Gaeke | d0fde30 | 2003-11-11 22:41:34 +0000 | [diff] [blame] | 36 | using namespace llvm; |
Chris Lattner | 9d6e7eb | 2002-04-12 18:21:13 +0000 | [diff] [blame] | 37 | |
Chris Lattner | c0ce68b | 2002-07-23 18:12:22 +0000 | [diff] [blame] | 38 | // The OptimizationList is automatically populated with registered Passes by the |
| 39 | // PassNameParser. |
| 40 | // |
Chris Lattner | 2053a2a | 2002-07-26 21:09:32 +0000 | [diff] [blame] | 41 | static cl::list<const PassInfo*, bool, |
| 42 | FilteredPassNameParser<PassInfo::Optimization> > |
Chris Lattner | c0ce68b | 2002-07-23 18:12:22 +0000 | [diff] [blame] | 43 | OptimizationList(cl::desc("Optimizations available:")); |
| 44 | |
| 45 | |
| 46 | // Other command line options... |
Chris Lattner | fb1b3f1 | 2002-01-31 00:47:12 +0000 | [diff] [blame] | 47 | // |
Chris Lattner | 6c8103f | 2003-05-22 20:13:16 +0000 | [diff] [blame] | 48 | static cl::opt<std::string> |
Reid Spencer | fd90dd5 | 2006-08-18 06:34:30 +0000 | [diff] [blame^] | 49 | InputFilename(cl::Positional, cl::desc("<input bytecode file>"), |
| 50 | cl::init("-"), cl::value_desc("filename")); |
Chris Lattner | 5ff62e9 | 2002-07-22 02:10:13 +0000 | [diff] [blame] | 51 | |
Chris Lattner | 6c8103f | 2003-05-22 20:13:16 +0000 | [diff] [blame] | 52 | static cl::opt<std::string> |
Chris Lattner | 5ff62e9 | 2002-07-22 02:10:13 +0000 | [diff] [blame] | 53 | OutputFilename("o", cl::desc("Override output filename"), |
Chris Lattner | b592fc2 | 2003-12-10 14:41:33 +0000 | [diff] [blame] | 54 | cl::value_desc("filename"), cl::init("-")); |
Chris Lattner | 5ff62e9 | 2002-07-22 02:10:13 +0000 | [diff] [blame] | 55 | |
| 56 | static cl::opt<bool> |
| 57 | Force("f", cl::desc("Overwrite output files")); |
| 58 | |
| 59 | static cl::opt<bool> |
| 60 | PrintEachXForm("p", cl::desc("Print module after each transformation")); |
| 61 | |
| 62 | static cl::opt<bool> |
Chris Lattner | ddd5b41 | 2003-02-26 20:00:41 +0000 | [diff] [blame] | 63 | NoOutput("disable-output", |
| 64 | cl::desc("Do not write result bytecode file"), cl::Hidden); |
Chris Lattner | d70b68e | 2003-02-12 18:43:33 +0000 | [diff] [blame] | 65 | |
| 66 | static cl::opt<bool> |
Chris Lattner | ddd5b41 | 2003-02-26 20:00:41 +0000 | [diff] [blame] | 67 | NoVerify("disable-verify", cl::desc("Do not verify result module"), cl::Hidden); |
Chris Lattner | f3bafc1 | 2003-02-12 18:45:08 +0000 | [diff] [blame] | 68 | |
| 69 | static cl::opt<bool> |
Chris Lattner | 3153e4f | 2004-05-27 20:32:10 +0000 | [diff] [blame] | 70 | Quiet("q", cl::desc("Obsolete option"), cl::Hidden); |
Chris Lattner | 5ff62e9 | 2002-07-22 02:10:13 +0000 | [diff] [blame] | 71 | |
Reid Spencer | ec7eb45 | 2004-05-27 16:28:54 +0000 | [diff] [blame] | 72 | static cl::alias |
| 73 | QuietA("quiet", cl::desc("Alias for -q"), cl::aliasopt(Quiet)); |
| 74 | |
Reid Spencer | fd90dd5 | 2006-08-18 06:34:30 +0000 | [diff] [blame^] | 75 | static cl::opt<bool> |
| 76 | AnalyzeOnly("analyze", cl::desc("Only perform analysis, no optimization")); |
| 77 | |
| 78 | // The AnalysesList is automatically populated with registered Passes by the |
| 79 | // PassNameParser. |
| 80 | static |
| 81 | cl::list<const PassInfo*, bool, FilteredPassNameParser<PassInfo::Analysis> > |
| 82 | AnalysesList(cl::desc("Analyses available:")); |
| 83 | |
| 84 | static Timer BytecodeLoadTimer("Bytecode Loader"); |
| 85 | |
| 86 | // ---------- Define Printers for module and function passes ------------ |
| 87 | namespace { |
| 88 | |
| 89 | struct ModulePassPrinter : public ModulePass { |
| 90 | const PassInfo *PassToPrint; |
| 91 | ModulePassPrinter(const PassInfo *PI) : PassToPrint(PI) {} |
| 92 | |
| 93 | virtual bool runOnModule(Module &M) { |
| 94 | if (!Quiet) { |
| 95 | std::cout << "Printing analysis '" << PassToPrint->getPassName() |
| 96 | << "':\n"; |
| 97 | getAnalysisID<Pass>(PassToPrint).print(std::cout, &M); |
| 98 | } |
| 99 | |
| 100 | // Get and print pass... |
| 101 | return false; |
| 102 | } |
| 103 | |
| 104 | virtual const char *getPassName() const { return "'Pass' Printer"; } |
| 105 | |
| 106 | virtual void getAnalysisUsage(AnalysisUsage &AU) const { |
| 107 | AU.addRequiredID(PassToPrint); |
| 108 | AU.setPreservesAll(); |
| 109 | } |
| 110 | }; |
| 111 | |
| 112 | struct FunctionPassPrinter : public FunctionPass { |
| 113 | const PassInfo *PassToPrint; |
| 114 | FunctionPassPrinter(const PassInfo *PI) : PassToPrint(PI) {} |
| 115 | |
| 116 | virtual bool runOnFunction(Function &F) { |
| 117 | if (!Quiet) { |
| 118 | std::cout << "Printing analysis '" << PassToPrint->getPassName() |
| 119 | << "' for function '" << F.getName() << "':\n"; |
| 120 | } |
| 121 | // Get and print pass... |
| 122 | getAnalysisID<Pass>(PassToPrint).print(std::cout, F.getParent()); |
| 123 | return false; |
| 124 | } |
| 125 | |
| 126 | virtual const char *getPassName() const { return "FunctionPass Printer"; } |
| 127 | |
| 128 | virtual void getAnalysisUsage(AnalysisUsage &AU) const { |
| 129 | AU.addRequiredID(PassToPrint); |
| 130 | AU.setPreservesAll(); |
| 131 | } |
| 132 | }; |
| 133 | |
| 134 | struct BasicBlockPassPrinter : public BasicBlockPass { |
| 135 | const PassInfo *PassToPrint; |
| 136 | BasicBlockPassPrinter(const PassInfo *PI) : PassToPrint(PI) {} |
| 137 | |
| 138 | virtual bool runOnBasicBlock(BasicBlock &BB) { |
| 139 | if (!Quiet) { |
| 140 | std::cout << "Printing Analysis info for BasicBlock '" << BB.getName() |
| 141 | << "': Pass " << PassToPrint->getPassName() << ":\n"; |
| 142 | } |
| 143 | |
| 144 | // Get and print pass... |
| 145 | getAnalysisID<Pass>(PassToPrint).print( |
| 146 | std::cout, BB.getParent()->getParent()); |
| 147 | return false; |
| 148 | } |
| 149 | |
| 150 | virtual const char *getPassName() const { return "BasicBlockPass Printer"; } |
| 151 | |
| 152 | virtual void getAnalysisUsage(AnalysisUsage &AU) const { |
| 153 | AU.addRequiredID(PassToPrint); |
| 154 | AU.setPreservesAll(); |
| 155 | } |
| 156 | }; |
| 157 | |
| 158 | } // anonymous namespace |
| 159 | |
Chris Lattner | 0be4101 | 2002-02-01 04:54:11 +0000 | [diff] [blame] | 160 | |
Chris Lattner | c0ce68b | 2002-07-23 18:12:22 +0000 | [diff] [blame] | 161 | //===----------------------------------------------------------------------===// |
| 162 | // main for opt |
| 163 | // |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 164 | int main(int argc, char **argv) { |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 165 | try { |
| 166 | cl::ParseCommandLineOptions(argc, argv, |
Reid Spencer | fd90dd5 | 2006-08-18 06:34:30 +0000 | [diff] [blame^] | 167 | " llvm .bc -> .bc modular optimizer and analysis printer \n"); |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 168 | sys::PrintStackTraceOnErrorSignal(); |
Chris Lattner | fb1b3f1 | 2002-01-31 00:47:12 +0000 | [diff] [blame] | 169 | |
Reid Spencer | fd90dd5 | 2006-08-18 06:34:30 +0000 | [diff] [blame^] | 170 | if (AnalyzeOnly) { |
| 171 | Module *CurMod = 0; |
| 172 | try { |
| 173 | #if 0 |
| 174 | TimeRegion RegionTimer(BytecodeLoadTimer); |
| 175 | #endif |
| 176 | CurMod = ParseBytecodeFile(InputFilename); |
| 177 | if (!CurMod && !(CurMod = ParseAssemblyFile(InputFilename))){ |
| 178 | std::cerr << argv[0] << ": input file didn't read correctly.\n"; |
| 179 | return 1; |
| 180 | } |
| 181 | } catch (const ParseException &E) { |
| 182 | std::cerr << argv[0] << ": " << E.getMessage() << "\n"; |
| 183 | return 1; |
| 184 | } |
| 185 | |
| 186 | // Create a PassManager to hold and optimize the collection of passes we |
| 187 | // are about to build... |
| 188 | PassManager Passes; |
| 189 | |
| 190 | // Add an appropriate TargetData instance for this module... |
| 191 | Passes.add(new TargetData(CurMod)); |
| 192 | |
| 193 | // Make sure the input LLVM is well formed. |
| 194 | if (!NoVerify) |
| 195 | Passes.add(createVerifierPass()); |
| 196 | |
| 197 | // Create a new optimization pass for each one specified on the |
| 198 | // command line |
| 199 | for (unsigned i = 0; i < AnalysesList.size(); ++i) { |
| 200 | const PassInfo *Analysis = AnalysesList[i]; |
| 201 | |
| 202 | if (Analysis->getNormalCtor()) { |
| 203 | Pass *P = Analysis->getNormalCtor()(); |
| 204 | Passes.add(P); |
| 205 | |
| 206 | if (BasicBlockPass *BBP = dynamic_cast<BasicBlockPass*>(P)) |
| 207 | Passes.add(new BasicBlockPassPrinter(Analysis)); |
| 208 | else if (FunctionPass *FP = dynamic_cast<FunctionPass*>(P)) |
| 209 | Passes.add(new FunctionPassPrinter(Analysis)); |
| 210 | else |
| 211 | Passes.add(new ModulePassPrinter(Analysis)); |
| 212 | |
| 213 | } else |
| 214 | std::cerr << argv[0] << ": cannot create pass: " |
| 215 | << Analysis->getPassName() << "\n"; |
| 216 | } |
| 217 | |
| 218 | Passes.run(*CurMod); |
| 219 | |
| 220 | delete CurMod; |
| 221 | return 0; |
| 222 | } |
| 223 | |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 224 | // Allocate a full target machine description only if necessary... |
| 225 | // FIXME: The choice of target should be controllable on the command line. |
| 226 | std::auto_ptr<TargetMachine> target; |
Vikram S. Adve | 18fdfc4 | 2002-09-16 16:09:43 +0000 | [diff] [blame] | 227 | |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 228 | TargetMachine* TM = NULL; |
| 229 | std::string ErrorMessage; |
Vikram S. Adve | 18fdfc4 | 2002-09-16 16:09:43 +0000 | [diff] [blame] | 230 | |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 231 | // Load the input module... |
| 232 | std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename, &ErrorMessage)); |
| 233 | if (M.get() == 0) { |
| 234 | std::cerr << argv[0] << ": "; |
| 235 | if (ErrorMessage.size()) |
| 236 | std::cerr << ErrorMessage << "\n"; |
| 237 | else |
| 238 | std::cerr << "bytecode didn't read correctly.\n"; |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 239 | return 1; |
| 240 | } |
Chris Lattner | 76d1229 | 2002-04-18 19:55:25 +0000 | [diff] [blame] | 241 | |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 242 | // Figure out what stream we are supposed to write to... |
Jeff Cohen | 5fb6ed4 | 2005-01-22 17:36:17 +0000 | [diff] [blame] | 243 | // FIXME: cout is not binary! |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 244 | std::ostream *Out = &std::cout; // Default to printing to stdout... |
| 245 | if (OutputFilename != "-") { |
| 246 | if (!Force && std::ifstream(OutputFilename.c_str())) { |
| 247 | // If force is not specified, make sure not to overwrite a file! |
| 248 | std::cerr << argv[0] << ": error opening '" << OutputFilename |
| 249 | << "': file exists!\n" |
| 250 | << "Use -f command line argument to force output\n"; |
| 251 | return 1; |
| 252 | } |
Jeff Cohen | 5fb6ed4 | 2005-01-22 17:36:17 +0000 | [diff] [blame] | 253 | std::ios::openmode io_mode = std::ios::out | std::ios::trunc | |
| 254 | std::ios::binary; |
| 255 | Out = new std::ofstream(OutputFilename.c_str(), io_mode); |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 256 | |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 257 | if (!Out->good()) { |
| 258 | std::cerr << argv[0] << ": error opening " << OutputFilename << "!\n"; |
| 259 | return 1; |
| 260 | } |
Chris Lattner | 76351aa | 2004-04-02 05:06:57 +0000 | [diff] [blame] | 261 | |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 262 | // Make sure that the Output file gets unlinked from the disk if we get a |
| 263 | // SIGINT |
| 264 | sys::RemoveFileOnSignal(sys::Path(OutputFilename)); |
| 265 | } |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 266 | |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 267 | // If the output is set to be emitted to standard out, and standard out is a |
Jeff Cohen | 5fb6ed4 | 2005-01-22 17:36:17 +0000 | [diff] [blame] | 268 | // console, print out a warning message and refuse to do it. We don't |
| 269 | // impress anyone by spewing tons of binary goo to a terminal. |
Reid Spencer | 564a571 | 2005-01-05 17:31:55 +0000 | [diff] [blame] | 270 | if (!Force && !NoOutput && CheckBytecodeOutputToConsole(Out,!Quiet)) { |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 271 | NoOutput = true; |
| 272 | } |
Chris Lattner | 9c3b55e | 2003-04-24 19:13:02 +0000 | [diff] [blame] | 273 | |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 274 | // Create a PassManager to hold and optimize the collection of passes we are |
| 275 | // about to build... |
| 276 | // |
| 277 | PassManager Passes; |
| 278 | |
| 279 | // Add an appropriate TargetData instance for this module... |
Chris Lattner | 831b121 | 2006-06-16 18:23:49 +0000 | [diff] [blame] | 280 | Passes.add(new TargetData(M.get())); |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 281 | |
| 282 | // Create a new optimization pass for each one specified on the command line |
| 283 | for (unsigned i = 0; i < OptimizationList.size(); ++i) { |
| 284 | const PassInfo *Opt = OptimizationList[i]; |
Misha Brukman | 3da94ae | 2005-04-22 00:00:37 +0000 | [diff] [blame] | 285 | |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 286 | if (Opt->getNormalCtor()) |
| 287 | Passes.add(Opt->getNormalCtor()()); |
| 288 | else if (Opt->getTargetCtor()) { |
Chris Lattner | 0af1e8e | 2003-04-16 23:02:16 +0000 | [diff] [blame] | 289 | #if 0 |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 290 | if (target.get() == NULL) |
| 291 | target.reset(allocateSparcTargetMachine()); // FIXME: target option |
Chris Lattner | 0af1e8e | 2003-04-16 23:02:16 +0000 | [diff] [blame] | 292 | #endif |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 293 | assert(target.get() && "Could not allocate target machine!"); |
| 294 | Passes.add(Opt->getTargetCtor()(*target.get())); |
| 295 | } else |
| 296 | std::cerr << argv[0] << ": cannot create pass: " << Opt->getPassName() |
| 297 | << "\n"; |
Chris Lattner | fb1b3f1 | 2002-01-31 00:47:12 +0000 | [diff] [blame] | 298 | |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 299 | if (PrintEachXForm) |
| 300 | Passes.add(new PrintModulePass(&std::cerr)); |
| 301 | } |
| 302 | |
| 303 | // Check that the module is well formed on completion of optimization |
| 304 | if (!NoVerify) |
| 305 | Passes.add(createVerifierPass()); |
| 306 | |
| 307 | // Write bytecode out to disk or cout as the last step... |
| 308 | if (!NoOutput) |
| 309 | Passes.add(new WriteBytecodePass(Out, Out != &std::cout)); |
| 310 | |
| 311 | // Now that we have all of the passes ready, run them. |
| 312 | Passes.run(*M.get()); |
| 313 | |
| 314 | return 0; |
Reid Spencer | fd90dd5 | 2006-08-18 06:34:30 +0000 | [diff] [blame^] | 315 | |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 316 | } catch (const std::string& msg) { |
| 317 | std::cerr << argv[0] << ": " << msg << "\n"; |
| 318 | } catch (...) { |
| 319 | std::cerr << argv[0] << ": Unexpected unknown exception occurred.\n"; |
Chris Lattner | fb1b3f1 | 2002-01-31 00:47:12 +0000 | [diff] [blame] | 320 | } |
Reid Spencer | 1ef8bda | 2004-12-30 05:36:08 +0000 | [diff] [blame] | 321 | return 1; |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 322 | } |