tvm
Loading...
Searching...
No Matches
Variables
tvm::s_tir::attr Namespace Reference

Variables

constexpr ffi::reflection::AttrKey< bool > kIsScheduled {"tirx.is_scheduled"}
 Mark the function as scheduled, so the default schedule will pass will skip it.
 
constexpr ffi::reflection::AttrKey< ffi::Array< int64_t > > kLayoutFreeTensors
 Mark the tensors which is const access and can be transformed layout.
 
constexpr const char * kLayoutTransforms = "layout_transforms"
 Marks the layout transforms to be used for a tensor.
 
constexpr ffi::reflection::AttrKey< int64_t > kEstimatedFlops {"estimated_flops"}
 
constexpr ffi::reflection::AttrKey< ffi::String > kThreadBinding {"thread_binding"}
 Hardware thread axis bound to a parallel loop during S-TIR scheduling.
 
constexpr ffi::reflection::AttrKey< int64_t > kDoubleBufferScope {"double_buffer_scope"}
 SBlock annotation selecting a write-tensor index for double buffering in InjectSoftwarePipeline.
 
constexpr ffi::reflection::AttrKey< ffi::String > kFragmentShape {"fragment_shape"}
 String-valued allocation Call attribute containing the TensorCore fragment shape.
 
constexpr ffi::reflection::AttrKey< ffi::String > kFragmentLayout {"fragment_layout"}
 String-valued allocation Call attribute containing the TensorCore fragment layout.
 
constexpr ffi::reflection::AttrKey< PrimExpr > kLoopPartitionHint {"loop_partition_hint"}
 For annotation requesting partitioning when its PrimExpr value is provably true.
 
constexpr ffi::reflection::AttrKey< ffi::String > kMetaScheduleTilingStructure
 Mark the tiling structure of blocks that are applied by rule Multi-Level-Tiling.
 
constexpr ffi::reflection::AttrKey< int64_t > kMetaScheduleCooperativeFetch
 Mark that the loop should be further skip and bound to environment threads to enable cooperative fetching.
 
constexpr ffi::reflection::AttrKey< int64_t > kMetaScheduleThreadExtentLowInclusive
 The allowed range of thread extent in thread bindings.
 
constexpr ffi::reflection::AttrKey< int64_t > kMetaScheduleThreadExtentHighInclusive
 The allowed range of thread extent in thread bindings.
 
constexpr ffi::reflection::AttrKey< int64_t > kMetaScheduleRandomComputeProducer
 Mark the block whose producer needs to be applied by rule Random-Compute-Location.
 
constexpr ffi::reflection::AttrKey< int64_t > kMetaScheduleParallel {"meta_schedule.parallel"}
 Mark auto-parallel setting on the block.
 
constexpr ffi::reflection::AttrKey< int64_t > kMetaScheduleVectorize
 Mark auto-vectorize setting on the block.
 
constexpr ffi::reflection::AttrKey< int64_t > kMetaScheduleUnrollExplicit
 Mark auto-unroll setting on the block.
 
constexpr ffi::reflection::AttrKey< int64_t > kMetaScheduleUnrollImplicit
 Mark auto-unroll setting on the block.
 
constexpr ffi::reflection::AttrKey< ffi::String > kMetaScheduleAutoTensorize
 Mark that a block should be further rewritten using tensorization.
 
constexpr ffi::reflection::AttrKey< bool > kMetaScheduleLayoutRewritePreproc
 Mark that a block is a preprocessor block for layout rewrite.
 
constexpr ffi::reflection::AttrKey< ffi::String > kMetaScheduleAutoTensorizeInit
 Mark that the init statement of a block should be further rewritten using tensorization.
 
constexpr ffi::reflection::AttrKey< ffi::String > kMetaScheduleInlineRule
 Mark that a block is disallowed in auto inline.
 
constexpr ffi::reflection::AttrKey< TensorAllocatedAddresses > kTensorAllocatedAddr
 TensorAllocatedAddresses for block-owned allocations and match tensors.
 
constexpr ffi::reflection::AttrKey< int64_t > kScriptParsingDetectAccess
 Mark whether the script-completer need to fill in missing access region during script parsing.
 
constexpr const char * kRequireBlockVarBoundPredicate = "require_bound_predicate"
 Mark that the block need to add predicate for block var bounds during lowering.
 
