[llvm] [ORC][JITLink] Add Intel VTune support to JITLink (PR #83957)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 21:09:05 PST 2024


================
@@ -0,0 +1,188 @@
+//===--- VTuneSupportPlugin.cpp -- Support for VTune profiler --*- C++ -*--===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Handles support for registering code with VIntel Tune's Amplfiier JIT API.
+//
+//===----------------------------------------------------------------------===//
+#include "llvm/ExecutionEngine/Orc/Debugging/VTuneSupportPlugin.h"
+#include "llvm/DebugInfo/DWARF/DWARFContext.h"
+#include "llvm/ExecutionEngine/Orc/Debugging/DebugInfoSupport.h"
+
+using namespace llvm;
+using namespace llvm::orc;
+using namespace llvm::jitlink;
+
+namespace {
----------------
MaskRay wrote:

https://llvm.org/docs/CodingStandards.html#anonymous-namespaces

In .cpp, basically anonymous namespaces are only for `struct`, `class`, `enum`, etc.

https://github.com/llvm/llvm-project/pull/83957


More information about the llvm-commits mailing list