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

#include "jit-ir.h"

Inheritance diagram for octave::jit_argument:
Collaboration diagram for octave::jit_argument:

Public Member Functions

 jit_argument (jit_type *atype, llvm::Value *avalue)
 
virtual void accept (jit_ir_walker &walker)
 
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
 
std::string print_string (void)
 
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 *alast_use)
 
void stash_llvm (llvm::Value *compiled)
 
void stash_type (jit_type *new_type)
 
llvm::Value * to_llvm (void) const
 
jit_typetype (void) const
 
llvm::Type * type_llvm (void) const
 
const std::stringtype_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 * m_llvm_value
 

Detailed Description

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

Constructor & Destructor Documentation

◆ jit_argument()

octave::jit_argument::jit_argument ( jit_type atype,
llvm::Value *  avalue 
)
inline

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

Member Function Documentation

◆ accept()

void octave::jit_argument::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.

◆ 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_value::last_use ( void  ) const
inlineinherited

Definition at line 230 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().

◆ print()

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

Implements octave::jit_value.

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

References octave::jit_print(), os, and type.

◆ 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.

◆ 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_value::stash_last_use ( jit_instruction alast_use)
inlineinherited

Definition at line 232 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

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


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