GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "jit-typeinfo.h"
Classes | |
struct | signature_cmp |
Public Types | |
typedef std::vector< jit_type * > | signature_vec |
Public Member Functions | |
virtual | ~jit_operation (void) |
void | add_overload (const jit_function &func) |
void | add_overload (const jit_function &func, const signature_vec &args) |
const std::string & | name (void) const |
const jit_function & | overload (const signature_vec &types) const |
const jit_function & | overload (OCT_MAKE_DECL_LIST(jit_type *, arg, 1)) const |
const jit_function & | overload (OCT_MAKE_DECL_LIST(jit_type *, arg, 2)) const |
const jit_function & | overload (OCT_MAKE_DECL_LIST(jit_type *, arg, 3)) const |
jit_type * | result (const signature_vec &types) const |
jit_type * | result (OCT_MAKE_DECL_LIST(jit_type *, arg, 1)) const |
jit_type * | result (OCT_MAKE_DECL_LIST(jit_type *, arg, 2)) const |
jit_type * | result (OCT_MAKE_DECL_LIST(jit_type *, arg, 3)) const |
void | stash_name (const std::string &aname) |
Protected Member Functions | |
virtual jit_function * | generate (const signature_vec &types) const |
Private Types | |
typedef std::map< const signature_vec *, jit_function *, signature_cmp > | generated_map |
Private Member Functions | |
const jit_function & | do_generate (const signature_vec &types) const |
Array< octave_idx_type > | to_idx (const signature_vec &types) const |
Private Attributes | |
generated_map | generated |
std::string | mname |
std::vector< Array < jit_function > > | overloads |
Definition at line 325 of file jit-typeinfo.h.
|
private |
Definition at line 379 of file jit-typeinfo.h.
typedef std::vector<jit_type *> jit_operation::signature_vec |
Definition at line 330 of file jit-typeinfo.h.
|
virtual |
Definition at line 805 of file jit-typeinfo.cc.
References generated.
|
inline |
Definition at line 334 of file jit-typeinfo.h.
References jit_function::arguments().
Referenced by jit_typeinfo::add_print(), jit_typeinfo::jit_typeinfo(), jit_typeinfo::register_generic(), and jit_typeinfo::register_intrinsic().
void jit_operation::add_overload | ( | const jit_function & | func, |
const signature_vec & | args | ||
) |
Definition at line 816 of file jit-typeinfo.cc.
References Array< T >::dims(), overloads, Array< T >::resize(), and to_idx().
|
private |
Definition at line 894 of file jit-typeinfo.cc.
References find(), generate(), and generated.
Referenced by overload().
|
protectedvirtual |
Reimplemented in jit_index_operation.
Definition at line 912 of file jit-typeinfo.cc.
Referenced by do_generate().
|
inline |
Definition at line 363 of file jit-typeinfo.h.
const jit_function & jit_operation::overload | ( | const signature_vec & | types | ) | const |
Definition at line 847 of file jit-typeinfo.cc.
References Array< T >::dims(), do_generate(), overloads, to_idx(), and jit_function::valid().
Referenced by jit_typeinfo::do_end().
|
inline |
Definition at line 356 of file jit-typeinfo.h.
|
inline |
Definition at line 357 of file jit-typeinfo.h.
|
inline |
Definition at line 358 of file jit-typeinfo.h.
|
inline |
Definition at line 344 of file jit-typeinfo.h.
References jit_function::result().
Referenced by jit_call::infer().
|
inline |
Definition at line 356 of file jit-typeinfo.h.
|
inline |
Definition at line 357 of file jit-typeinfo.h.
|
inline |
Definition at line 358 of file jit-typeinfo.h.
|
inline |
Definition at line 365 of file jit-typeinfo.h.
Referenced by jit_typeinfo::jit_typeinfo().
|
private |
Definition at line 872 of file jit-typeinfo.cc.
References max().
Referenced by add_overload(), and overload().
|
mutableprivate |
Definition at line 381 of file jit-typeinfo.h.
Referenced by do_generate(), and ~jit_operation().
|
private |
Definition at line 385 of file jit-typeinfo.h.
|
private |
Definition at line 383 of file jit-typeinfo.h.
Referenced by add_overload(), and overload().