Mercurial > projects > ldc
view ir/irvar.h @ 1216:033f18ec1371
Unify %.frames_list and %.frame into a single data structure, generalizing r1212
to all frames instead of just the outer-most one.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Wed, 15 Apr 2009 20:59:19 +0200 |
parents | 8699c450a1a0 |
children | 79758fd2f48a |
line wrap: on
line source
#ifndef LDC_IR_IRVAR_H #define LDC_IR_IRVAR_H #include "ir/ir.h" #include "llvm/Type.h" struct IrVar : IrBase { IrVar(VarDeclaration* var); VarDeclaration* V; llvm::Value* value; }; // represents a global variable struct IrGlobal : IrVar { IrGlobal(VarDeclaration* v); llvm::PATypeHolder type; llvm::Constant* constInit; }; // represents a local variable variable struct IrLocal : IrVar { IrLocal(VarDeclaration* v); bool byref; // Not used for -nested-ctx=array int nestedDepth; // ditto int nestedIndex; }; // represents an aggregate field variable struct IrField : IrVar { IrField(VarDeclaration* v); unsigned index; unsigned unionOffset; llvm::Constant* constInit; }; #endif