MLIR  20.0.0git
Public Attributes | List of all members
mlir::transform::gpu::IdBuilderResult Struct Reference

Helper type for functions that generate ids for the mapping of a scf.forall. More...

#include "mlir/Dialect/GPU/TransformOps/Utils.h"

Public Attributes

SmallVector< ValuemappingIdOps
 
SmallVector< int64_t > availableMappingSizes
 
SmallVector< int64_t > activeMappingSizes
 
SmallVector< ValueactiveIdOps
 

Detailed Description

Helper type for functions that generate ids for the mapping of a scf.forall.

Operates on both 1) an "original" basis that represents the individual thread and block ids and 2) a "scaled" basis that represents grouped ids (e.g. block clusters, warpgroups and warps). The mapping of ids is done in the "scaled" basis (i.e. when mapping to warps a division by 32 occurs). The predication is in the "original" basis using the "active" quantities (activeMappingSizes, availableMappingSizes and activeIdOps).

Definition at line 38 of file Utils.h.

Member Data Documentation

◆ activeIdOps

SmallVector<Value> mlir::transform::gpu::IdBuilderResult::activeIdOps

Definition at line 49 of file Utils.h.

Referenced by rewriteOneForallCommonImpl().

◆ activeMappingSizes

SmallVector<int64_t> mlir::transform::gpu::IdBuilderResult::activeMappingSizes

Definition at line 46 of file Utils.h.

Referenced by rewriteOneForallCommonImpl().

◆ availableMappingSizes

SmallVector<int64_t> mlir::transform::gpu::IdBuilderResult::availableMappingSizes

Definition at line 43 of file Utils.h.

Referenced by rewriteOneForallCommonImpl().

◆ mappingIdOps

SmallVector<Value> mlir::transform::gpu::IdBuilderResult::mappingIdOps

Definition at line 40 of file Utils.h.

Referenced by rewriteOneForallCommonImpl().


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