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_variable Class Reference

#include "jit-ir.h"

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

Public Member Functions

 jit_variable (const std::string &aname)
virtual void accept (jit_ir_walker &walker)
jit_usefirst_use (void) const
jit_blockfirst_use_block (void)
bool has_llvm (void) const
bool has_top (void) const
bool in_worklist (void) const
jit_instructionlast_use (void) const
const std::string & name (void) const
virtual bool needs_release (void) const
void pop (void)
virtual std::ostream & print (std::ostream &os, size_t indent=0) const
std::string print_string (void)
void push (jit_instruction *v)
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 *instr)
void stash_llvm (llvm::Value *compiled)
void stash_type (jit_type *new_ty)
llvm::Value * to_llvm (void) const
jit_valuetop (void) const
jit_typetype (void) const
llvm::Type * type_llvm (void) const
const std::string & type_name (void) const
void use_blocks (jit_block::df_set &result)
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

jit_instructionmlast_use
std::string mname
std::stack< jit_value * > value_stack

Detailed Description

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

Constructor & Destructor Documentation

jit_variable::jit_variable ( const std::string &  aname)
inline

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

Member Function Documentation

void jit_variable::accept ( jit_ir_walker walker)
virtual

Implements jit_value.

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

jit_use * jit_internal_list< jit_value , jit_use >::first_use ( void  ) const
inlineinherited
jit_block * jit_value::first_use_block ( void  )
inherited
bool jit_value::has_llvm ( void  ) const
inlineinherited

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

References jit_value::llvm_value.

bool jit_variable::has_top ( void  ) const
inline

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

Referenced by jit_infer::do_construct_ssa(), and jit_instruction::do_construct_ssa().

bool jit_value::in_worklist ( void  ) const
inlineinherited

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

References jit_value::min_worklist.

Referenced by jit_infer::push_worklist().

jit_instruction* jit_variable::last_use ( void  ) const
inline

Reimplemented from jit_value.

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

References jit_value::mlast_use.

const std::string& jit_variable::name ( void  ) const
inline

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

Referenced by jit_infer::do_construct_ssa(), and jit_convert::jit_convert().

virtual bool jit_value::needs_release ( void  ) const
inlinevirtualinherited

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().

void jit_variable::pop ( void  )
inline

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

virtual std::ostream& jit_variable::print ( std::ostream &  os,
size_t  indent = 0 
) const
inlinevirtual

Implements jit_value.

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

References jit_value::print_indent().

std::ostream& jit_value::print_indent ( std::ostream &  os,
size_t  indent = 0 
) const
inlineprotectedinherited
std::string jit_value::print_string ( void  )
inlineinherited

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

References jit_value::print().

void jit_variable::push ( jit_instruction v)
inline

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

References jit_value::mlast_use.

void jit_value::replace_with ( jit_value value)
virtualinherited
virtual std::ostream& jit_value::short_print ( std::ostream &  os) const
inlinevirtualinherited
void jit_value::stash_in_worklist ( bool  ain_worklist)
inlineinherited

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

References jit_value::min_worklist.

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

void jit_variable::stash_last_use ( jit_instruction instr)
inline

Reimplemented from jit_value.

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

References jit_value::mlast_use.

void jit_value::stash_llvm ( llvm::Value *  compiled)
inlineinherited
void jit_value::stash_type ( jit_type new_ty)
inlineinherited
llvm::Value* jit_value::to_llvm ( void  ) const
inlineinherited

Reimplemented in jit_terminator, jit_phi, and jit_block.

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

References jit_value::llvm_value.

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

jit_value* jit_variable::top ( void  ) const
inline

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

Referenced by jit_infer::do_construct_ssa(), and jit_instruction::do_construct_ssa().

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

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

References jit_type::to_llvm(), and jit_value::ty.

Referenced by jit_convert_llvm::visit().

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

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

References jit_type::name(), and jit_value::ty.

void jit_variable::use_blocks ( jit_block::df_set result)
inline
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
protectedinherited
jit_instruction* jit_variable::mlast_use
private

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

std::string jit_variable::mname
private

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

std::stack<jit_value *> jit_variable::value_stack
private

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


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