GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::jit_variable Class Reference

#include "jit-ir.h"

Inheritance diagram for octave::jit_variable:
Collaboration diagram for octave::jit_variable:

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::stringname (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 *m_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_type)
 
llvm::Value * to_llvm (void) const
 
jit_valuetop (void) const
 
jit_typetype (void) const
 
llvm::Type * type_llvm (void) const
 
const std::stringtype_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 * m_llvm_value
 

Private Attributes

jit_instructionm_last_use
 
std::string m_name
 
std::stack< jit_value * > value_stack
 

Detailed Description

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

Constructor & Destructor Documentation

◆ jit_variable()

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

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

Member Function Documentation

◆ accept()

void octave::jit_variable::accept ( jit_ir_walker walker)
virtual

Implements octave::jit_value.

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

◆ first_use()

◆ first_use_block()

◆ has_llvm()

bool octave::jit_value::has_llvm ( void  ) const
inlineinherited

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

◆ has_top()

bool octave::jit_variable::has_top ( void  ) const
inline

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

◆ in_worklist()

bool octave::jit_value::in_worklist ( void  ) const
inlineinherited

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

Referenced by octave::jit_infer::push_worklist().

◆ last_use()

jit_instruction* octave::jit_variable::last_use ( void  ) const
inline

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

◆ name()

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

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

◆ needs_release()

virtual bool octave::jit_value::needs_release ( void  ) const
inlinevirtualinherited

Reimplemented in octave::jit_call.

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

Referenced by octave::jit_infer::release_temp().

◆ pop()

void octave::jit_variable::pop ( void  )
inline

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

◆ print()

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

Implements octave::jit_value.

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

References os.

◆ print_indent()

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

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

References i, and os.

Referenced by octave::jit_block::print(), octave::jit_error_check::print(), and octave::jit_magic_end::print().

◆ print_string()

std::string octave::jit_value::print_string ( void  )
inlineinherited

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

◆ push()

void octave::jit_variable::push ( jit_instruction v)
inline

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

◆ replace_with()

◆ short_print()

virtual std::ostream& octave::jit_value::short_print ( std::ostream &  os) const
inlinevirtualinherited

Reimplemented in octave::jit_magic_end, octave::jit_assign_base, octave::jit_block, and octave::jit_instruction.

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

References os.

Referenced by octave::jit_store_argument::print().

◆ stash_in_worklist()

void octave::jit_value::stash_in_worklist ( bool  ain_worklist)
inlineinherited

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

Referenced by octave::jit_infer::push_worklist().

◆ stash_last_use()

void octave::jit_variable::stash_last_use ( jit_instruction instr)
inline

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

◆ stash_llvm()

void octave::jit_value::stash_llvm ( llvm::Value *  compiled)
inlineinherited

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

References compiled.

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

◆ stash_type()

void octave::jit_value::stash_type ( jit_type new_type)
inlineinherited

◆ to_llvm()

llvm::Value* octave::jit_value::to_llvm ( void  ) const
inlineinherited

◆ top()

jit_value* octave::jit_variable::top ( void  ) const
inline

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

◆ type()

◆ type_llvm()

llvm::Type* octave::jit_value::type_llvm ( void  ) const
inlineinherited

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

Referenced by octave::jit_convert_llvm::visit().

◆ type_name()

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

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

◆ use_blocks()

void octave::jit_variable::use_blocks ( jit_block::df_set result)
inline

◆ use_count()

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

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

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

Member Data Documentation

◆ m_last_use

jit_instruction* octave::jit_variable::m_last_use
private

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

◆ m_llvm_value

llvm::Value* octave::jit_value::m_llvm_value
protectedinherited

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

Referenced by octave::jit_block::to_llvm().

◆ m_name

std::string octave::jit_variable::m_name
private

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

◆ value_stack

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

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


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