#include "mlir/Dialect/Shard/Transforms/Passes.h"
#include "mlir/Dialect/Shard/IR/ShardDialect.h"
#include "mlir/Dialect/Shard/IR/ShardOps.h"
#include "mlir/Dialect/Shard/Interfaces/ShardingInterface.h"
#include "mlir/IR/Verifier.h"
#include "mlir/Interfaces/FunctionInterfaces.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <vector>
#include "mlir/Dialect/Shard/Transforms/Passes.h.inc"
Go to the source code of this file.
◆ DBGS
◆ DEBUG_TYPE
| #define DEBUG_TYPE "sharding-propagation" |
◆ GEN_PASS_DECL_PARTITION
| #define GEN_PASS_DECL_PARTITION |
◆ GEN_PASS_DECL_SHARDINGPROPAGATION
| #define GEN_PASS_DECL_SHARDINGPROPAGATION |
◆ GEN_PASS_DEF_SHARDINGPROPAGATION
| #define GEN_PASS_DEF_SHARDINGPROPAGATION |
◆ GEN_PASS_REGISTRATION_PARTITION
| #define GEN_PASS_REGISTRATION_PARTITION |
◆ GEN_PASS_REGISTRATION_SHARDINGPROPAGATION
| #define GEN_PASS_REGISTRATION_SHARDINGPROPAGATION |
◆ ReshardingRquirementKind
| Enumerator |
|---|
| NO_RESHARDING | |
| NO_RESHARDING_FOR_EXPLICIT_ANNOTATIONS | |
| RESHARDING_FOR_EXPLICIT_ANNOTATIONS | |
Definition at line 36 of file ShardingPropagation.cpp.
◆ getOrderedPossibleShardingAttrs()
◆ getReshardingRquirementKind()
◆ selectShardingOption()
◆ visitOp()
Definition at line 280 of file ShardingPropagation.cpp.
References DBGS, mlir::Operation::emitOpError(), mlir::Operation::getNumOperands(), mlir::Operation::getNumResults(), mlir::Operation::getOpOperands(), getOrderedPossibleShardingAttrs(), mlir::Operation::getResults(), mlir::shard::getSharding(), mlir::Operation::hasTrait(), result, selectShardingOption(), and success().
Referenced by ShardingPropagation::runOnOperation().