[llvm] [ORC][JITLink] Add Intel VTune support to JITLink (PR #83957)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 4 20:11:01 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 564b81db8541468ce296d3bdcacab05b9581297c d4d1ca95810440a7367b2cb156fb9b596816c218 -- llvm/include/llvm/ExecutionEngine/Orc/Debugging/VTuneSupportPlugin.h llvm/include/llvm/ExecutionEngine/Orc/Shared/VTuneSharedStructs.h llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.h llvm/lib/ExecutionEngine/Orc/Debugging/VTuneSupportPlugin.cpp llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.cpp llvm/tools/llvm-jitlink/llvm-jitlink.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.h b/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.h
index a9fa9967ac..8c63a9aa47 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.h
@@ -1,5 +1,6 @@
-//===------- JITLoaderVTune.h --- Register profiler objects ------*- C++ -*-===//
+//===------- JITLoaderVTune.h --- Register profiler objects ------*- C++
+//-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -27,5 +28,3 @@ extern "C" llvm::orc::shared::CWrapperFunctionResult
llvm_orc_test_registerVTuneImpl(const char *Data, uint64_t Size);
#endif // LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_JITLOADERVTUNE_H
-
-
diff --git a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
index 0217f645a0..09b2a5900e 100644
--- a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
+++ b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
@@ -1015,9 +1015,10 @@ Session::Session(std::unique_ptr<ExecutorProcessControl> EPC, Error &Err)
if (VTuneSupport && TT.isOSBinFormatELF()) {
ObjLayer.addPlugin(ExitOnErr(DebugInfoPreservationPlugin::Create()));
- ObjLayer.addPlugin(ExitOnErr(VTuneSupportPlugin::Create(
- this->ES.getExecutorProcessControl(), *ProcessSymsJD, /*EmitDebugInfo=*/true,
- /*TestMode=*/true)));
+ ObjLayer.addPlugin(ExitOnErr(
+ VTuneSupportPlugin::Create(this->ES.getExecutorProcessControl(),
+ *ProcessSymsJD, /*EmitDebugInfo=*/true,
+ /*TestMode=*/true)));
}
// Set up the platform.
``````````
</details>
https://github.com/llvm/llvm-project/pull/83957
More information about the llvm-commits
mailing list