blob: 0fdbd236bbc7524ae3967731e5f0ffd9d7bc260a [file] [log] [blame]
Chris Lattnerbed31442007-05-28 01:07:47 +00001//===--- CodeGenFunction.h - Per-Function state for LLVM CodeGen ----------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by Chris Lattner and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This is the internal per-function state used for llvm translation.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef CODEGEN_CODEGENFUNCTION_H
15#define CODEGEN_CODEGENFUNCTION_H
16
Chris Lattnerac248202007-05-30 00:13:02 +000017#include "llvm/ADT/DenseMap.h"
Chris Lattner308f4312007-05-29 23:50:05 +000018#include "llvm/Support/LLVMBuilder.h"
Chris Lattner2ccb73b2007-06-16 00:16:26 +000019#include <vector>
Chris Lattner308f4312007-05-29 23:50:05 +000020
Chris Lattnerbed31442007-05-28 01:07:47 +000021namespace llvm {
22 class Module;
Chris Lattner23b7eb62007-06-15 23:05:46 +000023}
24
Chris Lattnerbed31442007-05-28 01:07:47 +000025namespace clang {
26 class ASTContext;
Chris Lattner84915fa2007-06-02 04:16:21 +000027 class Decl;
Chris Lattnerbed31442007-05-28 01:07:47 +000028 class FunctionDecl;
Chris Lattner2ccb73b2007-06-16 00:16:26 +000029 class TargetInfo;
Chris Lattner2ccb73b2007-06-16 00:16:26 +000030 class QualType;
31 class FunctionTypeProto;
Chris Lattner84915fa2007-06-02 04:16:21 +000032
Chris Lattner308f4312007-05-29 23:50:05 +000033 class Stmt;
34 class CompoundStmt;
Chris Lattnerac248202007-05-30 00:13:02 +000035 class LabelStmt;
36 class GotoStmt;
Chris Lattner5269c032007-05-30 21:03:58 +000037 class IfStmt;
Chris Lattner946aa312007-06-05 03:59:43 +000038 class WhileStmt;
Chris Lattner8394d792007-06-05 20:53:16 +000039 class DoStmt;
40 class ForStmt;
Chris Lattner3f3dbee2007-06-02 03:19:07 +000041 class ReturnStmt;
Chris Lattner84915fa2007-06-02 04:16:21 +000042 class DeclStmt;
Chris Lattnerbed31442007-05-28 01:07:47 +000043
Chris Lattner208ae962007-05-30 17:57:17 +000044 class Expr;
Chris Lattnerd7f58862007-06-02 05:24:33 +000045 class DeclRefExpr;
Chris Lattner4347e3692007-06-06 04:54:52 +000046 class StringLiteral;
Chris Lattner208ae962007-05-30 17:57:17 +000047 class IntegerLiteral;
Chris Lattner2ada32e2007-07-09 23:03:16 +000048 class FloatingLiteral;
Chris Lattner8394d792007-06-05 20:53:16 +000049 class CastExpr;
Chris Lattner2b228c92007-06-15 21:34:29 +000050 class CallExpr;
Chris Lattnerf0106d22007-06-02 19:33:17 +000051 class UnaryOperator;
Chris Lattnerdb91b162007-06-02 00:16:28 +000052 class BinaryOperator;
Chris Lattner9369a562007-06-29 16:31:29 +000053 class CompoundAssignOperator;
Chris Lattnerd9d2fb12007-06-08 23:31:14 +000054 class ArraySubscriptExpr;
Chris Lattner208ae962007-05-30 17:57:17 +000055
Chris Lattner84915fa2007-06-02 04:16:21 +000056 class BlockVarDecl;
57 class EnumConstantDecl;
Chris Lattner53621a52007-06-13 20:44:40 +000058 class ParmVarDecl;
Chris Lattnerbed31442007-05-28 01:07:47 +000059namespace CodeGen {
60 class CodeGenModule;
61
Chris Lattnerd7f58862007-06-02 05:24:33 +000062
Chris Lattner8394d792007-06-05 20:53:16 +000063/// RValue - This trivial value class is used to represent the result of an
Chris Lattnerd7f58862007-06-02 05:24:33 +000064/// expression that is evaluated. It can be one of two things: either a simple
65/// LLVM SSA value, or the address of an aggregate value in memory. These two
66/// possibilities are discriminated by isAggregate/isScalar.
Chris Lattner8394d792007-06-05 20:53:16 +000067class RValue {
Chris Lattner23b7eb62007-06-15 23:05:46 +000068 llvm::Value *V;
Chris Lattnerdb91b162007-06-02 00:16:28 +000069 // TODO: Encode this into the low bit of pointer for more efficient
70 // return-by-value.
Chris Lattner5269c032007-05-30 21:03:58 +000071 bool IsAggregate;
Chris Lattner09153c02007-06-22 18:48:09 +000072
73 // FIXME: Aggregate rvalues need to retain information about whether they are
74 // volatile or not.
Chris Lattner5269c032007-05-30 21:03:58 +000075public:
76
77 bool isAggregate() const { return IsAggregate; }
78 bool isScalar() const { return !IsAggregate; }
79
80 /// getVal() - Return the Value* of this scalar value.
Chris Lattner23b7eb62007-06-15 23:05:46 +000081 llvm::Value *getVal() const {
Chris Lattner5269c032007-05-30 21:03:58 +000082 assert(!isAggregate() && "Not a scalar!");
83 return V;
84 }
85
Chris Lattner09153c02007-06-22 18:48:09 +000086 /// getAggregateAddr() - Return the Value* of the address of the aggregate.
87 llvm::Value *getAggregateAddr() const {
Chris Lattner5269c032007-05-30 21:03:58 +000088 assert(isAggregate() && "Not an aggregate!");
89 return V;
90 }
Chris Lattner208ae962007-05-30 17:57:17 +000091
Chris Lattner23b7eb62007-06-15 23:05:46 +000092 static RValue get(llvm::Value *V) {
Chris Lattner8394d792007-06-05 20:53:16 +000093 RValue ER;
Chris Lattner208ae962007-05-30 17:57:17 +000094 ER.V = V;
Chris Lattner5269c032007-05-30 21:03:58 +000095 ER.IsAggregate = false;
Chris Lattner208ae962007-05-30 17:57:17 +000096 return ER;
97 }
Chris Lattner23b7eb62007-06-15 23:05:46 +000098 static RValue getAggregate(llvm::Value *V) {
Chris Lattner8394d792007-06-05 20:53:16 +000099 RValue ER;
Chris Lattner208ae962007-05-30 17:57:17 +0000100 ER.V = V;
Chris Lattner5269c032007-05-30 21:03:58 +0000101 ER.IsAggregate = true;
Chris Lattner208ae962007-05-30 17:57:17 +0000102 return ER;
103 }
104};
Chris Lattnerd7f58862007-06-02 05:24:33 +0000105
106
107/// LValue - This represents an lvalue references. Because C/C++ allow
108/// bitfields, this is not a simple LLVM pointer, it may be a pointer plus a
109/// bitrange.
110class LValue {
111 // FIXME: Volatility. Restrict?
Chris Lattner8394d792007-06-05 20:53:16 +0000112 // alignment?
Chris Lattner08c4b9f2007-07-10 21:17:59 +0000113
114 enum {
115 Simple, // This is a normal l-value, use getAddress().
116 VectorElt, // This is a vector element l-value (V[i]), use getVector*
117 BitField // This is a bitfield l-value, use getBitfield*.
118 } LVType;
119
Chris Lattnerd7f58862007-06-02 05:24:33 +0000120 llvm::Value *V;
Chris Lattner08c4b9f2007-07-10 21:17:59 +0000121
122 union {
123 llvm::Value *VectorIdx;
124 };
Chris Lattnerd7f58862007-06-02 05:24:33 +0000125public:
Chris Lattner08c4b9f2007-07-10 21:17:59 +0000126 bool isSimple() const { return LVType == Simple; }
127 bool isVectorElt() const { return LVType == VectorElt; }
128 bool isBitfield() const { return LVType == BitField; }
Chris Lattner208ae962007-05-30 17:57:17 +0000129
Chris Lattner08c4b9f2007-07-10 21:17:59 +0000130 // simple lvalue
131 llvm::Value *getAddress() const { assert(isSimple()); return V; }
132 // vector elt lvalue
133 llvm::Value *getVectorAddr() const { assert(isVectorElt()); return V; }
134 llvm::Value *getVectorIdx() const { assert(isVectorElt()); return VectorIdx; }
Chris Lattnerd7f58862007-06-02 05:24:33 +0000135
Chris Lattner08c4b9f2007-07-10 21:17:59 +0000136 static LValue MakeAddr(llvm::Value *V) {
Chris Lattnerd7f58862007-06-02 05:24:33 +0000137 LValue R;
Chris Lattner08c4b9f2007-07-10 21:17:59 +0000138 R.LVType = Simple;
Chris Lattnerd7f58862007-06-02 05:24:33 +0000139 R.V = V;
140 return R;
141 }
Chris Lattner08c4b9f2007-07-10 21:17:59 +0000142
143 static LValue MakeVectorElt(llvm::Value *Vec, llvm::Value *Idx) {
144 LValue R;
145 R.LVType = VectorElt;
146 R.V = Vec;
147 R.VectorIdx = Idx;
148 return R;
149 }
150
Chris Lattnerd7f58862007-06-02 05:24:33 +0000151};
152
Chris Lattnerbed31442007-05-28 01:07:47 +0000153/// CodeGenFunction - This class organizes the per-function state that is used
154/// while generating LLVM code.
155class CodeGenFunction {
156 CodeGenModule &CGM; // Per-module state.
Chris Lattnerd1af2d22007-05-29 23:17:50 +0000157 TargetInfo &Target;
Chris Lattner23b7eb62007-06-15 23:05:46 +0000158 llvm::LLVMBuilder Builder;
Chris Lattner3f3dbee2007-06-02 03:19:07 +0000159
160 const FunctionDecl *CurFuncDecl;
Chris Lattnerac248202007-05-30 00:13:02 +0000161 llvm::Function *CurFn;
162
Chris Lattner03df1222007-06-02 04:53:11 +0000163 /// AllocaInsertPoint - This is an instruction in the entry block before which
164 /// we prefer to insert allocas.
165 llvm::Instruction *AllocaInsertPt;
166
Chris Lattner6db1fb82007-06-02 22:49:07 +0000167 const llvm::Type *LLVMIntTy;
Chris Lattnerd9d2fb12007-06-08 23:31:14 +0000168 unsigned LLVMPointerWidth;
Chris Lattner6db1fb82007-06-02 22:49:07 +0000169
Chris Lattner84915fa2007-06-02 04:16:21 +0000170 /// LocalDeclMap - This keeps track of the LLVM allocas or globals for local C
171 /// decls.
Chris Lattner23b7eb62007-06-15 23:05:46 +0000172 llvm::DenseMap<const Decl*, llvm::Value*> LocalDeclMap;
Chris Lattner84915fa2007-06-02 04:16:21 +0000173
Chris Lattnerac248202007-05-30 00:13:02 +0000174 /// LabelMap - This keeps track of the LLVM basic block for each C label.
Chris Lattner23b7eb62007-06-15 23:05:46 +0000175 llvm::DenseMap<const LabelStmt*, llvm::BasicBlock*> LabelMap;
Chris Lattnerbed31442007-05-28 01:07:47 +0000176public:
Chris Lattnerd1af2d22007-05-29 23:17:50 +0000177 CodeGenFunction(CodeGenModule &cgm);
Chris Lattnerbed31442007-05-28 01:07:47 +0000178
Chris Lattner6db1fb82007-06-02 22:49:07 +0000179 ASTContext &getContext() const;
180
Chris Lattner308f4312007-05-29 23:50:05 +0000181 void GenerateCode(const FunctionDecl *FD);
182
Chris Lattnerf033c142007-06-22 19:05:19 +0000183 const llvm::Type *ConvertType(QualType T);
Chris Lattnerac248202007-05-30 00:13:02 +0000184
Chris Lattner54fb19e2007-06-22 22:02:34 +0000185 /// hasAggregateLLVMType - Return true if the specified AST type will map into
186 /// an aggregate LLVM type or is void.
187 static bool hasAggregateLLVMType(QualType T);
188
Chris Lattnerac248202007-05-30 00:13:02 +0000189 /// getBasicBlockForLabel - Return the LLVM basicblock that the specified
190 /// label maps to.
191 llvm::BasicBlock *getBasicBlockForLabel(const LabelStmt *S);
192
193
Chris Lattner23b7eb62007-06-15 23:05:46 +0000194 void EmitBlock(llvm::BasicBlock *BB);
Chris Lattner84915fa2007-06-02 04:16:21 +0000195
Chris Lattnere9a64532007-06-22 21:44:33 +0000196 //===--------------------------------------------------------------------===//
197 // Helpers
198 //===--------------------------------------------------------------------===//
199
200 /// CreateTempAlloca - This creates a alloca and inserts it into the entry
201 /// block.
202 llvm::AllocaInst *CreateTempAlloca(const llvm::Type *Ty,
203 const char *Name = "tmp");
204
Chris Lattner8394d792007-06-05 20:53:16 +0000205 /// EvaluateExprAsBool - Perform the usual unary conversions on the specified
206 /// expression and compare the result against zero, returning an Int1Ty value.
Chris Lattner23b7eb62007-06-15 23:05:46 +0000207 llvm::Value *EvaluateExprAsBool(const Expr *E);
Chris Lattnere9a64532007-06-22 21:44:33 +0000208
Chris Lattnerac248202007-05-30 00:13:02 +0000209
Chris Lattnere9a64532007-06-22 21:44:33 +0000210 /// EmitLoadOfComplex - Given an RValue reference for a complex, emit code to
211 /// load the real and imaginary pieces, returning them as Real/Imag.
212 void EmitLoadOfComplex(RValue V, llvm::Value *&Real, llvm::Value *&Imag);
213
214 /// EmitStoreOfComplex - Store the specified real/imag parts into the
215 /// specified value pointer.
216 void EmitStoreOfComplex(llvm::Value *Real, llvm::Value *Imag,
217 llvm::Value *ResPtr);
218
Chris Lattner8394d792007-06-05 20:53:16 +0000219 //===--------------------------------------------------------------------===//
220 // Conversions
221 //===--------------------------------------------------------------------===//
222
223 /// EmitConversion - Convert the value specied by Val, whose type is ValTy, to
224 /// the type specified by DstTy, following the rules of C99 6.3.
Chris Lattnerf033c142007-06-22 19:05:19 +0000225 RValue EmitConversion(RValue Val, QualType ValTy, QualType DstTy);
Chris Lattner8394d792007-06-05 20:53:16 +0000226
227 /// ConvertScalarValueToBool - Convert the specified expression value to a
Chris Lattnerf0106d22007-06-02 19:33:17 +0000228 /// boolean (i1) truth value. This is equivalent to "Val == 0".
Chris Lattner23b7eb62007-06-15 23:05:46 +0000229 llvm::Value *ConvertScalarValueToBool(RValue Val, QualType Ty);
Chris Lattnerf0106d22007-06-02 19:33:17 +0000230
Chris Lattner308f4312007-05-29 23:50:05 +0000231 //===--------------------------------------------------------------------===//
Chris Lattner53621a52007-06-13 20:44:40 +0000232 // Declaration Emission
Chris Lattner84915fa2007-06-02 04:16:21 +0000233 //===--------------------------------------------------------------------===//
234
Chris Lattner1ad38f82007-06-09 01:20:56 +0000235 void EmitDecl(const Decl &D);
Chris Lattner84915fa2007-06-02 04:16:21 +0000236 void EmitEnumConstantDecl(const EnumConstantDecl &D);
Chris Lattner03df1222007-06-02 04:53:11 +0000237 void EmitBlockVarDecl(const BlockVarDecl &D);
238 void EmitLocalBlockVarDecl(const BlockVarDecl &D);
Chris Lattner53621a52007-06-13 20:44:40 +0000239 void EmitParmDecl(const ParmVarDecl &D, llvm::Value *Arg);
Chris Lattner03df1222007-06-02 04:53:11 +0000240
Chris Lattner84915fa2007-06-02 04:16:21 +0000241 //===--------------------------------------------------------------------===//
Chris Lattner308f4312007-05-29 23:50:05 +0000242 // Statement Emission
243 //===--------------------------------------------------------------------===//
244
245 void EmitStmt(const Stmt *S);
246 void EmitCompoundStmt(const CompoundStmt &S);
Chris Lattnerac248202007-05-30 00:13:02 +0000247 void EmitLabelStmt(const LabelStmt &S);
248 void EmitGotoStmt(const GotoStmt &S);
Chris Lattner5269c032007-05-30 21:03:58 +0000249 void EmitIfStmt(const IfStmt &S);
Chris Lattner946aa312007-06-05 03:59:43 +0000250 void EmitWhileStmt(const WhileStmt &S);
Chris Lattner8394d792007-06-05 20:53:16 +0000251 void EmitDoStmt(const DoStmt &S);
252 void EmitForStmt(const ForStmt &S);
Chris Lattner3f3dbee2007-06-02 03:19:07 +0000253 void EmitReturnStmt(const ReturnStmt &S);
Chris Lattner1ad38f82007-06-09 01:20:56 +0000254 void EmitDeclStmt(const DeclStmt &S);
255
Chris Lattner208ae962007-05-30 17:57:17 +0000256 //===--------------------------------------------------------------------===//
Chris Lattnerd7f58862007-06-02 05:24:33 +0000257 // LValue Expression Emission
258 //===--------------------------------------------------------------------===//
Chris Lattner8394d792007-06-05 20:53:16 +0000259
260 /// EmitLValue - Emit code to compute a designator that specifies the location
261 /// of the expression.
262 ///
263 /// This can return one of two things: a simple address or a bitfield
264 /// reference. In either case, the LLVM Value* in the LValue structure is
265 /// guaranteed to be an LLVM pointer type.
266 ///
267 /// If this returns a bitfield reference, nothing about the pointee type of
268 /// the LLVM value is known: For example, it may not be a pointer to an
269 /// integer.
270 ///
271 /// If this returns a normal address, and if the lvalue's C type is fixed
272 /// size, this method guarantees that the returned pointer type will point to
273 /// an LLVM type of the same size of the lvalue's type. If the lvalue has a
274 /// variable length type, this is not possible.
275 ///
Chris Lattnerd7f58862007-06-02 05:24:33 +0000276 LValue EmitLValue(const Expr *E);
Chris Lattner8394d792007-06-05 20:53:16 +0000277
278 /// EmitLoadOfLValue - Given an expression that represents a value lvalue,
279 /// this method emits the address of the lvalue, then loads the result as an
280 /// rvalue, returning the rvalue.
281 RValue EmitLoadOfLValue(const Expr *E);
Chris Lattner9369a562007-06-29 16:31:29 +0000282 RValue EmitLoadOfLValue(LValue V, QualType LVType);
283
Chris Lattner8394d792007-06-05 20:53:16 +0000284 /// EmitStoreThroughLValue - Store the specified rvalue into the specified
285 /// lvalue, where both are guaranteed to the have the same type, and that type
286 /// is 'Ty'.
287 void EmitStoreThroughLValue(RValue Src, LValue Dst, QualType Ty);
288
Chris Lattnerd7f58862007-06-02 05:24:33 +0000289 LValue EmitDeclRefLValue(const DeclRefExpr *E);
Chris Lattner4347e3692007-06-06 04:54:52 +0000290 LValue EmitStringLiteralLValue(const StringLiteral *E);
Chris Lattner8394d792007-06-05 20:53:16 +0000291 LValue EmitUnaryOpLValue(const UnaryOperator *E);
Chris Lattnerd9d2fb12007-06-08 23:31:14 +0000292 LValue EmitArraySubscriptExpr(const ArraySubscriptExpr *E);
Chris Lattnerd7f58862007-06-02 05:24:33 +0000293
294 //===--------------------------------------------------------------------===//
Chris Lattner208ae962007-05-30 17:57:17 +0000295 // Expression Emission
296 //===--------------------------------------------------------------------===//
297
Chris Lattner8394d792007-06-05 20:53:16 +0000298 RValue EmitExprWithUsualUnaryConversions(const Expr *E, QualType &ResTy);
Chris Lattnercf250242007-06-03 02:02:44 +0000299 QualType EmitUsualArithmeticConversions(const BinaryOperator *E,
Chris Lattner8394d792007-06-05 20:53:16 +0000300 RValue &LHS, RValue &RHS);
Chris Lattner47c247e2007-06-29 17:26:27 +0000301 void EmitShiftOperands(const BinaryOperator *E, RValue &LHS, RValue &RHS);
302
Chris Lattnercd215f02007-06-29 16:52:55 +0000303 void EmitCompoundAssignmentOperands(const CompoundAssignOperator *CAO,
304 LValue &LHSLV, RValue &LHS, RValue &RHS);
305 RValue EmitCompoundAssignmentResult(const CompoundAssignOperator *E,
306 LValue LHSLV, RValue ResV);
307
308
Chris Lattner8394d792007-06-05 20:53:16 +0000309 RValue EmitExpr(const Expr *E);
310 RValue EmitIntegerLiteral(const IntegerLiteral *E);
Chris Lattner2ada32e2007-07-09 23:03:16 +0000311 RValue EmitFloatingLiteral(const FloatingLiteral *E);
Chris Lattner8394d792007-06-05 20:53:16 +0000312
313 RValue EmitCastExpr(const CastExpr *E);
Chris Lattner2b228c92007-06-15 21:34:29 +0000314 RValue EmitCallExpr(const CallExpr *E);
Chris Lattner8394d792007-06-05 20:53:16 +0000315
Chris Lattnerf0106d22007-06-02 19:33:17 +0000316 // Unary Operators.
Chris Lattner8394d792007-06-05 20:53:16 +0000317 RValue EmitUnaryOperator(const UnaryOperator *E);
318 // FIXME: pre/post inc/dec
319 RValue EmitUnaryAddrOf (const UnaryOperator *E);
320 RValue EmitUnaryPlus (const UnaryOperator *E);
321 RValue EmitUnaryMinus (const UnaryOperator *E);
322 RValue EmitUnaryNot (const UnaryOperator *E);
323 RValue EmitUnaryLNot (const UnaryOperator *E);
324 // FIXME: SIZEOF/ALIGNOF(expr).
325 // FIXME: real/imag
Chris Lattnerf0106d22007-06-02 19:33:17 +0000326
Chris Lattnerdb91b162007-06-02 00:16:28 +0000327 // Binary Operators.
Chris Lattner8394d792007-06-05 20:53:16 +0000328 RValue EmitBinaryOperator(const BinaryOperator *E);
329 RValue EmitBinaryMul(const BinaryOperator *E);
330 RValue EmitBinaryDiv(const BinaryOperator *E);
331 RValue EmitBinaryRem(const BinaryOperator *E);
Chris Lattnerb25a9432007-06-29 17:03:06 +0000332 RValue EmitMul(RValue LHS, RValue RHS, QualType EltTy);
333 RValue EmitDiv(RValue LHS, RValue RHS, QualType EltTy);
334 RValue EmitRem(RValue LHS, RValue RHS, QualType EltTy);
Chris Lattnercd215f02007-06-29 16:52:55 +0000335 RValue EmitAdd(RValue LHS, RValue RHS, QualType EltTy);
336 RValue EmitSub(RValue LHS, RValue RHS, QualType EltTy);
Chris Lattner47c247e2007-06-29 17:26:27 +0000337 RValue EmitShl(RValue LHS, RValue RHS, QualType ResTy);
338 RValue EmitShr(RValue LHS, RValue RHS, QualType ResTy);
Chris Lattner1fde0b32007-06-20 18:30:55 +0000339 RValue EmitBinaryCompare(const BinaryOperator *E, unsigned UICmpOpc,
340 unsigned SICmpOpc, unsigned FCmpOpc);
Chris Lattnerb25a9432007-06-29 17:03:06 +0000341 RValue EmitAnd(RValue LHS, RValue RHS, QualType EltTy);
342 RValue EmitOr (RValue LHS, RValue RHS, QualType EltTy);
343 RValue EmitXor(RValue LHS, RValue RHS, QualType EltTy);
Chris Lattner8394d792007-06-05 20:53:16 +0000344 RValue EmitBinaryLAnd(const BinaryOperator *E);
345 RValue EmitBinaryLOr(const BinaryOperator *E);
346
347 RValue EmitBinaryAssign(const BinaryOperator *E);
Chris Lattner8394d792007-06-05 20:53:16 +0000348 RValue EmitBinaryComma(const BinaryOperator *E);
Chris Lattnerbed31442007-05-28 01:07:47 +0000349};
350} // end namespace CodeGen
351} // end namespace clang
Chris Lattnerbed31442007-05-28 01:07:47 +0000352
353#endif