CorTeX Core ABI 7
ToolTech Software · C++ library reference
Loading...
Searching...
No Matches
ctxAssembler Class Reference

#include <ctxAssembler.h>

Inheritance diagram for ctxAssembler:

Public Member Functions

gzVoid insertOpcode (const gzUInt32 &opcode)
gzVoid addInstruction ()
gzVoid clearProgram ()
gzUInt64 getSize () const
gzUInt64 getInstructions () const
gzBool getProgram (gzDynamicArray< gzUInt32 > &program, gzBool clearProgram=TRUE)
gzBool getProgram (gzDynamicLargeArray< gzUInt32 > &program, gzBool clearProgram=TRUE)
gzVoid disasm (gzBool addComment=TRUE, gzBool addOffset=TRUE, gzMessageLevel level=GZ_MESSAGE_DEBUG)
gzVoid disasm (gzSerializeAdapter *adapter, gzBool addComment=TRUE, gzBool addOffset=TRUE)
gzBool importOpcodes (const gzUInt32 *code, gzUInt32 length, gzBool stopAtReturn=TRUE)
gzVoid nop ()
gzVoid drop ()
gzVoid dup ()
gzVoid mul_param (const gzUInt32 &param_reg_index)
gzVoid mul_const (const gzFloat &constant)
gzVoid mul ()
gzVoid add_param (const gzUInt32 &param_reg_index)
gzVoid recall_param (const gzUInt32 &param_reg_index)
gzVoid store_value (const gzUInt32 &value_reg_index)
gzVoid recall_value (const gzUInt32 &value_reg_index)
gzVoid recall_input (const gzUInt32 &input_reg_index)
gzVoid recall_input_byte (const gzUInt32 &input_reg_index)
gzVoid test_drop_value (const gzUInt32 &drop_reg_index)
gzVoid zero_drop_value (const gzUInt32 &drop_reg_index)
gzVoid store_delta (const gzUInt32 &delta_reg_index)
gzVoid recall_delta (const gzUInt32 &delta_reg_index)
gzVoid sum_n (const gzUInt32 &n)
gzVoid nfu (const ctxNeuronType &neuron)
gzVoid ndf (const ctxNeuronType &neuron)
gzVoid ret ()
gzVoid neg ()
gzVoid max_n (const gzUInt32 &n)
gzVoid equ ()
gzVoid store_delta_sum (const gzUInt32 &delta_sum_reg_index)
gzVoid recall_delta_sum (const gzUInt32 &delta_sum_reg_index)
gzVoid store_wb (const gzUInt32 &wb_reg_index)
gzVoid recall_wb (const gzUInt32 &wb_reg_index)
gzVoid update_wb (const gzUInt32 &wb_reg_index)
gzVoid math (const ctxMathFuncType &func)
gzVoid skip_n (const gzUInt32 &n)
gzVoid finalize_param (const gzUInt32 &param_reg_index, const gzUInt32 &delta_count)
gzVoid finalize_delta (const gzUInt32 &wb_delta_reg_index)
gzVoid store_general (const gzUInt32 &general_reg_index)
gzVoid recall_general (const gzUInt32 &general_reg_index)
gzVoid div ()
gzVoid recall_expected (const gzUInt32 &expected_reg_index)
gzVoid sub ()
gzVoid load (const gzFloat &constant)
gzVoid store_temp (const gzUInt32 &temp_reg_index)
gzVoid recall_temp (const gzUInt32 &temp_reg_index)
gzVoid sum_4 ()
gzVoid max_4 ()
gzVoid clamp ()
gzVoid gradient_update (const gzUInt32 &param_reg_index, const gzUInt32 &delta_reg_index, gzBool use_lambda, const gzUInt32 &depth_level)
gzVoid clear_delta_sum (const gzUInt32 &delta_reg_index, const gzUInt32 &range)
gzVoid collect_delta_sum ()
gzVoid mul_n (const gzUInt32 &n)
gzVoid mul_4 ()
gzVoid recall_page_value (const gzUInt32 &value_reg_index, const gzInt32 &page_offset)
gzVoid recall_page_delta (const gzUInt32 &delta_reg_index, const gzInt32 &page_offset)
gzVoid mad (const gzUInt32 &register_count, ctxRegistrySourceIndex register_a, const gzUInt32 &register_a_index, const gzUInt32 &register_a_stride, ctxRegistrySourceIndex register_b, const gzUInt32 &register_b_index, const gzUInt32 &register_b_stride)
gzVoid recall_source (const gzUInt32 &register_count, ctxRegistrySourceIndex register_source, const gzUInt32 &register_source_index, const gzUInt32 &register_source_stride)
gzVoid store_source (const gzUInt32 &register_count, ctxRegistrySourceIndex register_source, const gzUInt32 &register_source_index, const gzUInt32 &register_source_stride)
gzUInt32 compileTempTokens (gzUInt32 command, gzUInt32 sum_count, gzUInt32 steps, gzUInt32 in_id, gzUInt32 shortToken)
gzVoid setBreakInstruction (gzUInt64 position)

