LLVM 24.0.0git
MachineBlockHashInfo.cpp File Reference

Go to the source code of this file.

Classes

struct  CollectHashInfo

Functions

static constexpr uint64_t hash_16_bytes (uint64_t low, uint64_t high)
static uint64_t hashBlock (const MachineBasicBlock &MBB, bool HashOperands)
static constexpr uint16_t fold_64_to_16 (const uint64_t Value)
 Fold a 64-bit integer to a 16-bit one.

Variables

static cl::opt< bool > EmitBBHash ("emit-bb-hash", cl::desc("Emit the hash of basic block in the SHT_LLVM_BB_ADDR_MAP section."), cl::init(false))

Function Documentation

◆ fold_64_to_16()

constexpr uint16_t fold_64_to_16 ( const uint64_t Value)
staticconstexpr

Fold a 64-bit integer to a 16-bit one.

Definition at line 61 of file MachineBlockHashInfo.cpp.

References uint64_t.

Referenced by llvm::MachineBlockHashInfoResult::MachineBlockHashInfoResult().

◆ hash_16_bytes()

constexpr uint64_t hash_16_bytes ( uint64_t low,
uint64_t high )
staticconstexpr

◆ hashBlock()

uint64_t hashBlock ( const MachineBasicBlock & MBB,
bool HashOperands )
static

Variable Documentation

◆ EmitBBHash

cl::opt< bool > EmitBBHash("emit-bb-hash", cl::desc( "Emit the hash of basic block in the SHT_LLVM_BB_ADDR_MAP section."), cl::init(false)) ( "emit-bb-hash" ,
cl::desc( "Emit the hash of basic block in the SHT_LLVM_BB_ADDR_MAP section.") ,
cl::init(false)  )
static

Referenced by llvm::shouldEmitBBHash().