Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Runtime::IntrinsicResolver Struct Reference

#include <Linker.h>

Inheritance diagram for Runtime::IntrinsicResolver:
Collaboration diagram for Runtime::IntrinsicResolver:

Public Member Functions

RUNTIME_API bool resolve (const std::string &moduleName, const std::string &exportName, IR::ObjectType type, ObjectInstance *&outObject) override
 
- Public Member Functions inherited from Runtime::Resolver

Static Public Attributes

static RUNTIME_API IntrinsicResolver singleton
 

Detailed Description

Definition at line 17 of file Linker.h.

Member Function Documentation

◆ resolve()

bool Runtime::IntrinsicResolver::resolve ( const std::string & moduleName,
const std::string & exportName,
IR::ObjectType type,
ObjectInstance *& outObject )
overridevirtual

Implements Runtime::Resolver.

Definition at line 29 of file Linker.cpp.

30 {
31 // Make sure the wavmIntrinsics module can't be directly imported.
32 if(moduleName == "wavmIntrinsics") { return false; }
33
34 outObject = Intrinsics::find(moduleName + "." + exportName,type);
35 return outObject != nullptr;
36 }
RUNTIME_API Runtime::ObjectInstance * find(const std::string &name, const IR::ObjectType &type)
Here is the call graph for this function:

Member Data Documentation

◆ singleton

RUNTIME_API IntrinsicResolver Runtime::IntrinsicResolver::singleton
static

Definition at line 19 of file Linker.h.


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