constexpr ffi::reflection::AttrKey< ffi::Array< int64_t > > kSoftwarePipelineStage
 Mark the stage of a statement in the software pipeline.
 
constexpr ffi::reflection::AttrKey< ffi::Array< int64_t > > kSoftwarePipelineOrder
 Mark the order of a statement in the software pipeline.
 
constexpr ffi::reflection::AttrKey< ffi::Array< int64_t > > kSoftwarePipelineAsyncStages
 List stages in the software pipeline that should run asynchronously.
 
constexpr ffi::reflection::AttrKey< int64_t > kManifestSharedMemoryLocalStage
 Mark the local stage for the shared memory access should be added.
 
constexpr ffi::reflection::AttrKey< ffi::Array< ffi::Tuple< int32_t, int32_t, int32_t, int32_t > > > kTensorDimAlign {"tensor_dim_align"}
 Mark alignment of tensor dimension The annotation value is an array of explicit tuples (tensor_index, axis, factor, offset). This requires the stride of an axis to be k * factor + offset.
 
constexpr ffi::reflection::AttrKey< ffi::Array< int64_t > > kExplicitReadRegion
 Mark that a block has an explicitly specified read region. This is used to override the default read region inference in TIR.
 
constexpr ffi::reflection::AttrKey< ffi::Array< int64_t > > kExplicitWriteRegion
 Mark that a block has an explicitly specified write region. This is used to override the default write region inference in TIR.
 
constexpr ffi::reflection::AttrKey< int64_t > kIrregularLoopMark {"irregular_loop_mark"}
 ,ark a ForObj represent an irregular loop of non-structural control flow edges.
 
constexpr ffi::reflection::AttrKey< int64_t > kAutoCopy {"auto_copy"}
 Mark auto copy for memhammer.
 
constexpr ffi::reflection::AttrKey< int64_t > kLocalStage {"local_stage"}
 Mark local stage constraint on data copy.
 
constexpr ffi::reflection::AttrKey< int64_t > kVectorBytes {"vector_bytes"}
 Mark vectorization length constraint on block.
 
constexpr ffi::reflection::AttrKey< int64_t > kWarpExecution {"warp_execution"}
 Mark that a block is executed by a warp. This implies the extend of threadIdx.x is warp size.
 
constexpr const char * kPermutedLayout = "permuted_layout"
 
constexpr ffi::reflection::AttrKey< ffi::String > kScheduleRule {"schedule_rule"}
 
constexpr ffi::reflection::AttrKey< ffi::Array< int64_t > > kMetaScheduleWriteCacheLevel
 

Variable Documentation

◆ kAutoCopy

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kAutoCopy {"auto_copy"}
inlineconstexpr

Mark auto copy for memhammer.

◆ kDoubleBufferScope

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kDoubleBufferScope {"double_buffer_scope"}
inlineconstexpr

SBlock annotation selecting a write-tensor index for double buffering in InjectSoftwarePipeline.

◆ kEstimatedFlops

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kEstimatedFlops {"estimated_flops"}
inlineconstexpr

◆ kExplicitReadRegion

constexpr ffi::reflection::AttrKey<ffi::Array<int64_t> > tvm::s_tir::attr::kExplicitReadRegion
inlineconstexpr
Initial value:
{
"explicit_read_region"}

Mark that a block has an explicitly specified read region. This is used to override the default read region inference in TIR.

◆ kExplicitWriteRegion

constexpr ffi::reflection::AttrKey<ffi::Array<int64_t> > tvm::s_tir::attr::kExplicitWriteRegion
inlineconstexpr
Initial value:
{
"explicit_write_region"}

Mark that a block has an explicitly specified write region. This is used to override the default write region inference in TIR.

◆ kFragmentLayout

constexpr ffi::reflection::AttrKey<ffi::String> tvm::s_tir::attr::kFragmentLayout {"fragment_layout"}
inlineconstexpr

String-valued allocation Call attribute containing the TensorCore fragment layout.

◆ kFragmentShape

constexpr ffi::reflection::AttrKey<ffi::String> tvm::s_tir::attr::kFragmentShape {"fragment_shape"}
inlineconstexpr

String-valued allocation Call attribute containing the TensorCore fragment shape.

◆ kIrregularLoopMark

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kIrregularLoopMark {"irregular_loop_mark"}
inlineconstexpr

,ark a ForObj represent an irregular loop of non-structural control flow edges.

