CIRCT 22.0.0git
|
A struct that represents the key used for structural hashing. More...
Public Member Functions | |
StructuralHashKey (OperationName name, llvm::SmallVector< llvm::PointerIntPair< Value, 1 >, 3 > inps) | |
Constructor. | |
Public Attributes | |
OperationName | opName |
llvm::SmallVector< llvm::PointerIntPair< Value, 1 >, 3 > | operandPairs |
A struct that represents the key used for structural hashing.
It contains the operation name and a sorted vector of pointer-integer pairs, which represent the inputs to the operation and their inversion status. This key is used to identify structurally equivalent operations for CSE.
Definition at line 49 of file StructuralHash.cpp.
|
inline |
Constructor.
Definition at line 54 of file StructuralHash.cpp.
llvm::SmallVector<llvm::PointerIntPair<Value, 1>, 3> StructuralHashKey::operandPairs |
Definition at line 51 of file StructuralHash.cpp.
Referenced by llvm::DenseMapInfo< StructuralHashKey >::getHashValue(), and llvm::DenseMapInfo< StructuralHashKey >::isEqual().
OperationName StructuralHashKey::opName |
Definition at line 50 of file StructuralHash.cpp.
Referenced by llvm::DenseMapInfo< StructuralHashKey >::getHashValue(), and llvm::DenseMapInfo< StructuralHashKey >::isEqual().