Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/Passes/StandardInstrumentations.h
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | bool invalidate(Function &F, const PreservedAnalyses &PA, | ||||
FunctionAnalysisManager::Invalidator &); | FunctionAnalysisManager::Invalidator &); | ||||
}; | }; | ||||
#ifdef LLVM_ENABLE_ABI_BREAKING_CHECKS | #ifdef LLVM_ENABLE_ABI_BREAKING_CHECKS | ||||
SmallVector<StringRef, 8> PassStack; | SmallVector<StringRef, 8> PassStack; | ||||
#endif | #endif | ||||
void registerCallbacks(PassInstrumentationCallbacks &PIC, | void registerCallbacks(PassInstrumentationCallbacks &PIC, | ||||
FunctionAnalysisManager &FAM); | ModuleAnalysisManager &MAM); | ||||
}; | }; | ||||
// Base class for classes that report changes to the IR. | // Base class for classes that report changes to the IR. | ||||
// It presents an interface for such classes and provides calls | // It presents an interface for such classes and provides calls | ||||
// on various events as the new pass manager transforms the IR. | // on various events as the new pass manager transforms the IR. | ||||
// It also provides filtering of information based on hidden options | // It also provides filtering of information based on hidden options | ||||
// specifying which functions are interesting. | // specifying which functions are interesting. | ||||
// Calls are made for the following events/queries: | // Calls are made for the following events/queries: | ||||
▲ Show 20 Lines • Show All 404 Lines • ▼ Show 20 Lines | |||||
public: | public: | ||||
StandardInstrumentations(LLVMContext &Context, bool DebugLogging, | StandardInstrumentations(LLVMContext &Context, bool DebugLogging, | ||||
bool VerifyEach = false, | bool VerifyEach = false, | ||||
PrintPassOptions PrintPassOpts = PrintPassOptions()); | PrintPassOptions PrintPassOpts = PrintPassOptions()); | ||||
// Register all the standard instrumentation callbacks. If \p FAM is nullptr | // Register all the standard instrumentation callbacks. If \p FAM is nullptr | ||||
// then PreservedCFGChecker is not enabled. | // then PreservedCFGChecker is not enabled. | ||||
void registerCallbacks(PassInstrumentationCallbacks &PIC, | void registerCallbacks(PassInstrumentationCallbacks &PIC, | ||||
FunctionAnalysisManager *FAM = nullptr); | ModuleAnalysisManager *MAM = nullptr); | ||||
TimePassesHandler &getTimePasses() { return TimePasses; } | TimePassesHandler &getTimePasses() { return TimePasses; } | ||||
}; | }; | ||||
extern template class ChangeReporter<std::string>; | extern template class ChangeReporter<std::string>; | ||||
extern template class TextChangeReporter<std::string>; | extern template class TextChangeReporter<std::string>; | ||||
extern template class BlockDataT<EmptyData>; | extern template class BlockDataT<EmptyData>; | ||||
Show All 9 Lines |