view ir/irtype.h @ 1056:cc723604da95

Fixed two operand form of X86 fstp instruction. (throw away second operand!)
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Sun, 08 Mar 2009 02:36:09 +0100
parents 340acf1535d0
children
line wrap: on
line source

#ifndef LDC_IR_IRTYPE_H
#define LDC_IR_IRTYPE_H

#include <set>

namespace llvm {
    class PATypeHolder;
}

struct IrType
{
    static std::set<IrType*> list;
    static void resetAll();

    // overload all of these to make sure
    // the static list is up to date
    IrType();
    IrType(const IrType& s);
    ~IrType();

    void reset();

    llvm::PATypeHolder* type;
};

#endif