28 return !PAC.preservedWhenStateless();
33 auto &Context =
F.getContext();
36 .getCachedResult<MachineModuleAnalysis>(*
F.getParent())
38 auto MF = std::make_unique<MachineFunction>(
39 F, *TM, STI, Context.generateMachineFunctionNum(
F), MMI);
40 MF->initTargetMachineFunctionInfo(STI);
45 return Result(std::move(MF));
FunctionAnalysisManager FAM
API to communicate dependencies between analyses during invalidation.
A container for analyses that lazily runs them and caches their results.
PassT::Result & getResult(IRUnitT &IR, ExtraArgTs... ExtraArgs)
Get the result of an analysis pass for a given IR unit.
virtual void registerMachineRegisterInfoCallback(MachineFunction &MF) const
bool invalidate(Function &, const PreservedAnalyses &PA, FunctionAnalysisManager::Invalidator &)
This analysis create MachineFunction for given Function.
Result run(Function &F, FunctionAnalysisManager &FAM)
An analysis over an "inner" IR unit that provides access to an analysis manager over a "outer" IR uni...
A set of analyses that are preserved following a run of a transformation pass.
PreservedAnalysisChecker getChecker() const
Build a checker for this PreservedAnalyses and the specified analysis type.
virtual const TargetSubtargetInfo * getSubtargetImpl(const Function &) const
Virtual method implemented by subclasses that returns a reference to that target's TargetSubtargetInf...
TargetSubtargetInfo - Generic base class for all target subtargets.
This is an optimization pass for GlobalISel generic memory operations.
A special type used by analysis passes to provide an address that identifies that particular analysis...