comma::DomainView Class Reference

#include <DomainView.h>

Collaboration diagram for comma::DomainView:

Collaboration graph
[legend]

List of all members.

Classes

struct  FieldIdTraits
struct  FieldIdTraits< DomainView::Index >

Public Types

enum  FieldId { Instance, Index }

Public Member Functions

 DomainView (CommaRT &CRT)
void init ()
const std::string & getTypeName () const
 Returns the name of a domain_view type.
const llvm::StructType * getType () const
 Returns a structure type describing a domain_view object.
const llvm::PointerType * getPointerTypeTo () const
 Returns a pointer-to domain_view structure type.
llvm::Value * loadInstance (llvm::IRBuilder<> &builder, llvm::Value *DView) const
 Loads the domain_instance associated with the given domain_view.
llvm::Value * loadIndex (llvm::IRBuilder<> &builder, llvm::Value *View) const
 Loads the signature index associated with the given domain_view.
llvm::Value * downcast (llvm::IRBuilder<> &builder, llvm::Value *view, unsigned sigIndex) const
template<FieldId F>
FieldIdTraits< F >::FieldType * getFieldType () const


Detailed Description

Definition at line 19 of file DomainView.h.


Member Enumeration Documentation

Enumerator:
Instance 
Index 

Definition at line 26 of file DomainView.h.


Constructor & Destructor Documentation

DomainView::DomainView ( CommaRT CRT  ) 

Definition at line 19 of file DomainView.cpp.


Member Function Documentation

llvm::Value * DomainView::downcast ( llvm::IRBuilder<> &  builder,
llvm::Value *  view,
unsigned  sigIndex 
) const

Downcasts the provided domain_view to another view corresponding to the signature with the given (view-relative) index.

Downcasts the provided domain_view to another view corresponding to the signature with the given (view-relative) index.

Definition at line 74 of file DomainView.cpp.

template<FieldId F>
FieldIdTraits<F>::FieldType* comma::DomainView::getFieldType (  )  const [inline]

const llvm::PointerType * DomainView::getPointerTypeTo (  )  const

Returns a pointer-to domain_view structure type.

Definition at line 44 of file DomainView.cpp.

const llvm::StructType * DomainView::getType (  )  const

Returns a structure type describing a domain_view object.

Definition at line 39 of file DomainView.cpp.

const std::string& comma::DomainView::getTypeName (  )  const [inline]

Returns the name of a domain_view type.

Definition at line 32 of file DomainView.h.

void DomainView::init (  ) 

Definition at line 25 of file DomainView.cpp.

llvm::Value * DomainView::loadIndex ( llvm::IRBuilder<> &  builder,
llvm::Value *  View 
) const

Loads the signature index associated with the given domain_view.

Definition at line 61 of file DomainView.cpp.

llvm::Value * DomainView::loadInstance ( llvm::IRBuilder<> &  builder,
llvm::Value *  DView 
) const

Loads the domain_instance associated with the given domain_view.

Definition at line 50 of file DomainView.cpp.


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

Generated on Sun Aug 16 02:46:25 2009 for Comma by  doxygen 1.5.8