MLIR  17.0.0git
Namespaces | Macros | Functions
ExpandOps.cpp File Reference
#include "mlir/Dialect/Arith/Transforms/Passes.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/IR/TypeUtilities.h"
#include "mlir/Transforms/DialectConversion.h"
#include "mlir/Dialect/Arith/Transforms/Passes.h.inc"
+ Include dependency graph for ExpandOps.cpp:

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::arith
 

Macros

#define GEN_PASS_DEF_ARITHEXPANDOPS
 

Functions

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

Macro Definition Documentation

◆ GEN_PASS_DEF_ARITHEXPANDOPS

#define GEN_PASS_DEF_ARITHEXPANDOPS

Definition at line 17 of file ExpandOps.cpp.

Function Documentation

◆ createConst()

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

Create an integer or index constant.

Definition at line 25 of file ExpandOps.cpp.

References mlir::OpBuilder::create(), and mlir::Builder::getIntegerAttr().

Referenced by createGpuLaunch().