◆ kIsScheduled

constexpr ffi::reflection::AttrKey<bool> tvm::s_tir::attr::kIsScheduled {"tirx.is_scheduled"}
inlineconstexpr

Mark the function as scheduled, so the default schedule will pass will skip it.

Type: bool

◆ kLayoutFreeTensors

constexpr ffi::reflection::AttrKey<ffi::Array<int64_t> > tvm::s_tir::attr::kLayoutFreeTensors
inlineconstexpr
Initial value:
{
"layout_free_tensors"}

Mark the tensors which is const access and can be transformed layout.

◆ kLayoutTransforms

constexpr const char* tvm::s_tir::attr::kLayoutTransforms = "layout_transforms"
constexpr

Marks the layout transforms to be used for a tensor.

Only applies to a tensor-like input, as it should be made part of the Function attributes for TIR.

◆ kLocalStage

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kLocalStage {"local_stage"}
inlineconstexpr

Mark local stage constraint on data copy.

◆ kLoopPartitionHint

constexpr ffi::reflection::AttrKey<PrimExpr> tvm::s_tir::attr::kLoopPartitionHint {"loop_partition_hint"}
inlineconstexpr

For annotation requesting partitioning when its PrimExpr value is provably true.

◆ kManifestSharedMemoryLocalStage

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kManifestSharedMemoryLocalStage
inlineconstexpr
Initial value:
{
"tirx.manifest_shared_memory_local_stage"}

Mark the local stage for the shared memory access should be added.

◆ kMetaScheduleAutoTensorize

constexpr ffi::reflection::AttrKey<ffi::String> tvm::s_tir::attr::kMetaScheduleAutoTensorize
inlineconstexpr
Initial value:
{
"meta_schedule.auto_tensorize"}

Mark that a block should be further rewritten using tensorization.

◆ kMetaScheduleAutoTensorizeInit

constexpr ffi::reflection::AttrKey<ffi::String> tvm::s_tir::attr::kMetaScheduleAutoTensorizeInit
inlineconstexpr
Initial value:
{
"meta_schedule.auto_tensorize_init"}

Mark that the init statement of a block should be further rewritten using tensorization.

◆ kMetaScheduleCooperativeFetch

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kMetaScheduleCooperativeFetch
inlineconstexpr
Initial value:
{
"meta_schedule.cooperative_fetch"}

Mark that the loop should be further skip and bound to environment threads to enable cooperative fetching.

◆ kMetaScheduleInlineRule

constexpr ffi::reflection::AttrKey<ffi::String> tvm::s_tir::attr::kMetaScheduleInlineRule
inlineconstexpr
Initial value:
{
"meta_schedule.inline_rule"}

Mark that a block is disallowed in auto inline.

◆ kMetaScheduleLayoutRewritePreproc

constexpr ffi::reflection::AttrKey<bool> tvm::s_tir::attr::kMetaScheduleLayoutRewritePreproc
inlineconstexpr
Initial value:
{
"meta_schedule.layout_rewrite_preproc"}

Mark that a block is a preprocessor block for layout rewrite.

◆ kMetaScheduleParallel

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kMetaScheduleParallel {"meta_schedule.parallel"}
inlineconstexpr

Mark auto-parallel setting on the block.

◆ kMetaScheduleRandomComputeProducer

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kMetaScheduleRandomComputeProducer
inlineconstexpr
Initial value:
{
"meta_schedule.random_compute_producer"}

Mark the block whose producer needs to be applied by rule Random-Compute-Location.

◆ kMetaScheduleThreadExtentHighInclusive

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kMetaScheduleThreadExtentHighInclusive
inlineconstexpr
Initial value:
{
"meta_schedule.thread_extent_high_inclusive"}

The allowed range of thread extent in thread bindings.

◆ kMetaScheduleThreadExtentLowInclusive

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kMetaScheduleThreadExtentLowInclusive
inlineconstexpr
Initial value:
{
"meta_schedule.thread_extent_low_inclusive"}

The allowed range of thread extent in thread bindings.

◆ kMetaScheduleTilingStructure

constexpr ffi::reflection::AttrKey<ffi::String> tvm::s_tir::attr::kMetaScheduleTilingStructure
inlineconstexpr
Initial value:
{
"meta_schedule.tiling_structure"}

Mark the tiling structure of blocks that are applied by rule Multi-Level-Tiling.

