MLIR  20.0.0git
Macros
SparseVectorization.cpp File Reference
#include "Utils/CodegenUtils.h"
#include "Utils/LoopEmitter.h"
#include "mlir/Dialect/Affine/IR/AffineOps.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/Dialect/Complex/IR/Complex.h"
#include "mlir/Dialect/Math/IR/Math.h"
#include "mlir/Dialect/MemRef/IR/MemRef.h"
#include "mlir/Dialect/SCF/IR/SCF.h"
#include "mlir/Dialect/SparseTensor/Transforms/Passes.h"
#include "mlir/Dialect/Vector/IR/VectorOps.h"
#include "mlir/Dialect/Vector/Transforms/LoweringPatterns.h"
#include "mlir/IR/Matchers.h"

Go to the source code of this file.

Macros

#define UNAOP(xxx)
 
#define TYPEDUNAOP(xxx)
 
#define BINOP(xxx)
 

Macro Definition Documentation

◆ BINOP

#define BINOP (   xxx)
Value:
if (isa<xxx>(def)) { \
if (codegen) \
vexp = rewriter.create<xxx>(loc, vx, vy); \
return true; \
}

Definition at line 358 of file SparseVectorization.cpp.

◆ TYPEDUNAOP

#define TYPEDUNAOP (   xxx)
Value:
if (auto x = dyn_cast<xxx>(def)) { \
if (codegen) { \
VectorType vtp = vectorType(vl, x.getType()); \
vexp = rewriter.create<xxx>(loc, vtp, vx); \
} \
return true; \
}

Definition at line 349 of file SparseVectorization.cpp.

◆ UNAOP

#define UNAOP (   xxx)
Value:
if (isa<xxx>(def)) { \
if (codegen) \
vexp = rewriter.create<xxx>(loc, vx); \
return true; \
}

Definition at line 342 of file SparseVectorization.cpp.