17#ifndef LLVM_CODEGEN_MIRFSDISCRIMINATOR_H
18#define LLVM_CODEGEN_MIRFSDISCRIMINATOR_H
31using namespace sampleprof;
45 assert(LowBit < HighBit &&
"HighBit needs to be greater than Lowbit");
49 return "Add FS discriminators in MIR";
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
unsigned getNumFSBBs()
getNumFSBBs() - Return the number of machine BBs that have FS samples.
const MachineFunction * getMachineFunction() const
getMachineFunction - Return the current machine function.
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
uint64_t getNumFSSamples()
getNumFSSamples() - Return the number of samples that have flow sensitive values.
MIRAddFSDiscriminators(FSDiscriminatorPass P=FSDiscriminatorPass::Pass1)
PassNum is the sequence number this pass is called, start from 1.
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
Pass interface - Implemented by all 'passes'.
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.
static unsigned getFSPassBitBegin(sampleprof::FSDiscriminatorPass P)
static unsigned getFSPassBitEnd(sampleprof::FSDiscriminatorPass P)