MLIR
20.0.0git
|
Helper struct for configuring the rewrite of mapped scf.forall ops to various gpu id configurations. More...
#include "mlir/Dialect/GPU/TransformOps/Utils.h"
Public Types | |
using | MappingIdBuilderFnType = std::function< DeviceMappingAttrInterface(MLIRContext *, mlir::gpu::MappingId)> |
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. More... | |
GpuIdBuilderFnType | idBuilder |
The constructor that builds the concrete IR for mapping ids. More... | |
Helper struct for configuring the rewrite of mapped scf.forall ops to various gpu id configurations.
using mlir::transform::gpu::GpuIdBuilder::MappingIdBuilderFnType = std::function<DeviceMappingAttrInterface( MLIRContext *, mlir::gpu::MappingId)> |
|
default |
mlir::transform::gpu::GpuIdBuilder::GpuIdBuilder | ( | MLIRContext * | ctx, |
bool | useLinearMapping, | ||
const MappingIdBuilderFnType & | builder | ||
) |
Definition at line 170 of file Utils.cpp.
References mappingAttributes.
GpuIdBuilderFnType mlir::transform::gpu::GpuIdBuilder::idBuilder |
The constructor that builds the concrete IR for mapping ids.
Definition at line 75 of file Utils.h.
Referenced by rewriteOneForallCommonImpl().
SmallVector<DeviceMappingAttrInterface> mlir::transform::gpu::GpuIdBuilder::mappingAttributes |
The mapping attributes targeted by this generator.
Definition at line 72 of file Utils.h.
Referenced by GpuIdBuilder(), and rewriteOneForallCommonImpl().