tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
tvm::SourceName Class Reference

The source name of a file loc. More...

#include <location.h>

Inheritance diagram for tvm::SourceName:
Collaboration diagram for tvm::SourceName:

Public Member Functions

 SourceName (ffi::UnsafeInit tag, ffi::ObjectPtr< SourceNameNode > n)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (SourceName, ffi::ObjectRef, SourceNameNode)
 

Static Public Member Functions

static TVM_TIRX_DLL SourceName Get (const ffi::String &name)
 Get an SourceName for a given operator name. Will raise an error if the source name has not been registered.
 

Detailed Description

The source name of a file loc.

See also
SourceNameNode, Location

Constructor & Destructor Documentation

◆ SourceName()

tvm::SourceName::SourceName ( ffi::UnsafeInit  tag,
ffi::ObjectPtr< SourceNameNode >  n 
)
inlineexplicit

Member Function Documentation

◆ Get()

static TVM_TIRX_DLL SourceName tvm::SourceName::Get ( const ffi::String &  name)
static

Get an SourceName for a given operator name. Will raise an error if the source name has not been registered.

Parameters
nameName of the operator.
Returns
SourceName valid throughout program lifetime.

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::SourceName::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( SourceName  ,
ffi::ObjectRef  ,
SourceNameNode   
)

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