MLIR 24.0.0git
CeilFloorDivExpansion.cpp File Reference

Go to the source code of this file.

Functions

static Value createConst (Location loc, Type type, int value, PatternRewriter &rewriter)
 Create an integer or index constant.

Function Documentation

◆ createConst()

Value createConst ( Location loc,
Type type,
int value,
PatternRewriter & rewriter )
static

Create an integer or index constant.

Definition at line 17 of file CeilFloorDivExpansion.cpp.

References mlir::DenseElementsAttr::get(), mlir::getElementTypeOrSelf(), and mlir::Builder::getIntegerAttr().

Referenced by mlir::transform::gpu::createGpuLaunch().