Static Public Member Functions

static gzVoid disasm (const gzUInt32 *commands, gzUInt32 len, gzBool addComment=TRUE, gzBool addOffset=TRUE, gzMessageLevel level=GZ_MESSAGE_DEBUG)
static gzVoid disasm (gzSerializeAdapter *adapter, const gzUInt32 *commands, gzUInt32 len, gzBool addComment=TRUE, gzBool addOffset=TRUE)
static gzVoid disasmSubRoutine (const gzUInt32 *commands, gzArray< ctxCommandBufferSubRoutine > &subroutines, gzBool showInstructions=FALSE, gzBool showThreadInfo=FALSE, gzInt32 targetPass=-1, gzMessageLevel level=GZ_MESSAGE_DEBUG)
static gzVoid disasmSubRoutine (gzSerializeAdapter *adapter, const gzUInt32 *commands, gzArray< ctxCommandBufferSubRoutine > &subroutines, gzBool showInstructions=FALSE, gzBool showThreadInfo=FALSE, gzInt32 targetPass=-1)

Detailed Description

Definition at line 27 of file ctxAssembler.h.

Member Function Documentation

◆ add_param()

gzVoid ctxAssembler::add_param ( const gzUInt32 & param_reg_index)

References CTX_EXPORT.

◆ addInstruction()

gzVoid ctxAssembler::addInstruction ( )

References CTX_EXPORT.

◆ clamp()

gzVoid ctxAssembler::clamp ( )

References CTX_EXPORT.

◆ clear_delta_sum()

gzVoid ctxAssembler::clear_delta_sum ( const gzUInt32 & delta_reg_index,
const gzUInt32 & range )

References CTX_EXPORT.

◆ clearProgram()

gzVoid ctxAssembler::clearProgram ( )

References CTX_EXPORT.

Referenced by getProgram(), and getProgram().

◆ collect_delta_sum()

gzVoid ctxAssembler::collect_delta_sum ( )

References CTX_EXPORT.

◆ compileTempTokens()

gzUInt32 ctxAssembler::compileTempTokens ( gzUInt32 command,
gzUInt32 sum_count,
gzUInt32 steps,
gzUInt32 in_id,
gzUInt32 shortToken )

References CTX_EXPORT.

◆ disasm() [1/4]

gzVoid ctxAssembler::disasm ( const gzUInt32 * commands,
gzUInt32 len,
gzBool addComment = TRUE,
gzBool addOffset = TRUE,
gzMessageLevel level = GZ_MESSAGE_DEBUG )
static

References CTX_EXPORT.

◆ disasm() [2/4]

gzVoid ctxAssembler::disasm ( gzBool addComment = TRUE,
gzBool addOffset = TRUE,
gzMessageLevel level = GZ_MESSAGE_DEBUG )

References CTX_EXPORT.

◆ disasm() [3/4]

gzVoid ctxAssembler::disasm ( gzSerializeAdapter * adapter,
const gzUInt32 * commands,
gzUInt32 len,
gzBool addComment = TRUE,
gzBool addOffset = TRUE )
static

References CTX_EXPORT.

◆ disasm() [4/4]

gzVoid ctxAssembler::disasm ( gzSerializeAdapter * adapter,
gzBool addComment = TRUE,
gzBool addOffset = TRUE )

References CTX_EXPORT.

◆ disasmSubRoutine() [1/2]

gzVoid ctxAssembler::disasmSubRoutine ( const gzUInt32 * commands,
gzArray< ctxCommandBufferSubRoutine > & subroutines,
gzBool showInstructions = FALSE,
gzBool showThreadInfo = FALSE,
gzInt32 targetPass = -1,
gzMessageLevel level = GZ_MESSAGE_DEBUG )
static

References CTX_EXPORT.

