CIRCT 22.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
StructuralHashKey Struct Reference

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

Collaboration diagram for StructuralHashKey:
Collaboration graph
[legend]

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

Member Data Documentation

◆ operandPairs

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

◆ opName

OperationName StructuralHashKey::opName

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