#include "llvm/ExecutionEngine/Orc/Debugging/VTuneSupportPlugin.h"
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
#include "llvm/ExecutionEngine/Orc/Debugging/DebugInfoSupport.h"
usingnamespacellvm;
usingnamespacellvm::orc;
usingnamespacellvm::jitlink;
static constexpr StringRef RegisterVTuneImplName = …;
static constexpr StringRef UnregisterVTuneImplName = …;
static constexpr StringRef RegisterTestVTuneImplName = …;
static VTuneMethodBatch getMethodBatch(LinkGraph &G, bool EmitDebugInfo) { … }
void VTuneSupportPlugin::modifyPassConfig(MaterializationResponsibility &MR,
LinkGraph &G,
PassConfiguration &Config) { … }
Error VTuneSupportPlugin::notifyEmitted(MaterializationResponsibility &MR) { … }
Error VTuneSupportPlugin::notifyFailed(MaterializationResponsibility &MR) { … }
Error VTuneSupportPlugin::notifyRemovingResources(JITDylib &JD, ResourceKey K) { … }
void VTuneSupportPlugin::notifyTransferringResources(JITDylib &JD,
ResourceKey DstKey,
ResourceKey SrcKey) { … }
Expected<std::unique_ptr<VTuneSupportPlugin>>
VTuneSupportPlugin::Create(ExecutorProcessControl &EPC, JITDylib &JD,
bool EmitDebugInfo, bool TestMode) { … }