Welcome to the NetCologne GmbH open source mirroring service!

This machine mirrors various open-source projects. 20 Gbit/s uplink.

If there are any issues or you want another project mirrored, please contact mirror-service -=AT=- netcologne DOT de !

Comma: comma::Generator Class Reference

comma::Generator Class Reference

#include <Generator.h>

Inheritance diagram for comma::Generator:
Inheritance graph

List of all members.

Public Member Functions

virtual ~Generator ()
virtual void emitToplevelDecl (Decl *decl)=0
 Codegens a top-level declaration.
virtual void emitEntry (ProcedureDecl *decl)=0
 Codegens an entry function which calls into the Procedure proc and embeds it into the LibraryItem item.

Static Public Member Functions

static Generatorcreate (llvm::Module *M, const llvm::TargetData &data, AstResource &resource)
 Constructs a code generator.

Protected Member Functions

 Generator ()

Detailed Description

Definition at line 17 of file Generator.h.

Constructor & Destructor Documentation

virtual comma::Generator::~Generator (  )  [inline, virtual]

Definition at line 20 of file Generator.h.

comma::Generator::Generator (  )  [inline, protected]

Definition at line 46 of file Generator.h.

Member Function Documentation

Generator * Generator::create ( llvm::Module *  M,
const llvm::TargetData &  data,
AstResource resource 
) [static]

Constructs a code generator.

Definition at line 409 of file CodeGen.cpp.

virtual void comma::Generator::emitEntry ( ProcedureDecl decl  )  [pure virtual]

Codegens an entry function which calls into the Procedure proc and embeds it into the LibraryItem item.

The given procedure must meet the following constraints (failure to do so will fire an assertion):

  • The procedure must be nullary. Parameters are not accepted.
  • The procedure must be defined within a domain, not a functor.
  • The procedure must have been codegened.
virtual void comma::Generator::emitToplevelDecl ( Decl decl  )  [pure virtual]

Codegens a top-level declaration.

The documentation for this class was generated from the following files:

Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1