FreeTensor
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
freetensor::NativeCode Class Reference

#include <native_code.h>

Public Member Functions

 NativeCode ()
 
 NativeCode (const std::string &name, const std::vector< NativeCodeParam > &params, const std::vector< NativeCodeRet > &returns, const std::string &code, const std::string &entry, const Ref< Target > &target, const StaticInfo &staticInfo=StaticInfo{})
 
const auto & name () const
 
const auto & params () const
 
const auto & returns () const
 
const auto & code () const
 
const auto & entry () const
 
const auto & target () const
 
const auto & staticInfo () const
 

Static Public Member Functions

static NativeCode fromFunc (const Func &func, const std::string &code, const std::string &entry, const Ref< Target > &target, const StaticInfo &staticInfo=StaticInfo{})
 

Detailed Description

Generated native code with metadata

Constructor & Destructor Documentation

◆ NativeCode() [1/2]

freetensor::NativeCode::NativeCode ( )
inline

◆ NativeCode() [2/2]

freetensor::NativeCode::NativeCode ( const std::string &  name,
const std::vector< NativeCodeParam > &  params,
const std::vector< NativeCodeRet > &  returns,
const std::string &  code,
const std::string &  entry,
const Ref< Target > &  target,
const StaticInfo staticInfo = StaticInfo{} 
)
inline

Member Function Documentation

◆ code()

const auto & freetensor::NativeCode::code ( ) const
inline

◆ entry()

const auto & freetensor::NativeCode::entry ( ) const
inline

◆ fromFunc()

NativeCode freetensor::NativeCode::fromFunc ( const Func func,
const std::string &  code,
const std::string &  entry,
const Ref< Target > &  target,
const StaticInfo staticInfo = StaticInfo{} 
)
static

◆ name()

const auto & freetensor::NativeCode::name ( ) const
inline

◆ params()

const auto & freetensor::NativeCode::params ( ) const
inline

◆ returns()

const auto & freetensor::NativeCode::returns ( ) const
inline

◆ staticInfo()

const auto & freetensor::NativeCode::staticInfo ( ) const
inline

◆ target()

const auto & freetensor::NativeCode::target ( ) const
inline

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