blob: fa77906332b88998a0ccc344206cad79568b651d [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 Lattner227c3d32002-10-28 01:12:41 +000018#include "llvm/CodeGen/MachineCodeForInstruction.h"
Chris Lattner831fdcf2002-12-25 05:03:22 +000019#include "llvm/CodeGen/SSARegMap.h"
Chris Lattner955fad12002-12-28 20:37:16 +000020#include "llvm/CodeGen/MachineFunctionInfo.h"
Chris Lattnereb24db92002-12-28 21:08:26 +000021#include "llvm/CodeGen/MachineFrameInfo.h"
Chris Lattner4d149cd2003-01-13 00:23:03 +000022#include "llvm/CodeGen/MachineConstantPool.h"
Chris Lattner16c45e92003-12-20 10:20:58 +000023#include "llvm/CodeGen/Passes.h"
Chris Lattnerf2868ce2002-02-03 07:54:50 +000024#include "llvm/Target/TargetMachine.h"
Chris Lattner8bd66e62002-12-28 21:00:25 +000025#include "llvm/Target/TargetFrameInfo.h"
Chris Lattnerf27eeea2002-12-29 02:50:35 +000026#include "llvm/Target/TargetCacheInfo.h"
Chris Lattner2fbfdcf2002-04-07 20:49:59 +000027#include "llvm/Function.h"
Chris Lattnerf2868ce2002-02-03 07:54:50 +000028#include "llvm/iOther.h"
Chris Lattner07f32d42003-12-20 09:17:07 +000029using namespace llvm;
Chris Lattnerf2868ce2002-02-03 07:54:50 +000030
Chris Lattnere316efc2002-10-29 23:18:43 +000031static AnnotationID MF_AID(
Chris Lattner2fbfdcf2002-04-07 20:49:59 +000032 AnnotationManager::getID("CodeGen::MachineCodeForFunction"));
Chris Lattnerf2868ce2002-02-03 07:54:50 +000033
Chris Lattner227c3d32002-10-28 01:12:41 +000034
Chris Lattner227c3d32002-10-28 01:12:41 +000035namespace {
Chris Lattner16c45e92003-12-20 10:20:58 +000036 struct Printer : public MachineFunctionPass {
Chris Lattner10491642002-10-30 00:48:05 +000037 const char *getPassName() const { return "MachineFunction Printer"; }
38
39 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
40 AU.setPreservesAll();
41 }
42
Chris Lattner16c45e92003-12-20 10:20:58 +000043 bool runOnMachineFunction(MachineFunction &MF) {
44 MF.dump();
Chris Lattner10491642002-10-30 00:48:05 +000045 return false;
46 }
47 };
Chris Lattner227c3d32002-10-28 01:12:41 +000048}
49
Chris Lattner07f32d42003-12-20 09:17:07 +000050FunctionPass *llvm::createMachineFunctionPrinterPass() {
Chris Lattner10491642002-10-30 00:48:05 +000051 return new Printer();
52}
53
Chris Lattner16c45e92003-12-20 10:20:58 +000054namespace {
55 struct Deleter : public MachineFunctionPass {
56 const char *getPassName() const { return "Machine Code Deleter"; }
57
58 bool runOnMachineFunction(MachineFunction &MF) {
59 // Delete all of the MachineInstrs out of the function. When the sparc
60 // backend gets fixed, this can be dramatically simpler, but actually
61 // putting this stuff into the MachineBasicBlock destructor!
62 for (MachineFunction::iterator BB = MF.begin(), E = MF.end(); BB != E;
63 ++BB)
64 while (!BB->empty())
65 delete BB->pop_back();
66
67 // Delete the annotation from the function now.
68 MachineFunction::destruct(MF.getFunction());
69 return true;
70 }
71 };
72}
73
74/// MachineCodeDeletion Pass - This pass deletes all of the machine code for
75/// the current function, which should happen after the function has been
76/// emitted to a .s file or to memory.
77FunctionPass *llvm::createMachineCodeDeleter() {
78 return new Deleter();
79}
80
Chris Lattner227c3d32002-10-28 01:12:41 +000081
82//===---------------------------------------------------------------------===//
83// MachineFunction implementation
84//===---------------------------------------------------------------------===//
85
Chris Lattner10491642002-10-30 00:48:05 +000086MachineFunction::MachineFunction(const Function *F,
Chris Lattner955fad12002-12-28 20:37:16 +000087 const TargetMachine &TM)
88 : Annotation(MF_AID), Fn(F), Target(TM) {
Misha Brukmanb7825bc2002-11-20 18:55:27 +000089 SSARegMapping = new SSARegMap();
Chris Lattner955fad12002-12-28 20:37:16 +000090 MFInfo = new MachineFunctionInfo(*this);
Chris Lattnereb24db92002-12-28 21:08:26 +000091 FrameInfo = new MachineFrameInfo();
Chris Lattner4d149cd2003-01-13 00:23:03 +000092 ConstantPool = new MachineConstantPool();
Chris Lattner831fdcf2002-12-25 05:03:22 +000093}
94
95MachineFunction::~MachineFunction() {
96 delete SSARegMapping;
Chris Lattner955fad12002-12-28 20:37:16 +000097 delete MFInfo;
98 delete FrameInfo;
Chris Lattner4d149cd2003-01-13 00:23:03 +000099 delete ConstantPool;
Chris Lattner10491642002-10-30 00:48:05 +0000100}
101
102void MachineFunction::dump() const { print(std::cerr); }
103
104void MachineFunction::print(std::ostream &OS) const {
Chris Lattner955fad12002-12-28 20:37:16 +0000105 OS << "\n" << *(Value*)Fn->getFunctionType() << " \"" << Fn->getName()
106 << "\"\n";
107
108 // Print Frame Information
Chris Lattner9085d8a2003-01-16 18:35:57 +0000109 getFrameInfo()->print(*this, OS);
Chris Lattner4d149cd2003-01-13 00:23:03 +0000110
111 // Print Constant Pool
112 getConstantPool()->print(OS);
Chris Lattner10491642002-10-30 00:48:05 +0000113
114 for (const_iterator BB = begin(); BB != end(); ++BB) {
Chris Lattner9e2dd8f2003-07-26 23:24:56 +0000115 const BasicBlock *LBB = BB->getBasicBlock();
Chris Lattner2109f502002-12-15 20:35:25 +0000116 OS << "\n" << LBB->getName() << " (" << (const void*)LBB << "):\n";
Chris Lattner10491642002-10-30 00:48:05 +0000117 for (MachineBasicBlock::const_iterator I = BB->begin(); I != BB->end();++I){
118 OS << "\t";
119 (*I)->print(OS, Target);
120 }
121 }
122 OS << "\nEnd function \"" << Fn->getName() << "\"\n\n";
123}
124
125
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000126// The next two methods are used to construct and to retrieve
Chris Lattner2fbfdcf2002-04-07 20:49:59 +0000127// the MachineCodeForFunction object for the given function.
128// construct() -- Allocates and initializes for a given function and target
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000129// get() -- Returns a handle to the object.
130// This should not be called before "construct()"
Chris Lattner2fbfdcf2002-04-07 20:49:59 +0000131// for a given Function.
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000132//
Misha Brukmanfce11432002-10-28 00:28:31 +0000133MachineFunction&
Chris Lattner335d5c32002-10-28 05:58:46 +0000134MachineFunction::construct(const Function *Fn, const TargetMachine &Tar)
Vikram S. Adve89e2da02002-03-18 03:36:30 +0000135{
Chris Lattnere316efc2002-10-29 23:18:43 +0000136 assert(Fn->getAnnotation(MF_AID) == 0 &&
Chris Lattner2fbfdcf2002-04-07 20:49:59 +0000137 "Object already exists for this function!");
Chris Lattner335d5c32002-10-28 05:58:46 +0000138 MachineFunction* mcInfo = new MachineFunction(Fn, Tar);
139 Fn->addAnnotation(mcInfo);
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000140 return *mcInfo;
141}
142
Chris Lattner16c45e92003-12-20 10:20:58 +0000143void MachineFunction::destruct(const Function *Fn) {
Chris Lattnere316efc2002-10-29 23:18:43 +0000144 bool Deleted = Fn->deleteAnnotation(MF_AID);
Chris Lattner2fbfdcf2002-04-07 20:49:59 +0000145 assert(Deleted && "Machine code did not exist for function!");
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000146}
147
Chris Lattner335d5c32002-10-28 05:58:46 +0000148MachineFunction& MachineFunction::get(const Function *F)
Vikram S. Adve89e2da02002-03-18 03:36:30 +0000149{
Chris Lattnere316efc2002-10-29 23:18:43 +0000150 MachineFunction *mc = (MachineFunction*)F->getAnnotation(MF_AID);
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000151 assert(mc && "Call construct() method first to allocate the object");
152 return *mc;
153}
154
Chris Lattner831fdcf2002-12-25 05:03:22 +0000155void MachineFunction::clearSSARegMap() {
156 delete SSARegMapping;
157 SSARegMapping = 0;
158}
159
Chris Lattner955fad12002-12-28 20:37:16 +0000160//===----------------------------------------------------------------------===//
Chris Lattnereb24db92002-12-28 21:08:26 +0000161// MachineFrameInfo implementation
Chris Lattner955fad12002-12-28 20:37:16 +0000162//===----------------------------------------------------------------------===//
163
Chris Lattner4d149cd2003-01-13 00:23:03 +0000164/// CreateStackObject - Create a stack object for a value of the specified type.
165///
166int MachineFrameInfo::CreateStackObject(const Type *Ty, const TargetData &TD) {
167 return CreateStackObject(TD.getTypeSize(Ty), TD.getTypeAlignment(Ty));
168}
169
170int MachineFrameInfo::CreateStackObject(const TargetRegisterClass *RC) {
171 return CreateStackObject(RC->getSize(), RC->getAlignment());
172}
173
174
Chris Lattner9085d8a2003-01-16 18:35:57 +0000175void MachineFrameInfo::print(const MachineFunction &MF, std::ostream &OS) const{
176 int ValOffset = MF.getTarget().getFrameInfo().getOffsetOfLocalArea();
177
Chris Lattner955fad12002-12-28 20:37:16 +0000178 for (unsigned i = 0, e = Objects.size(); i != e; ++i) {
179 const StackObject &SO = Objects[i];
Chris Lattner4d149cd2003-01-13 00:23:03 +0000180 OS << " <fi #" << (int)(i-NumFixedObjects) << "> is ";
Chris Lattner955fad12002-12-28 20:37:16 +0000181 if (SO.Size == 0)
182 OS << "variable sized";
183 else
184 OS << SO.Size << " byte" << (SO.Size != 1 ? "s" : " ");
185
186 if (i < NumFixedObjects)
187 OS << " fixed";
188 if (i < NumFixedObjects || SO.SPOffset != -1) {
Chris Lattner9085d8a2003-01-16 18:35:57 +0000189 int Off = SO.SPOffset + ValOffset;
Chris Lattner955fad12002-12-28 20:37:16 +0000190 OS << " at location [SP";
Chris Lattner9085d8a2003-01-16 18:35:57 +0000191 if (Off > 0)
192 OS << "+" << Off;
193 else if (Off < 0)
194 OS << Off;
Chris Lattner955fad12002-12-28 20:37:16 +0000195 OS << "]";
196 }
197 OS << "\n";
198 }
199
200 if (HasVarSizedObjects)
201 OS << " Stack frame contains variable sized objects\n";
202}
203
Chris Lattner9085d8a2003-01-16 18:35:57 +0000204void MachineFrameInfo::dump(const MachineFunction &MF) const {
205 print(MF, std::cerr);
206}
Chris Lattner955fad12002-12-28 20:37:16 +0000207
208
209//===----------------------------------------------------------------------===//
Chris Lattner4d149cd2003-01-13 00:23:03 +0000210// MachineConstantPool implementation
211//===----------------------------------------------------------------------===//
212
213void MachineConstantPool::print(std::ostream &OS) const {
214 for (unsigned i = 0, e = Constants.size(); i != e; ++i)
215 OS << " <cp #" << i << "> is" << *(Value*)Constants[i] << "\n";
216}
217
218void MachineConstantPool::dump() const { print(std::cerr); }
219
220//===----------------------------------------------------------------------===//
Chris Lattner955fad12002-12-28 20:37:16 +0000221// MachineFunctionInfo implementation
222//===----------------------------------------------------------------------===//
Chris Lattner831fdcf2002-12-25 05:03:22 +0000223
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000224static unsigned
Vikram S. Adve03d33bd2002-04-25 04:30:43 +0000225ComputeMaxOptionalArgsSize(const TargetMachine& target, const Function *F,
226 unsigned &maxOptionalNumArgs)
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000227{
Chris Lattner955fad12002-12-28 20:37:16 +0000228 const TargetFrameInfo &frameInfo = target.getFrameInfo();
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000229
Chris Lattner0b12b5f2002-06-25 16:13:21 +0000230 unsigned maxSize = 0;
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000231
Chris Lattner0b12b5f2002-06-25 16:13:21 +0000232 for (Function::const_iterator BB = F->begin(), BBE = F->end(); BB !=BBE; ++BB)
233 for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I != E; ++I)
Chris Lattner2ee82e02003-04-23 16:36:11 +0000234 if (const CallInst *callInst = dyn_cast<CallInst>(I))
Chris Lattner0b12b5f2002-06-25 16:13:21 +0000235 {
236 unsigned numOperands = callInst->getNumOperands() - 1;
237 int numExtra = (int)numOperands-frameInfo.getNumFixedOutgoingArgs();
238 if (numExtra <= 0)
239 continue;
240
Chris Lattner955fad12002-12-28 20:37:16 +0000241 unsigned sizeForThisCall;
Chris Lattner0b12b5f2002-06-25 16:13:21 +0000242 if (frameInfo.argsOnStackHaveFixedSize())
243 {
244 int argSize = frameInfo.getSizeOfEachArgOnStack();
245 sizeForThisCall = numExtra * (unsigned) argSize;
246 }
247 else
248 {
249 assert(0 && "UNTESTED CODE: Size per stack argument is not "
250 "fixed on this architecture: use actual arg sizes to "
251 "compute MaxOptionalArgsSize");
252 sizeForThisCall = 0;
253 for (unsigned i = 0; i < numOperands; ++i)
Chris Lattner955fad12002-12-28 20:37:16 +0000254 sizeForThisCall += target.getTargetData().getTypeSize(callInst->
Chris Lattner0b12b5f2002-06-25 16:13:21 +0000255 getOperand(i)->getType());
256 }
257
258 if (maxSize < sizeForThisCall)
259 maxSize = sizeForThisCall;
260
261 if ((int)maxOptionalNumArgs < numExtra)
262 maxOptionalNumArgs = (unsigned) numExtra;
263 }
Vikram S. Adve89e2da02002-03-18 03:36:30 +0000264
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000265 return maxSize;
266}
267
268// Align data larger than one L1 cache line on L1 cache line boundaries.
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000269// Align all smaller data on the next higher 2^x boundary (4, 8, ...),
270// but not higher than the alignment of the largest type we support
271// (currently a double word). -- see class TargetData).
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000272//
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000273// This function is similar to the corresponding function in EmitAssembly.cpp
274// but they are unrelated. This one does not align at more than a
275// double-word boundary whereas that one might.
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000276//
Chris Lattner955fad12002-12-28 20:37:16 +0000277inline unsigned
278SizeToAlignment(unsigned size, const TargetMachine& target)
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000279{
280 unsigned short cacheLineSize = target.getCacheInfo().getCacheLineSize(1);
281 if (size > (unsigned) cacheLineSize / 2)
282 return cacheLineSize;
283 else
284 for (unsigned sz=1; /*no condition*/; sz *= 2)
Chris Lattner955fad12002-12-28 20:37:16 +0000285 if (sz >= size || sz >= target.getTargetData().getDoubleAlignment())
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000286 return sz;
287}
288
289
Chris Lattner955fad12002-12-28 20:37:16 +0000290void MachineFunctionInfo::CalculateArgSize() {
291 maxOptionalArgsSize = ComputeMaxOptionalArgsSize(MF.getTarget(),
292 MF.getFunction(),
Vikram S. Adve03d33bd2002-04-25 04:30:43 +0000293 maxOptionalNumArgs);
Vikram S. Adve89e2da02002-03-18 03:36:30 +0000294 staticStackSize = maxOptionalArgsSize
Chris Lattner955fad12002-12-28 20:37:16 +0000295 + MF.getTarget().getFrameInfo().getMinStackFrameSize();
Vikram S. Adve89e2da02002-03-18 03:36:30 +0000296}
297
298int
Chris Lattner955fad12002-12-28 20:37:16 +0000299MachineFunctionInfo::computeOffsetforLocalVar(const Value* val,
300 unsigned &getPaddedSize,
301 unsigned sizeToUse)
Vikram S. Adve89e2da02002-03-18 03:36:30 +0000302{
Vikram S. Advee4e4d4e2002-03-24 03:39:26 +0000303 if (sizeToUse == 0)
Chris Lattner955fad12002-12-28 20:37:16 +0000304 sizeToUse = MF.getTarget().findOptimalStorageSize(val->getType());
305 unsigned align = SizeToAlignment(sizeToUse, MF.getTarget());
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000306
307 bool growUp;
Chris Lattner955fad12002-12-28 20:37:16 +0000308 int firstOffset = MF.getTarget().getFrameInfo().getFirstAutomaticVarOffset(MF,
309 growUp);
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000310 int offset = growUp? firstOffset + getAutomaticVarsSize()
311 : firstOffset - (getAutomaticVarsSize() + sizeToUse);
312
Chris Lattner955fad12002-12-28 20:37:16 +0000313 int aligned = MF.getTarget().getFrameInfo().adjustAlignment(offset, growUp, align);
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000314 getPaddedSize = sizeToUse + abs(aligned - offset);
315
316 return aligned;
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000317}
318
Chris Lattner07f32d42003-12-20 09:17:07 +0000319
320int MachineFunctionInfo::allocateLocalVar(const Value* val,
321 unsigned sizeToUse) {
Vikram S. Adve03d33bd2002-04-25 04:30:43 +0000322 assert(! automaticVarsAreaFrozen &&
323 "Size of auto vars area has been used to compute an offset so "
324 "no more automatic vars should be allocated!");
325
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000326 // Check if we've allocated a stack slot for this value already
327 //
Chris Lattner07f32d42003-12-20 09:17:07 +0000328 hash_map<const Value*, int>::const_iterator pair = offsets.find(val);
329 if (pair != offsets.end())
330 return pair->second;
331
332 unsigned getPaddedSize;
333 unsigned offset = computeOffsetforLocalVar(val, getPaddedSize, sizeToUse);
334 offsets[val] = offset;
335 incrementAutomaticVarsSize(getPaddedSize);
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000336 return offset;
337}
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000338
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000339int
Chris Lattner955fad12002-12-28 20:37:16 +0000340MachineFunctionInfo::allocateSpilledValue(const Type* type)
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000341{
Vikram S. Adve03d33bd2002-04-25 04:30:43 +0000342 assert(! spillsAreaFrozen &&
343 "Size of reg spills area has been used to compute an offset so "
344 "no more register spill slots should be allocated!");
345
Chris Lattner955fad12002-12-28 20:37:16 +0000346 unsigned size = MF.getTarget().getTargetData().getTypeSize(type);
347 unsigned char align = MF.getTarget().getTargetData().getTypeAlignment(type);
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000348
349 bool growUp;
Chris Lattner955fad12002-12-28 20:37:16 +0000350 int firstOffset = MF.getTarget().getFrameInfo().getRegSpillAreaOffset(MF, growUp);
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000351
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000352 int offset = growUp? firstOffset + getRegSpillsSize()
353 : firstOffset - (getRegSpillsSize() + size);
354
Chris Lattner955fad12002-12-28 20:37:16 +0000355 int aligned = MF.getTarget().getFrameInfo().adjustAlignment(offset, growUp, align);
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000356 size += abs(aligned - offset); // include alignment padding in size
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000357
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000358 incrementRegSpillsSize(size); // update size of reg. spills area
359
360 return aligned;
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000361}
362
363int
Chris Lattner955fad12002-12-28 20:37:16 +0000364MachineFunctionInfo::pushTempValue(unsigned size)
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000365{
Chris Lattner955fad12002-12-28 20:37:16 +0000366 unsigned align = SizeToAlignment(size, MF.getTarget());
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000367
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000368 bool growUp;
Chris Lattner955fad12002-12-28 20:37:16 +0000369 int firstOffset = MF.getTarget().getFrameInfo().getTmpAreaOffset(MF, growUp);
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000370
371 int offset = growUp? firstOffset + currentTmpValuesSize
372 : firstOffset - (currentTmpValuesSize + size);
373
Chris Lattner955fad12002-12-28 20:37:16 +0000374 int aligned = MF.getTarget().getFrameInfo().adjustAlignment(offset, growUp,
375 align);
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000376 size += abs(aligned - offset); // include alignment padding in size
377
378 incrementTmpAreaSize(size); // update "current" size of tmp area
379
380 return aligned;
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000381}
382
Chris Lattner955fad12002-12-28 20:37:16 +0000383void MachineFunctionInfo::popAllTempValues() {
Vikram S. Adve1318bed2002-09-16 15:18:16 +0000384 resetTmpAreaSize(); // clear tmp area to reuse
Chris Lattnerf2868ce2002-02-03 07:54:50 +0000385}
386