tvm
Public Member Functions | Static Public Member Functions | List of all members
tvm::SourceName Class Reference

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

#include <source_map.h>

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

Public Member Functions

 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (SourceName, ObjectRef, SourceNameNode)
 

Static Public Member Functions

static 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. More...
 

Detailed Description

The source name of a file span.

See also
SourceNameNode, Span

Member Function Documentation

◆ Get()

static 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_NULLABLE()

tvm::SourceName::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE ( SourceName  ,
ObjectRef  ,
SourceNameNode   
)

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