CIRCT 24.0.0git
Loading...
Searching...
No Matches
StructuralHashKey Struct Reference

A struct that represents the key used for structural hashing. More...

Collaboration diagram for StructuralHashKey:

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

Detailed Description

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 50 of file StructuralHash.cpp.

Constructor & Destructor Documentation

◆ StructuralHashKey()

StructuralHashKey::StructuralHashKey ( OperationName name,
llvm::SmallVector< llvm::PointerIntPair< Value, 1 >, 3 > inps )
inline

Constructor.

Definition at line 55 of file StructuralHash.cpp.

References operandPairs, and opName.

Member Data Documentation

◆ operandPairs

llvm::SmallVector<llvm::PointerIntPair<Value, 1>, 3> StructuralHashKey::operandPairs

◆ opName


The documentation for this struct was generated from the following file: