LLVM 20.0.0git
Namespaces | Macros | Functions | Variables
MIRFSDiscriminator.cpp File Reference
#include "llvm/CodeGen/MIRFSDiscriminator.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/Analysis/BlockFrequencyInfoImpl.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PseudoProbe.h"
#include "llvm/InitializePasses.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/xxhash.h"
#include "llvm/Transforms/Utils/SampleProfileLoaderBaseUtil.h"

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Macros

#define DEBUG_TYPE   "mirfs-discriminators"
 

Functions

static uint64_t getCallStackHashV0 (const MachineBasicBlock &BB, const MachineInstr &MI, const DILocation *DIL)
 
static uint64_t getCallStackHash (const DILocation *DIL)
 

Variables

cl::opt< boolllvm::ImprovedFSDiscriminator ("improved-fs-discriminator", cl::Hidden, cl::init(false), cl::desc("New FS discriminators encoding (incompatible with the original " "encoding)"))
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "mirfs-discriminators"

Definition at line 34 of file MIRFSDiscriminator.cpp.

Function Documentation

◆ getCallStackHash()

static uint64_t getCallStackHash ( const DILocation DIL)
static

Definition at line 78 of file MIRFSDiscriminator.cpp.

References Seed, and llvm::xxh3_64bits().

◆ getCallStackHashV0()

static uint64_t getCallStackHashV0 ( const MachineBasicBlock BB,
const MachineInstr MI,
const DILocation DIL 
)
static