TT-MLIR
|
Public Types | |
using | Adaptor = AllReduceOpAdaptor |
template<typename RangeT > | |
using | GenericAdaptor = AllReduceOpGenericAdaptor< RangeT > |
using | FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute > > |
using | Properties = FoldAdaptor::Properties |
Public Member Functions | |
static ::llvm::ArrayRef<::llvm::StringRef > | getAttributeNames () |
::mlir::StringAttr | getChannelHandleAttrName () |
::mlir::StringAttr | getDimAttrName () |
::mlir::StringAttr | getReduceTypeAttrName () |
::mlir::StringAttr | getReplicaGroupsAttrName () |
::mlir::StringAttr | getUseGlobalDeviceIdsAttrName () |
std::pair< unsigned, unsigned > | getODSOperandIndexAndLength (unsigned index) |
::mlir::Operation::operand_range | getODSOperands (unsigned index) |
::mlir::Operation::operand_range | getInputs () |
::mlir::TypedValue<::mlir::RankedTensorType > | getOutput () |
::mlir::MutableOperandRange | getInputsMutable () |
::mlir::OpOperand & | getOutputMutable () |
std::pair< unsigned, unsigned > | getODSResultIndexAndLength (unsigned index) |
::mlir::Operation::result_range | getODSResults (unsigned index) |
::mlir::Operation::result_range | getResults () |
void | writeProperties (::mlir::DialectBytecodeWriter &writer) |
::mlir::DenseIntElementsAttr | getReplicaGroupsAttr () |
::mlir::DenseIntElementsAttr | getReplicaGroups () |
::mlir::IntegerAttr | getDimAttr () |
int32_t | getDim () |
::mlir::IntegerAttr | getChannelHandleAttr () |
::std::optional< int32_t > | getChannelHandle () |
::mlir::UnitAttr | getUseGlobalDeviceIdsAttr () |
bool | getUseGlobalDeviceIds () |
::mlir::tt::ReduceTypeAttr | getReduceTypeAttr () |
::mlir::tt::ReduceType | getReduceType () |
void | setReplicaGroupsAttr (::mlir::DenseIntElementsAttr attr) |
void | setDimAttr (::mlir::IntegerAttr attr) |
void | setDim (int32_t attrValue) |
void | setChannelHandleAttr (::mlir::IntegerAttr attr) |
void | setChannelHandle (::std::optional< int32_t > attrValue) |
void | setUseGlobalDeviceIdsAttr (::mlir::UnitAttr attr) |
void | setUseGlobalDeviceIds (bool attrValue) |
void | setReduceTypeAttr (::mlir::tt::ReduceTypeAttr attr) |
void | setReduceType (::mlir::tt::ReduceType attrValue) |
::mlir::Attribute | removeChannelHandleAttr () |
::mlir::Attribute | removeUseGlobalDeviceIdsAttr () |
::llvm::LogicalResult | verifyInvariantsImpl () |
::llvm::LogicalResult | verifyInvariants () |
::llvm::LogicalResult | verify () |
void | getEffects (::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect >> &effects) |
MutableOperandRange | getDpsInitsMutable () |
Static Public Member Functions | |
::mlir::StringAttr | getChannelHandleAttrName (::mlir::OperationName name) |
::mlir::StringAttr | getDimAttrName (::mlir::OperationName name) |
::mlir::StringAttr | getReduceTypeAttrName (::mlir::OperationName name) |
::mlir::StringAttr | getReplicaGroupsAttrName (::mlir::OperationName name) |
::mlir::StringAttr | getUseGlobalDeviceIdsAttrName (::mlir::OperationName name) |
static constexpr ::llvm::StringLiteral | getOperationName () |
::llvm::LogicalResult | setPropertiesFromAttr (Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError) |
::mlir::Attribute | getPropertiesAsAttr (::mlir::MLIRContext *ctx, const Properties &prop) |
static llvm::hash_code | computePropertiesHash (const Properties &prop) |
static std::optional< mlir::Attribute > | getInherentAttr (::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name) |
static void | setInherentAttr (Properties &prop, llvm::StringRef name, mlir::Attribute value) |
static void | populateInherentAttrs (::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs) |
::llvm::LogicalResult | verifyInherentAttrs (::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError) |
::llvm::LogicalResult | readProperties (::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state) |
static void | build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange results, ::mlir::ValueRange inputs, ::mlir::Value output, ::mlir::DenseIntElementsAttr replica_groups, ::mlir::IntegerAttr dim, ::mlir::IntegerAttr channel_handle, ::mlir::UnitAttr use_global_device_ids, ::mlir::tt::ReduceTypeAttr reduce_type) |
static void | build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange results, ::mlir::ValueRange inputs, ::mlir::Value output, ::mlir::DenseIntElementsAttr replica_groups, int32_t dim, ::mlir::IntegerAttr channel_handle, bool use_global_device_ids, ::mlir::tt::ReduceType reduce_type) |
static void | build (::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={}) |
Private Member Functions | |
::mlir::StringAttr | getAttributeNameForIndex (unsigned index) |
Static Private Member Functions | |
::mlir::StringAttr | getAttributeNameForIndex (::mlir::OperationName name, unsigned index) |
using mlir::tt::ttir::AllReduceOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute> > |
using mlir::tt::ttir::AllReduceOp::GenericAdaptor = AllReduceOpGenericAdaptor<RangeT> |
|
static |
|
static |
|
static |
|
static |
|
inlinestaticprivate |
|
inlineprivate |
|
inline |
std::optional< int32_t > mlir::tt::ttir::AllReduceOp::getChannelHandle | ( | ) |
|
inline |
|
inline |
|
inlinestatic |
int32_t mlir::tt::ttir::AllReduceOp::getDim | ( | ) |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
void mlir::tt::ttir::AllReduceOp::getEffects | ( | ::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect >> & | effects | ) |
|
static |
|
inline |
mlir::MutableOperandRange mlir::tt::ttir::AllReduceOp::getInputsMutable | ( | ) |
std::pair< unsigned, unsigned > mlir::tt::ttir::AllReduceOp::getODSOperandIndexAndLength | ( | unsigned | index | ) |
|
inline |
std::pair< unsigned, unsigned > mlir::tt::ttir::AllReduceOp::getODSResultIndexAndLength | ( | unsigned | index | ) |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
static |
mlir::tt::ReduceType mlir::tt::ttir::AllReduceOp::getReduceType | ( | ) |
|
inline |
|
inline |
|
inlinestatic |
mlir::DenseIntElementsAttr mlir::tt::ttir::AllReduceOp::getReplicaGroups | ( | ) |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
bool mlir::tt::ttir::AllReduceOp::getUseGlobalDeviceIds | ( | ) |
|
inline |
|
inline |
|
inlinestatic |
|
static |
|
static |
|
inline |
|
inline |
void mlir::tt::ttir::AllReduceOp::setChannelHandle | ( | ::std::optional< int32_t > | attrValue | ) |
|
inline |
void mlir::tt::ttir::AllReduceOp::setDim | ( | int32_t | attrValue | ) |
|
inline |
|
static |
|
static |
void mlir::tt::ttir::AllReduceOp::setReduceType | ( | ::mlir::tt::ReduceType | attrValue | ) |
|
inline |
|
inline |
void mlir::tt::ttir::AllReduceOp::setUseGlobalDeviceIds | ( | bool | attrValue | ) |
|
inline |
::llvm::LogicalResult mlir::tt::ttir::AllReduceOp::verify | ( | ) |
|
static |
llvm::LogicalResult mlir::tt::ttir::AllReduceOp::verifyInvariants | ( | ) |
llvm::LogicalResult mlir::tt::ttir::AllReduceOp::verifyInvariantsImpl | ( | ) |
void mlir::tt::ttir::AllReduceOp::writeProperties | ( | ::mlir::DialectBytecodeWriter & | writer | ) |