GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
jit_value Class Reference

#include "jit-ir.h"

Inheritance diagram for jit_value:
Inheritance graph
[legend]
Collaboration diagram for jit_value:
Collaboration graph
[legend]

Public Member Functions

 jit_value (void)
virtual ~jit_value (void)
virtual void accept (jit_ir_walker &walker)=0
jit_usefirst_use (void) const
jit_blockfirst_use_block (void)
bool has_llvm (void) const
bool in_worklist (void) const
jit_instructionlast_use (void) const
virtual bool needs_release (void) const
virtual std::ostream & print (std::ostream &os, size_t indent=0) const =0
std::string print_string (void)
virtual void replace_with (jit_value *value)
virtual std::ostream & short_print (std::ostream &os) const
void stash_in_worklist (bool ain_worklist)
void stash_last_use (jit_instruction *alast_use)
void stash_llvm (llvm::Value *compiled)
void stash_type (jit_type *new_ty)
llvm::Value * to_llvm (void) const
jit_typetype (void) const
llvm::Type * type_llvm (void) const
const std::string & type_name (void) const
size_t use_count (void) const

Protected Member Functions

std::ostream & print_indent (std::ostream &os, size_t indent=0) const

Protected Attributes

llvm::Value * llvm_value

Private Attributes

bool min_worklist
jit_instructionmlast_use
jit_typety

Detailed Description

Definition at line 187 of file jit-ir.h.

Constructor & Destructor Documentation

jit_value::jit_value ( void  )
inline

Definition at line 191 of file jit-ir.h.

jit_value::~jit_value ( void  )
virtual

Definition at line 149 of file jit-ir.cc.

Member Function Documentation

virtual void jit_value::accept ( jit_ir_walker walker)
pure virtual
jit_use * jit_internal_list< jit_value , jit_use >::first_use ( void  ) const
inlineinherited
jit_block * jit_value::first_use_block ( void  )
bool jit_value::has_llvm ( void  ) const
inline

Definition at line 250 of file jit-ir.h.

References llvm_value.

bool jit_value::in_worklist ( void  ) const
inline

Definition at line 196 of file jit-ir.h.

References min_worklist.

Referenced by jit_infer::push_worklist().

jit_instruction* jit_value::last_use ( void  ) const
inline

Reimplemented in jit_variable.

Definition at line 234 of file jit-ir.h.

References mlast_use.

virtual bool jit_value::needs_release ( void  ) const
inlinevirtual

Reimplemented in jit_call.

Definition at line 241 of file jit-ir.h.

Referenced by jit_infer::release_dead_phi(), and jit_infer::release_temp().

virtual std::ostream& jit_value::print ( std::ostream &  os,
size_t  indent = 0 
) const
pure virtual
std::ostream& jit_value::print_indent ( std::ostream &  os,
size_t  indent = 0 
) const
inlineprotected
std::string jit_value::print_string ( void  )
inline

Definition at line 227 of file jit-ir.h.

References print().

void jit_value::replace_with ( jit_value value)
virtual
virtual std::ostream& jit_value::short_print ( std::ostream &  os) const
inlinevirtual

Reimplemented in jit_magic_end, jit_assign_base, jit_block, and jit_instruction.

Definition at line 245 of file jit-ir.h.

References print().

Referenced by operator<<(), jit_store_argument::print(), and jit_instruction::print_argument().

void jit_value::stash_in_worklist ( bool  ain_worklist)
inline

Definition at line 201 of file jit-ir.h.

References min_worklist.

Referenced by jit_infer::infer(), and jit_infer::push_worklist().

void jit_value::stash_last_use ( jit_instruction alast_use)
inline

Reimplemented in jit_variable.

Definition at line 236 of file jit-ir.h.

References mlast_use.

void jit_value::stash_llvm ( llvm::Value *  compiled)
inline

Definition at line 261 of file jit-ir.h.

References llvm_value.

Referenced by jit_convert_llvm::convert(), jit_argument::jit_argument(), and jit_convert_llvm::visit().

void jit_value::stash_type ( jit_type new_ty)
inline
llvm::Value* jit_value::to_llvm ( void  ) const
inline

Reimplemented in jit_terminator, jit_phi, and jit_block.

Definition at line 255 of file jit-ir.h.

References llvm_value.

Referenced by jit_instruction::argument_llvm(), and jit_convert_llvm::visit().

jit_type* jit_value::type ( void  ) const
inline
llvm::Type* jit_value::type_llvm ( void  ) const
inline

Definition at line 215 of file jit-ir.h.

References jit_type::to_llvm(), and ty.

Referenced by jit_convert_llvm::visit().

const std::string& jit_value::type_name ( void  ) const
inline

Definition at line 220 of file jit-ir.h.

References jit_type::name(), and ty.

size_t jit_internal_list< jit_value , jit_use >::use_count ( void  ) const
inlineinherited

Reimplemented in jit_block.

Definition at line 115 of file jit-util.h.

Referenced by jit_call::infer(), jit_call::print(), and jit_block::use_count().

Member Data Documentation

llvm::Value* jit_value::llvm_value
protected

Definition at line 274 of file jit-ir.h.

Referenced by has_llvm(), stash_llvm(), to_llvm(), and jit_block::to_llvm().

bool jit_value::min_worklist
private

Definition at line 278 of file jit-ir.h.

Referenced by in_worklist(), and stash_in_worklist().

jit_instruction* jit_value::mlast_use
private
jit_type* jit_value::ty
private

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