Hello, I am currently new to LLVM and am current doing a project in which I need to generate and store the interference graph of basic blocks/functions. I would like to use llvm::LiveIntervals to analyze the live interval of a register. The question is I am currently constructing a class and not writing a pass. Can I construct an Analyzer oject without the LLVM pass boilerplate, like defining:
void YourPass::runOnMachineFunction(MachineFunction &MF) {
LiveIntervals &LIs = getAnalysis();
// and so on
}