LLVM 22.0.0git
llvm::FunctionHashInfo Struct Reference

#include "llvm/IR/StructuralHash.h"

Public Member Functions

 FunctionHashInfo (stable_hash FuntionHash, std::unique_ptr< IndexInstrMap > IndexInstruction, std::unique_ptr< IndexOperandHashMapType > IndexOperandHashMap)

Public Attributes

stable_hash FunctionHash
 A hash value representing the structural content of the function.
std::unique_ptr< IndexInstrMapIndexInstruction
 A mapping from instruction indices to instruction pointers.
std::unique_ptr< IndexOperandHashMapTypeIndexOperandHashMap
 A mapping from pairs of instruction indices and operand indices to the hashes of the operands.

Detailed Description

Definition at line 58 of file StructuralHash.h.

Constructor & Destructor Documentation

◆ FunctionHashInfo()

llvm::FunctionHashInfo::FunctionHashInfo ( stable_hash FuntionHash,
std::unique_ptr< IndexInstrMap > IndexInstruction,
std::unique_ptr< IndexOperandHashMapType > IndexOperandHashMap )
inline

Definition at line 68 of file StructuralHash.h.

References FunctionHash, IndexInstruction, IndexOperandHashMap, and llvm::move().

Member Data Documentation

◆ FunctionHash

stable_hash llvm::FunctionHashInfo::FunctionHash

A hash value representing the structural content of the function.

Definition at line 60 of file StructuralHash.h.

Referenced by FunctionHashInfo().

◆ IndexInstruction

std::unique_ptr<IndexInstrMap> llvm::FunctionHashInfo::IndexInstruction

A mapping from instruction indices to instruction pointers.

Definition at line 62 of file StructuralHash.h.

Referenced by FunctionHashInfo().

◆ IndexOperandHashMap

std::unique_ptr<IndexOperandHashMapType> llvm::FunctionHashInfo::IndexOperandHashMap

A mapping from pairs of instruction indices and operand indices to the hashes of the operands.

This can be used to analyze or reconstruct the differences in ignored operands

Definition at line 66 of file StructuralHash.h.

Referenced by FunctionHashInfo().


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