|
18 | 18 | #include <string>
|
19 | 19 |
|
20 | 20 | // Default signature enables the passing of user code location information to
|
21 |
| -// public methods as a default argument. If the end-user wants to disable the |
22 |
| -// code location information, they must compile the code with |
23 |
| -// -DDISABLE_SYCL_INSTRUMENTATION_METADATA flag |
| 21 | +// public methods as a default argument. |
24 | 22 | namespace sycl {
|
25 | 23 | __SYCL_INLINE_VER_NAMESPACE(_V1) {
|
26 | 24 | namespace detail {
|
@@ -96,31 +94,6 @@ struct code_location {
|
96 | 94 | unsigned long MColumnNo;
|
97 | 95 | };
|
98 | 96 |
|
99 |
| -// The C++ FE may instrument user calls with code location metadata. |
100 |
| -// If it does then that will appear as an extra last argument. |
101 |
| -// Having _TWO_ mid-param #ifdefs makes the functions very difficult to read. |
102 |
| -// Here we simplify the &CodeLoc declaration to be _CODELOCPARAM(&CodeLoc) and |
103 |
| -// _CODELOCARG(&CodeLoc). |
104 |
| - |
105 |
| -#ifndef DISABLE_SYCL_INSTRUMENTATION_METADATA |
106 |
| -#define _CODELOCONLYPARAM(a) \ |
107 |
| - const ::sycl::detail::code_location a = \ |
108 |
| - ::sycl::detail::code_location::current() |
109 |
| -#define _CODELOCPARAM(a) \ |
110 |
| - , const ::sycl::detail::code_location a = \ |
111 |
| - ::sycl::detail::code_location::current() |
112 |
| -#define _CODELOCPARAMDEF(a) , const ::sycl::detail::code_location a |
113 |
| - |
114 |
| -#define _CODELOCARG(a) |
115 |
| -#define _CODELOCFW(a) , a |
116 |
| -#else |
117 |
| -#define _CODELOCONLYPARAM(a) |
118 |
| -#define _CODELOCPARAM(a) |
119 |
| - |
120 |
| -#define _CODELOCARG(a) const ::sycl::detail::code_location a = {} |
121 |
| -#define _CODELOCFW(a) |
122 |
| -#endif |
123 |
| - |
124 | 97 | /// @brief Data type that manages the code_location information in TLS
|
125 | 98 | /// @details As new SYCL features are added, they all enable the propagation of
|
126 | 99 | /// the code location information where the SYCL API was called by the
|
|
0 commit comments