Skip to content

Commit a41f48a

Browse files
committed
Apply driver suggestions
Signed-off-by: Dmitry Sidorov <dmitry.sidorov@intel.com>
1 parent e1aa264 commit a41f48a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,7 @@ def fsycl_device_code_lower_esimd : Flag<["-"], "fsycl-device-code-lower-esimd">
24192419
def fno_sycl_device_code_lower_esimd : Flag<["-"], "fno-sycl-device-code-lower-esimd">,
24202420
Flags<[CC1Option, CoreOption]>, HelpText<"Do not lower ESIMD-specific constructs">;
24212421
def fsycl_instrument_device_code : Flag<["-"], "fsycl-instrument-device-code">,
2422-
Group<f_Group>, Flags<[CC1Option, CoreOption]>,
2422+
Group<sycl_Group>, Flags<[CC1Option, CoreOption]>,
24232423
HelpText<"Add ITT instrumentation intrinsics calls">,
24242424
MarshallingInfoFlag<CodeGenOpts<"SPIRITTAnnotations">>;
24252425
defm sycl_id_queries_fit_in_int: OptInFFlag<"sycl-id-queries-fit-in-int", "Assume", "Do not assume", " that SYCL ID queries fit within MAX_INT.", [CC1Option,CoreOption], LangOpts<"SYCLValueFitInMaxInt">>;

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ void EmitAssemblyHelper::EmitAssembly(BackendAction Action,
951951

952952
// Add SPIRITTAnnotations pass to the pass manager if
953953
// -fsycl-instrument-device-code option was passed. This option can be
954-
// used only with spir tripple.
954+
// used only with spir triple.
955955
if (CodeGenOpts.SPIRITTAnnotations) {
956956
if (!llvm::Triple(TheModule->getTargetTriple()).isSPIR())
957957
llvm::report_fatal_error(

clang/test/CodeGenSYCL/kernel-simple-instrumentation.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/// Check if start/finish ITT annotations are being added during compilation of
2+
/// SYCL device code
3+
14
// RUN: %clang_cc1 -fsycl-is-device -fsycl-instrument-device-code -triple spir64-unknown-unknown-sycldevice -emit-llvm %s -o - | FileCheck %s
25

36
// CHECK: kernel_function

0 commit comments

Comments
 (0)