MLIR 22.0.0git
mlir::transform::gpu::GpuIdBuilder Struct Reference

Helper struct for configuring the rewrite of mapped scf.forall ops to various gpu id configurations. More...

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

Inheritance diagram for mlir::transform::gpu::GpuIdBuilder:

Public Types

using MappingIdBuilderFnType

Public Member Functions

 GpuIdBuilder ()=default
 GpuIdBuilder (MLIRContext *ctx, bool useLinearMapping, const MappingIdBuilderFnType &builder)

Public Attributes

SmallVector< DeviceMappingAttrInterface > mappingAttributes
 The mapping attributes targeted by this generator.
GpuIdBuilderFnType idBuilder
 The constructor that builds the concrete IR for mapping ids.

Detailed Description

Helper struct for configuring the rewrite of mapped scf.forall ops to various gpu id configurations.

Definition at line 60 of file Utils.h.

Member Typedef Documentation

◆ MappingIdBuilderFnType

Initial value:
std::function<DeviceMappingAttrInterface(
MLIRContext *, mlir::gpu::MappingId)>
MLIRContext is the top-level object for a collection of MLIR operations.
Definition MLIRContext.h:63

Definition at line 61 of file Utils.h.

Constructor & Destructor Documentation

◆ GpuIdBuilder() [1/2]

◆ GpuIdBuilder() [2/2]

mlir::transform::gpu::GpuIdBuilder::GpuIdBuilder ( MLIRContext * ctx,
bool useLinearMapping,
const MappingIdBuilderFnType & builder )

Definition at line 280 of file Utils.cpp.

References idBuilder, and mappingAttributes.

Member Data Documentation

◆ idBuilder

GpuIdBuilderFnType mlir::transform::gpu::GpuIdBuilder::idBuilder

The constructor that builds the concrete IR for mapping ids.

Definition at line 72 of file Utils.h.

Referenced by GpuIdBuilder(), and rewriteOneForallCommonImpl().

◆ mappingAttributes

SmallVector<DeviceMappingAttrInterface> mlir::transform::gpu::GpuIdBuilder::mappingAttributes

The mapping attributes targeted by this generator.

Definition at line 69 of file Utils.h.

Referenced by GpuIdBuilder(), and rewriteOneForallCommonImpl().


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