Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Intrinsics::Function Struct Reference

#include <Intrinsics.h>

Collaboration diagram for Intrinsics::Function:

Public Member Functions

RUNTIME_API Function (const char *inName, const IR::FunctionType *type, void *nativeFunction)
 
RUNTIME_API ~Function ()
 

Public Attributes

Runtime::FunctionInstancefunction
 

Detailed Description

Definition at line 10 of file Intrinsics.h.

Constructor & Destructor Documentation

◆ Function()

Intrinsics::Function::Function ( const char * inName,
const IR::FunctionType * type,
void * nativeFunction )

Definition at line 33 of file Intrinsics.cpp.

34 : name(inName)
35 {
36 function = new Runtime::FunctionInstance(nullptr,type,nativeFunction);
37 Singleton::get().functionMap[getDecoratedName(inName,type)] = this;
38 }
std::string getDecoratedName(const std::string &name, const IR::ObjectType &type)
std::map< std::string, Intrinsics::Function * > functionMap
static Singleton & get()
Here is the call graph for this function:

◆ ~Function()

Intrinsics::Function::~Function ( )

Definition at line 40 of file Intrinsics.cpp.

41 {
42 {
43 Singleton::get().functionMap.erase(Singleton::get().functionMap.find(getDecoratedName(name,function->type)));
44 }
45 delete function;
46 }
Runtime::FunctionInstance * function
Definition Intrinsics.h:12
Here is the call graph for this function:

Member Data Documentation

◆ function

Runtime::FunctionInstance* Intrinsics::Function::function

Definition at line 12 of file Intrinsics.h.


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