blob: 8306926160129cb40fee6121b7085112c934ffbe [file] [log] [blame]
//===- CommutativityUtils.h - Commutativity utilities -----------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This header file declares a function to populate the commutativity utility
// pattern. This function is intended to be used inside passes to simplify the
// matching of commutative operations by fixing the order of their operands.
//
//===----------------------------------------------------------------------===//
#ifndef MLIR_TRANSFORMS_COMMUTATIVITYUTILS_H
#define MLIR_TRANSFORMS_COMMUTATIVITYUTILS_H
#include "mlir/Transforms/DialectConversion.h"
namespace mlir {
/// Populates the commutativity utility patterns.
void populateCommutativityUtilsPatterns(RewritePatternSet &patterns);
} // namespace mlir
#endif // MLIR_TRANSFORMS_COMMUTATIVITYUTILS_H