◆ disasmSubRoutine() [2/2]

gzVoid ctxAssembler::disasmSubRoutine ( gzSerializeAdapter * adapter,
const gzUInt32 * commands,
gzArray< ctxCommandBufferSubRoutine > & subroutines,
gzBool showInstructions = FALSE,
gzBool showThreadInfo = FALSE,
gzInt32 targetPass = -1 )
static

References CTX_EXPORT.

◆ div()

gzVoid ctxAssembler::div ( )

References CTX_EXPORT.

◆ drop()

gzVoid ctxAssembler::drop ( )

References CTX_EXPORT.

◆ dup()

gzVoid ctxAssembler::dup ( )

References CTX_EXPORT.

◆ equ()

gzVoid ctxAssembler::equ ( )

References CTX_EXPORT.

◆ finalize_delta()

gzVoid ctxAssembler::finalize_delta ( const gzUInt32 & wb_delta_reg_index)

References CTX_EXPORT.

◆ finalize_param()

gzVoid ctxAssembler::finalize_param ( const gzUInt32 & param_reg_index,
const gzUInt32 & delta_count )

References CTX_EXPORT.

◆ getInstructions()

gzUInt64 ctxAssembler::getInstructions ( ) const

References CTX_EXPORT.

◆ getProgram() [1/2]

gzBool ctxAssembler::getProgram ( gzDynamicArray< gzUInt32 > & program,
gzBool clearProgram = TRUE )

References clearProgram(), and CTX_EXPORT.

◆ getProgram() [2/2]

gzBool ctxAssembler::getProgram ( gzDynamicLargeArray< gzUInt32 > & program,
gzBool clearProgram = TRUE )

References clearProgram(), and CTX_EXPORT.

◆ getSize()

gzUInt64 ctxAssembler::getSize ( ) const

References CTX_EXPORT.

◆ gradient_update()

gzVoid ctxAssembler::gradient_update ( const gzUInt32 & param_reg_index,
const gzUInt32 & delta_reg_index,
gzBool use_lambda,
const gzUInt32 & depth_level )

References CTX_EXPORT.

◆ importOpcodes()

gzBool ctxAssembler::importOpcodes ( const gzUInt32 * code,
gzUInt32 length,
gzBool stopAtReturn = TRUE )

References CTX_EXPORT.

◆ insertOpcode()

gzVoid ctxAssembler::insertOpcode ( const gzUInt32 & opcode)

References CTX_EXPORT.

◆ load()

gzVoid ctxAssembler::load ( const gzFloat & constant)

References CTX_EXPORT.

◆ mad()

gzVoid ctxAssembler::mad ( const gzUInt32 & register_count,
ctxRegistrySourceIndex register_a,
const gzUInt32 & register_a_index,
const gzUInt32 & register_a_stride,
ctxRegistrySourceIndex register_b,
const gzUInt32 & register_b_index,
const gzUInt32 & register_b_stride )

References CTX_EXPORT.

◆ math()

gzVoid ctxAssembler::math ( const ctxMathFuncType & func)

References CTX_EXPORT.

◆ max_4()

gzVoid ctxAssembler::max_4 ( )

References CTX_EXPORT.

◆ max_n()

gzVoid ctxAssembler::max_n ( const gzUInt32 & n)

References CTX_EXPORT.

◆ mul()

gzVoid ctxAssembler::mul ( )

References CTX_EXPORT.

◆ mul_4()

gzVoid ctxAssembler::mul_4 ( )

References CTX_EXPORT.

◆ mul_const()

gzVoid ctxAssembler::mul_const ( const gzFloat & constant)

References CTX_EXPORT.

◆ mul_n()

gzVoid ctxAssembler::mul_n ( const gzUInt32 & n)

References CTX_EXPORT.

◆ mul_param()

gzVoid ctxAssembler::mul_param ( const gzUInt32 & param_reg_index)

References CTX_EXPORT.

◆ ndf()

gzVoid ctxAssembler::ndf ( const ctxNeuronType & neuron)

References CTX_EXPORT.

◆ neg()

gzVoid ctxAssembler::neg ( )

References CTX_EXPORT.

◆ nfu()

gzVoid ctxAssembler::nfu ( const ctxNeuronType & neuron)

References CTX_EXPORT.

◆ nop()

gzVoid ctxAssembler::nop ( )

References CTX_EXPORT.

◆ recall_delta()

