blob: f0b06378cadcc2fd9afc906fbaafdbb18b0ad7b0 [file] [log] [blame]
Chris Lattner6b944532002-10-28 01:16:38 +00001//===-- MachineFunction.cpp -----------------------------------------------===//
Chris Lattnerf2868ce2002-02-03 07:54:50 +00002//
John Criswellb576c942003-10-20 19:43:21 +00003// 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.
7//
8//===----------------------------------------------------------------------===//
9//
Chris Lattner6b944532002-10-28 01:16:38 +000010// Collect native machine code information for a function. This allows
11// target-specific information about the generated code to be stored with each
12// function.
13//
14//===----------------------------------------------------------------------===//
Chris Lattnerf2868ce2002-02-03 07:54:50 +000015
Chris Lattner16c45e92003-12-20 10:20:58 +000016#include "llvm/CodeGen/MachineFunctionPass.h"
Chris Lattner831fdcf2002-12-25 05:03:22 +000017#include "llvm/CodeGen/MachineInstr.h"
Chris Lattner831fdcf2002-12-25 05:03:22 +000018#include "llvm/CodeGen/SSARegMap.h"
Chris Lattner955fad12002-12-28 20:37:16 +000019#include "llvm/CodeGen/MachineFunctionInfo.h"
Chris Lattnereb24db92002-12-28 21:08:26 +000020#include "llvm/CodeGen/MachineFrameInfo.h"
Chris Lattner4d149cd2003-01-13 00:23:03 +000021#include "llvm/CodeGen/MachineConstantPool.h"
Chris Lattner16c45e92003-12-20 10:20:58 +000022#include "llvm/CodeGen/Passes.h"
Chris Lattnerf2868ce2002-02-03 07:54:50 +000023#include "llvm/Target/TargetMachine.h"
Chris Lattner8bd66e62002-12-28 21:00:25 +000024#include "llvm/Target/TargetFrameInfo.h"
Chris Lattner2fbfdcf2002-04-07 20:49:59 +000025#include "llvm/Function.h"
Chris Lattnerf2868ce2002-02-03 07:54:50 +000026#include "llvm/iOther.h"
Chris Lattner07f32d42003-12-20 09:17:07 +000027using namespace llvm;
Chris Lattnerf2868ce2002-02-03 07:54:50 +000028
Chris Lattnere316efc2002-10-29 23:18:43 +000029static AnnotationID MF_AID(
Chris Lattner2fbfdcf2002-04-07 20:49:59 +000030 AnnotationManager::getID("CodeGen::MachineCodeForFunction"));
Chris Lattnerf2868ce2002-02-03 07:54:50 +000031
Chris Lattner227c3d32002-10-28 01:12:41 +000032
Chris Lattner227c3d32002-10-28 01:12:41 +000033namespace {
Chris Lattner16c45e92003-12-20 10:20:58 +000034 struct Printer : public MachineFunctionPass {
Brian Gaeke09caa372004-01-30 21:53:46 +000035 std::ostream *OS;
Chris Lattnerd4baf0f2004-02-01 05:25:07 +000036 const std::string Banner;
Brian Gaeke09caa372004-01-30 21:53:46 +000037
38 Printer (std::ostream *_OS, const std::string &_Banner) :
39 OS (_OS), Banner (_Banner) { }
40
Chris Lattner10491642002-10-30 00:48:05 +000041 const char *getPassName() const { return "MachineFunction Printer"; }
42
43 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
44 AU.setPreservesAll();
45 }
46
Chris Lattner16c45e92003-12-20 10:20:58 +000047 bool runOnMachineFunction(MachineFunction &MF) {
Brian Gaeke09caa372004-01-30 21:53:46 +000048 (*OS) << Banner;
49 MF.print (*OS);
Chris Lattner10491642002-10-30 00:48:05 +000050 return false;
51 }
52 };
Chris Lattner227c3d32002-10-28 01:12:41 +000053}
54
Brian Gaeke09caa372004-01-30 21:53:46 +000055/// Returns a newly-created MachineFunction Printer pass. The default output
56/// stream is std::cerr; the default banner is empty.
57///
58FunctionPass *llvm::createMachineFunctionPrinterPass(std::ostream *OS,
59 const std::string &Banner) {
60 return new Printer(OS, Banner);
Chris Lattner10491642002-10-30 00:48:05 +000061}
62
Alkis Evlogimenosc81efdc2004-02-15 00:03:15 +000063namespace {
64 struct Deleter : public MachineFunctionPass {
65 const char *getPassName() const { return "Machine Code Deleter"; }
66
67 bool runOnMachineFunction(MachineFunction &MF) {
68 // Delete the annotation from the function now.
69 MachineFunction::destruct(MF.getFunction());
70 return true;
71 }
72 };
73}
74
75/// MachineCodeDeletion Pass - This pass deletes all of the machine code for
76/// the current function, which should happen after the function has been
77/// emitted to a .s file or to memory.
78FunctionPass *llvm::createMachineCodeDeleter() {
79 return new Deleter();
80}
81
82
83
Chris Lattner227c3d32002-10-28 01:12:41 +000084//===---------------------------------------------------------------------===//
85// MachineFunction implementation
86//===---------------------------------------------------------------------===//
87
Chris Lattner10491642002-10-30 00:48:05 +000088MachineFunction::MachineFunction(const Function *F,
Chris Lattner955fad12002-12-28 20:37:16 +000089 const TargetMachine &TM)
Brian Gaeked657c422004-05-12 21:35:23 +000090 : Annotation(MF_AID), Fn(F), Target(TM), NextMBBNumber(0) {
Misha Brukmanb7825bc2002-11-20 18:55:27 +000091 SSARegMapping = new SSARegMap();
Chris Lattner955fad12002-12-28 20:37:16 +000092 MFInfo = new MachineFunctionInfo(*this);
Chris Lattnereb24db92002-12-28 21:08:26 +000093 FrameInfo = new MachineFrameInfo();
Chris Lattner4d149cd2003-01-13 00:23:03 +000094 ConstantPool = new MachineConstantPool();
Chris Lattner831fdcf2002-12-25 05:03:22 +000095}
96
97MachineFunction::~MachineFunction() {
98 delete SSARegMapping;
Chris Lattner955fad12002-12-28 20:37:16 +000099 delete MFInfo;
100 delete FrameInfo;
Chris Lattner4d149cd2003-01-13 00:23:03 +0000101 delete ConstantPool;
Chris Lattner10491642002-10-30 00:48:05 +0000102}
103
104void MachineFunction::dump() const { print(std::cerr); }
105
106void MachineFunction::print(std::ostream &OS) const {
Brian Gaeke47b71642004-03-29 21:58:31 +0000107 OS << "# Machine code for " << Fn->getName () << "():\n";
Chris Lattner955fad12002-12-28 20:37:16 +0000108
109 // Print Frame Information
Chris Lattner9085d8a2003-01-16 18:35:57 +0000110 getFrameInfo()->print(*this, OS);
Chris Lattner4d149cd2003-01-13 00:23:03 +0000111
112 // Print Constant Pool
113 getConstantPool()->print(OS);
Chris Lattner10491642002-10-30 00:48:05 +0000114
Brian Gaeke90421cd2004-02-13 04:39:55 +0000115 for (const_iterator BB = begin(); BB != end(); ++BB)
116 BB->print(OS);
Brian Gaeke47b71642004-03-29 21:58:31 +0000117
118 OS << "\n# End machine code for " << Fn->getName () << "().\n\n";
Chris Lattner10491642002-10-30 00:48:05 +0000119}
120
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000121// The next two methods are used to construct and to retrieve
Chris Lattner2fbfdcf2002-04-07 20:49:59 +0000122// the MachineCodeForFunction object for the given function.
123// construct() -- Allocates and initializes for a given function and target
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000124// get() -- Returns a handle to the object.
125// This should not be called before "construct()"
Chris Lattner2fbfdcf2002-04-07 20:49:59 +0000126// for a given Function.
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000127//
Misha Brukmanfce11432002-10-28 00:28:31 +0000128MachineFunction&
Chris Lattner335d5c32002-10-28 05:58:46 +0000129MachineFunction::construct(const Function *Fn, const TargetMachine &Tar)
Vikram S. Adve89e2da02002-03-18 03:36:30 +0000130{
Chris Lattnere316efc2002-10-29 23:18:43 +0000131 assert(Fn->getAnnotation(MF_AID) == 0 &&
Chris Lattner2fbfdcf2002-04-07 20:49:59 +0000132 "Object already exists for this function!");
Chris Lattner335d5c32002-10-28 05:58:46 +0000133 MachineFunction* mcInfo = new MachineFunction(Fn, Tar);
134 Fn->addAnnotation(mcInfo);
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000135 return *mcInfo;
136}
137
Chris Lattner16c45e92003-12-20 10:20:58 +0000138void MachineFunction::destruct(const Function *Fn) {
Chris Lattnere316efc2002-10-29 23:18:43 +0000139 bool Deleted = Fn->deleteAnnotation(MF_AID);
Chris Lattner2fbfdcf2002-04-07 20:49:59 +0000140 assert(Deleted && "Machine code did not exist for function!");
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000141}
142
Chris Lattner335d5c32002-10-28 05:58:46 +0000143MachineFunction& MachineFunction::get(const Function *F)
Vikram S. Adve89e2da02002-03-18 03:36:30 +0000144{
Chris Lattnere316efc2002-10-29 23:18:43 +0000145 MachineFunction *mc = (MachineFunction*)F->getAnnotation(MF_AID);
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000146 assert(mc && "Call construct() method first to allocate the object");
147 return *mc;
148}
149
Chris Lattner831fdcf2002-12-25 05:03:22 +0000150void MachineFunction::clearSSARegMap() {
151 delete SSARegMapping;
152 SSARegMapping = 0;
153}
154
Chris Lattner955fad12002-12-28 20:37:16 +0000155//===----------------------------------------------------------------------===//
Chris Lattnereb24db92002-12-28 21:08:26 +0000156// MachineFrameInfo implementation
Chris Lattner955fad12002-12-28 20:37:16 +0000157//===----------------------------------------------------------------------===//
158
Chris Lattner4d149cd2003-01-13 00:23:03 +0000159/// CreateStackObject - Create a stack object for a value of the specified type.
160///
161int MachineFrameInfo::CreateStackObject(const Type *Ty, const TargetData &TD) {
162 return CreateStackObject(TD.getTypeSize(Ty), TD.getTypeAlignment(Ty));
163}
164
165int MachineFrameInfo::CreateStackObject(const TargetRegisterClass *RC) {
166 return CreateStackObject(RC->getSize(), RC->getAlignment());
167}
168
169
Chris Lattner9085d8a2003-01-16 18:35:57 +0000170void MachineFrameInfo::print(const MachineFunction &MF, std::ostream &OS) const{
171 int ValOffset = MF.getTarget().getFrameInfo().getOffsetOfLocalArea();
172
Chris Lattner955fad12002-12-28 20:37:16 +0000173 for (unsigned i = 0, e = Objects.size(); i != e; ++i) {
174 const StackObject &SO = Objects[i];
Chris Lattner4d149cd2003-01-13 00:23:03 +0000175 OS << " <fi #" << (int)(i-NumFixedObjects) << "> is ";
Chris Lattner955fad12002-12-28 20:37:16 +0000176 if (SO.Size == 0)
177 OS << "variable sized";
178 else
179 OS << SO.Size << " byte" << (SO.Size != 1 ? "s" : " ");
180
181 if (i < NumFixedObjects)
182 OS << " fixed";
183 if (i < NumFixedObjects || SO.SPOffset != -1) {
Chris Lattner9085d8a2003-01-16 18:35:57 +0000184 int Off = SO.SPOffset + ValOffset;
Chris Lattner955fad12002-12-28 20:37:16 +0000185 OS << " at location [SP";
Chris Lattner9085d8a2003-01-16 18:35:57 +0000186 if (Off > 0)
187 OS << "+" << Off;
188 else if (Off < 0)
189 OS << Off;
Chris Lattner955fad12002-12-28 20:37:16 +0000190 OS << "]";
191 }
192 OS << "\n";
193 }
194
195 if (HasVarSizedObjects)
196 OS << " Stack frame contains variable sized objects\n";
197}
198
Chris Lattner9085d8a2003-01-16 18:35:57 +0000199void MachineFrameInfo::dump(const MachineFunction &MF) const {
200 print(MF, std::cerr);
201}
Chris Lattner955fad12002-12-28 20:37:16 +0000202
203
204//===----------------------------------------------------------------------===//
Chris Lattner4d149cd2003-01-13 00:23:03 +0000205// MachineConstantPool implementation
206//===----------------------------------------------------------------------===//
207
208void MachineConstantPool::print(std::ostream &OS) const {
209 for (unsigned i = 0, e = Constants.size(); i != e; ++i)
210 OS << " <cp #" << i << "> is" << *(Value*)Constants[i] << "\n";
211}
212
213void MachineConstantPool::dump() const { print(std::cerr); }
214
215//===----------------------------------------------------------------------===//
Chris Lattner955fad12002-12-28 20:37:16 +0000216// MachineFunctionInfo implementation
217//===----------------------------------------------------------------------===//
Chris Lattner831fdcf2002-12-25 05:03:22 +0000218
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000219static unsigned
Vikram S. Adve03d33bd2002-04-25 04:30:43 +0000220ComputeMaxOptionalArgsSize(const TargetMachine& target, const Function *F,
221 unsigned &maxOptionalNumArgs)
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000222{
Chris Lattner955fad12002-12-28 20:37:16 +0000223 const TargetFrameInfo &frameInfo = target.getFrameInfo();
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000224
Chris Lattner0b12b5f2002-06-25 16:13:21 +0000225 unsigned maxSize = 0;
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000226
Chris Lattner0b12b5f2002-06-25 16:13:21 +0000227 for (Function::const_iterator BB = F->begin(), BBE = F->end(); BB !=BBE; ++BB)
228 for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I != E; ++I)
Chris Lattner2ee82e02003-04-23 16:36:11 +0000229 if (const CallInst *callInst = dyn_cast<CallInst>(I))
Chris Lattner0b12b5f2002-06-25 16:13:21 +0000230 {
231 unsigned numOperands = callInst->getNumOperands() - 1;
232 int numExtra = (int)numOperands-frameInfo.getNumFixedOutgoingArgs();
233 if (numExtra <= 0)
234 continue;
235
Chris Lattner955fad12002-12-28 20:37:16 +0000236 unsigned sizeForThisCall;
Chris Lattner0b12b5f2002-06-25 16:13:21 +0000237 if (frameInfo.argsOnStackHaveFixedSize())
238 {
239 int argSize = frameInfo.getSizeOfEachArgOnStack();
240 sizeForThisCall = numExtra * (unsigned) argSize;
241 }
242 else
243 {
244 assert(0 && "UNTESTED CODE: Size per stack argument is not "
245 "fixed on this architecture: use actual arg sizes to "
246 "compute MaxOptionalArgsSize");
247 sizeForThisCall = 0;
248 for (unsigned i = 0; i < numOperands; ++i)
Chris Lattner955fad12002-12-28 20:37:16 +0000249 sizeForThisCall += target.getTargetData().getTypeSize(callInst->
Chris Lattner0b12b5f2002-06-25 16:13:21 +0000250 getOperand(i)->getType());
251 }
252
253 if (maxSize < sizeForThisCall)
254 maxSize = sizeForThisCall;
255
256 if ((int)maxOptionalNumArgs < numExtra)
257 maxOptionalNumArgs = (unsigned) numExtra;
258 }
Vikram S. Adve89e2da02002-03-18 03:36:30 +0000259
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000260 return maxSize;
261}
262
263// Align data larger than one L1 cache line on L1 cache line boundaries.
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000264// Align all smaller data on the next higher 2^x boundary (4, 8, ...),
265// but not higher than the alignment of the largest type we support
266// (currently a double word). -- see class TargetData).
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000267//
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000268// This function is similar to the corresponding function in EmitAssembly.cpp
269// but they are unrelated. This one does not align at more than a
270// double-word boundary whereas that one might.
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000271//
Chris Lattner955fad12002-12-28 20:37:16 +0000272inline unsigned
273SizeToAlignment(unsigned size, const TargetMachine& target)
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000274{
Brian Gaeke05b15fb2004-03-01 06:43:29 +0000275 const unsigned short cacheLineSize = 16;
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000276 if (size > (unsigned) cacheLineSize / 2)
277 return cacheLineSize;
278 else
279 for (unsigned sz=1; /*no condition*/; sz *= 2)
Chris Lattner955fad12002-12-28 20:37:16 +0000280 if (sz >= size || sz >= target.getTargetData().getDoubleAlignment())
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000281 return sz;
282}
283
284
Chris Lattner955fad12002-12-28 20:37:16 +0000285void MachineFunctionInfo::CalculateArgSize() {
286 maxOptionalArgsSize = ComputeMaxOptionalArgsSize(MF.getTarget(),
287 MF.getFunction(),
Vikram S. Adve03d33bd2002-04-25 04:30:43 +0000288 maxOptionalNumArgs);
Vikram S. Adve89e2da02002-03-18 03:36:30 +0000289 staticStackSize = maxOptionalArgsSize
Chris Lattner955fad12002-12-28 20:37:16 +0000290 + MF.getTarget().getFrameInfo().getMinStackFrameSize();
Vikram S. Adve89e2da02002-03-18 03:36:30 +0000291}
292
293int
Chris Lattner955fad12002-12-28 20:37:16 +0000294MachineFunctionInfo::computeOffsetforLocalVar(const Value* val,
295 unsigned &getPaddedSize,
296 unsigned sizeToUse)
Vikram S. Adve89e2da02002-03-18 03:36:30 +0000297{
Vikram S. Advee4e4d4e2002-03-24 03:39:26 +0000298 if (sizeToUse == 0)
Chris Lattner955fad12002-12-28 20:37:16 +0000299 sizeToUse = MF.getTarget().findOptimalStorageSize(val->getType());
300 unsigned align = SizeToAlignment(sizeToUse, MF.getTarget());
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000301
302 bool growUp;
Chris Lattner955fad12002-12-28 20:37:16 +0000303 int firstOffset = MF.getTarget().getFrameInfo().getFirstAutomaticVarOffset(MF,
304 growUp);
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000305 int offset = growUp? firstOffset + getAutomaticVarsSize()
306 : firstOffset - (getAutomaticVarsSize() + sizeToUse);
307
Chris Lattner955fad12002-12-28 20:37:16 +0000308 int aligned = MF.getTarget().getFrameInfo().adjustAlignment(offset, growUp, align);
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000309 getPaddedSize = sizeToUse + abs(aligned - offset);
310
311 return aligned;
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000312}
313
Chris Lattner07f32d42003-12-20 09:17:07 +0000314
315int MachineFunctionInfo::allocateLocalVar(const Value* val,
316 unsigned sizeToUse) {
Vikram S. Adve03d33bd2002-04-25 04:30:43 +0000317 assert(! automaticVarsAreaFrozen &&
318 "Size of auto vars area has been used to compute an offset so "
319 "no more automatic vars should be allocated!");
320
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000321 // Check if we've allocated a stack slot for this value already
322 //
Chris Lattner07f32d42003-12-20 09:17:07 +0000323 hash_map<const Value*, int>::const_iterator pair = offsets.find(val);
324 if (pair != offsets.end())
325 return pair->second;
326
327 unsigned getPaddedSize;
328 unsigned offset = computeOffsetforLocalVar(val, getPaddedSize, sizeToUse);
329 offsets[val] = offset;
330 incrementAutomaticVarsSize(getPaddedSize);
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000331 return offset;
332}
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000333
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000334int
Chris Lattner955fad12002-12-28 20:37:16 +0000335MachineFunctionInfo::allocateSpilledValue(const Type* type)
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000336{
Vikram S. Adve03d33bd2002-04-25 04:30:43 +0000337 assert(! spillsAreaFrozen &&
338 "Size of reg spills area has been used to compute an offset so "
339 "no more register spill slots should be allocated!");
340
Chris Lattner955fad12002-12-28 20:37:16 +0000341 unsigned size = MF.getTarget().getTargetData().getTypeSize(type);
342 unsigned char align = MF.getTarget().getTargetData().getTypeAlignment(type);
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000343
344 bool growUp;
Chris Lattner955fad12002-12-28 20:37:16 +0000345 int firstOffset = MF.getTarget().getFrameInfo().getRegSpillAreaOffset(MF, growUp);
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000346
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000347 int offset = growUp? firstOffset + getRegSpillsSize()
348 : firstOffset - (getRegSpillsSize() + size);
349
Chris Lattner955fad12002-12-28 20:37:16 +0000350 int aligned = MF.getTarget().getFrameInfo().adjustAlignment(offset, growUp, align);
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000351 size += abs(aligned - offset); // include alignment padding in size
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000352
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000353 incrementRegSpillsSize(size); // update size of reg. spills area
354
355 return aligned;
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000356}
357
358int
Chris Lattner955fad12002-12-28 20:37:16 +0000359MachineFunctionInfo::pushTempValue(unsigned size)
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000360{
Chris Lattner955fad12002-12-28 20:37:16 +0000361 unsigned align = SizeToAlignment(size, MF.getTarget());
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000362
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000363 bool growUp;
Chris Lattner955fad12002-12-28 20:37:16 +0000364 int firstOffset = MF.getTarget().getFrameInfo().getTmpAreaOffset(MF, growUp);
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000365
366 int offset = growUp? firstOffset + currentTmpValuesSize
367 : firstOffset - (currentTmpValuesSize + size);
368
Chris Lattner955fad12002-12-28 20:37:16 +0000369 int aligned = MF.getTarget().getFrameInfo().adjustAlignment(offset, growUp,
370 align);
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000371 size += abs(aligned - offset); // include alignment padding in size
372
373 incrementTmpAreaSize(size); // update "current" size of tmp area
374
375 return aligned;
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000376}
377
Chris Lattner955fad12002-12-28 20:37:16 +0000378void MachineFunctionInfo::popAllTempValues() {
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000379 resetTmpAreaSize(); // clear tmp area to reuse
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000380}
381