#include <DomainView.h>
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 |
Definition at line 19 of file DomainView.h.
DomainView::DomainView | ( | CommaRT & | CRT | ) |
Definition at line 19 of file DomainView.cpp.
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.
FieldIdTraits<F>::FieldType* comma::DomainView::getFieldType | ( | ) | const [inline] |
const llvm::PointerType * DomainView::getPointerTypeTo | ( | ) | const |
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] |
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.