◆ kMetaScheduleUnrollExplicit

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kMetaScheduleUnrollExplicit
inlineconstexpr
Initial value:
{
"meta_schedule.unroll_explicit"}

Mark auto-unroll setting on the block.

◆ kMetaScheduleUnrollImplicit

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kMetaScheduleUnrollImplicit
inlineconstexpr
Initial value:
{
"meta_schedule.unroll_implicit"}

Mark auto-unroll setting on the block.

◆ kMetaScheduleVectorize

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kMetaScheduleVectorize
inlineconstexpr
Initial value:
{
"meta_schedule.vectorize"}

Mark auto-vectorize setting on the block.

◆ kMetaScheduleWriteCacheLevel

constexpr ffi::reflection::AttrKey<ffi::Array<int64_t> > tvm::s_tir::attr::kMetaScheduleWriteCacheLevel
inlineconstexpr
Initial value:
{
"s_tir.meta_schedule.write_cache_level"}

◆ kPermutedLayout

constexpr const char* tvm::s_tir::attr::kPermutedLayout = "permuted_layout"
constexpr

◆ kRequireBlockVarBoundPredicate

constexpr const char* tvm::s_tir::attr::kRequireBlockVarBoundPredicate = "require_bound_predicate"
constexpr

Mark that the block need to add predicate for block var bounds during lowering.

◆ kScheduleRule

constexpr ffi::reflection::AttrKey<ffi::String> tvm::s_tir::attr::kScheduleRule {"schedule_rule"}
inlineconstexpr

◆ kScriptParsingDetectAccess

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kScriptParsingDetectAccess
inlineconstexpr
Initial value:
{
"tirx.script_parsing_detect_access"}

Mark whether the script-completer need to fill in missing access region during script parsing.

Note
The result should be a integer mask with range [0, 4). if (mask & 1) the read region should be detected, if (mask & 2) the write region should be detected.

◆ kSoftwarePipelineAsyncStages

constexpr ffi::reflection::AttrKey<ffi::Array<int64_t> > tvm::s_tir::attr::kSoftwarePipelineAsyncStages
inlineconstexpr
Initial value:
{
"software_pipeline_async_stages"}

List stages in the software pipeline that should run asynchronously.

Note
All statements in the provided stages are assumed to have asynchronous semantics (e.g. CUDA async global to shared memory copy).

◆ kSoftwarePipelineOrder

constexpr ffi::reflection::AttrKey<ffi::Array<int64_t> > tvm::s_tir::attr::kSoftwarePipelineOrder
inlineconstexpr
Initial value:
{
"software_pipeline_order"}

Mark the order of a statement in the software pipeline.

◆ kSoftwarePipelineStage

constexpr ffi::reflection::AttrKey<ffi::Array<int64_t> > tvm::s_tir::attr::kSoftwarePipelineStage
inlineconstexpr
Initial value:
{
"software_pipeline_stage"}

Mark the stage of a statement in the software pipeline.

◆ kTensorAllocatedAddr

constexpr ffi::reflection::AttrKey<TensorAllocatedAddresses> tvm::s_tir::attr::kTensorAllocatedAddr
inlineconstexpr
Initial value:
{
"s_tir.tensor_allocated_addr"}

TensorAllocatedAddresses for block-owned allocations and match tensors.

◆ kTensorDimAlign

constexpr ffi::reflection::AttrKey< ffi::Array<ffi::Tuple<int32_t, int32_t, int32_t, int32_t> > > tvm::s_tir::attr::kTensorDimAlign {"tensor_dim_align"}
inlineconstexpr

Mark alignment of tensor dimension The annotation value is an array of explicit tuples (tensor_index, axis, factor, offset). This requires the stride of an axis to be k * factor + offset.

◆ kThreadBinding

constexpr ffi::reflection::AttrKey<ffi::String> tvm::s_tir::attr::kThreadBinding {"thread_binding"}
inlineconstexpr

Hardware thread axis bound to a parallel loop during S-TIR scheduling.

◆ kVectorBytes

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kVectorBytes {"vector_bytes"}
inlineconstexpr

Mark vectorization length constraint on block.

◆ kWarpExecution

constexpr ffi::reflection::AttrKey<int64_t> tvm::s_tir::attr::kWarpExecution {"warp_execution"}
inlineconstexpr

Mark that a block is executed by a warp. This implies the extend of threadIdx.x is warp size.