gzVoid ctxAssembler::recall_delta ( const gzUInt32 & delta_reg_index)

References CTX_EXPORT.

◆ recall_delta_sum()

gzVoid ctxAssembler::recall_delta_sum ( const gzUInt32 & delta_sum_reg_index)

References CTX_EXPORT.

◆ recall_expected()

gzVoid ctxAssembler::recall_expected ( const gzUInt32 & expected_reg_index)

References CTX_EXPORT.

◆ recall_general()

gzVoid ctxAssembler::recall_general ( const gzUInt32 & general_reg_index)

References CTX_EXPORT.

◆ recall_input()

gzVoid ctxAssembler::recall_input ( const gzUInt32 & input_reg_index)

References CTX_EXPORT.

◆ recall_input_byte()

gzVoid ctxAssembler::recall_input_byte ( const gzUInt32 & input_reg_index)

References CTX_EXPORT.

◆ recall_page_delta()

gzVoid ctxAssembler::recall_page_delta ( const gzUInt32 & delta_reg_index,
const gzInt32 & page_offset )

References CTX_EXPORT.

◆ recall_page_value()

gzVoid ctxAssembler::recall_page_value ( const gzUInt32 & value_reg_index,
const gzInt32 & page_offset )

References CTX_EXPORT.

◆ recall_param()

gzVoid ctxAssembler::recall_param ( const gzUInt32 & param_reg_index)

References CTX_EXPORT.

◆ recall_source()

gzVoid ctxAssembler::recall_source ( const gzUInt32 & register_count,
ctxRegistrySourceIndex register_source,
const gzUInt32 & register_source_index,
const gzUInt32 & register_source_stride )

References CTX_EXPORT.

◆ recall_temp()

gzVoid ctxAssembler::recall_temp ( const gzUInt32 & temp_reg_index)

References CTX_EXPORT.

◆ recall_value()

gzVoid ctxAssembler::recall_value ( const gzUInt32 & value_reg_index)

References CTX_EXPORT.

◆ recall_wb()

gzVoid ctxAssembler::recall_wb ( const gzUInt32 & wb_reg_index)

References CTX_EXPORT.

◆ ret()

gzVoid ctxAssembler::ret ( )

References CTX_EXPORT.

◆ setBreakInstruction()

gzVoid ctxAssembler::setBreakInstruction ( gzUInt64 position)

References CTX_EXPORT.

◆ skip_n()

gzVoid ctxAssembler::skip_n ( const gzUInt32 & n)

References CTX_EXPORT.

◆ store_delta()

gzVoid ctxAssembler::store_delta ( const gzUInt32 & delta_reg_index)

References CTX_EXPORT.

◆ store_delta_sum()

gzVoid ctxAssembler::store_delta_sum ( const gzUInt32 & delta_sum_reg_index)

References CTX_EXPORT.

◆ store_general()

gzVoid ctxAssembler::store_general ( const gzUInt32 & general_reg_index)

References CTX_EXPORT.

◆ store_source()

gzVoid ctxAssembler::store_source ( const gzUInt32 & register_count,
ctxRegistrySourceIndex register_source,
const gzUInt32 & register_source_index,
const gzUInt32 & register_source_stride )

References CTX_EXPORT.

◆ store_temp()

gzVoid ctxAssembler::store_temp ( const gzUInt32 & temp_reg_index)

References CTX_EXPORT.

◆ store_value()

gzVoid ctxAssembler::store_value ( const gzUInt32 & value_reg_index)

References CTX_EXPORT.

◆ store_wb()

gzVoid ctxAssembler::store_wb ( const gzUInt32 & wb_reg_index)

References CTX_EXPORT.

◆ sub()

gzVoid ctxAssembler::sub ( )

References CTX_EXPORT.

◆ sum_4()

gzVoid ctxAssembler::sum_4 ( )

References CTX_EXPORT.

◆ sum_n()

gzVoid ctxAssembler::sum_n ( const gzUInt32 & n)

References CTX_EXPORT.

◆ test_drop_value()

gzVoid ctxAssembler::test_drop_value ( const gzUInt32 & drop_reg_index)

References CTX_EXPORT.

◆ update_wb()

gzVoid ctxAssembler::update_wb ( const gzUInt32 & wb_reg_index)

References CTX_EXPORT.

◆ zero_drop_value()

gzVoid ctxAssembler::zero_drop_value ( const gzUInt32 & drop_reg_index)

References CTX_EXPORT.


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