MLIR  19.0.0git
Classes | Enumerations
CommutativityUtils.cpp File Reference
#include "mlir/Transforms/CommutativityUtils.h"
#include <queue>

Go to the source code of this file.

Classes

struct  AncestorKey
 Stores the "key" associated with an ancestor. More...
 
struct  CommutativeOperand
 Stores a commutative operand along with its BFS traversal information. More...
 
class  SortCommutativeOperands
 Sorts the operands of op in ascending order of the "key" associated with each operand iff op is commutative. More...
 

Enumerations

enum  AncestorType { BLOCK_ARGUMENT , NON_CONSTANT_OP , CONSTANT_OP }
 The possible "types" of ancestors. More...
 

Enumeration Type Documentation

◆ AncestorType

The possible "types" of ancestors.

Here, an ancestor is an op or a block argument present in the backward slice of a value.

Enumerator
BLOCK_ARGUMENT 

Pertains to a block argument.

NON_CONSTANT_OP 

Pertains to a non-constant-like op.

CONSTANT_OP 

Pertains to a constant-like op.

Definition at line 24 of file CommutativityUtils.cpp.