Skip to content

Commit 8c344fd

Browse files
committed
Formatting
1 parent 21b4a94 commit 8c344fd

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -728,9 +728,9 @@ class BinaryWrapper {
728728
}
729729

730730
// Create the nativecpu_program struct.
731-
// We add it to a ConstantArray of length 1 because the SYCL runtime expects a
732-
// non-zero sized binary image, and this allows it to point the end of the binary
733-
// image to the end of the array.
731+
// We add it to a ConstantArray of length 1 because the SYCL runtime expects
732+
// a non-zero sized binary image, and this allows it to point the end of the
733+
// binary image to the end of the array.
734734
auto *Program = ConstantStruct::get(NCPUProgramT, {EntriesBegin, PropValue});
735735
ArrayType *ProgramATy = ArrayType::get(NCPUProgramT, 1);
736736
Constant *CPA = ConstantArray::get(ProgramATy, {Program});

llvm/include/llvm/SYCLLowerIR/UtilsSYCLNativeCPU.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ namespace llvm {
1919
namespace sycl {
2020
namespace utils {
2121

22-
2322
// Used to schedule passes in the device compiler cc1 invocation for
2423
// Native CPU.
2524
void addSYCLNativeCPUEarlyPasses(ModulePassManager &MPM);

llvm/lib/SYCLNativeCPUUtils/CheckNDRangeSYCLNativeCPU.cpp

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,12 @@
2424
using namespace llvm;
2525

2626
static std::array<const char *, 13> NdFunctions{
27-
"_Z23__spirv_WorkgroupSize_xv",
28-
"_Z23__spirv_WorkgroupSize_yv",
29-
"_Z23__spirv_WorkgroupSize_zv",
30-
"_Z23__spirv_NumWorkgroups_xv",
31-
"_Z23__spirv_NumWorkgroups_yv",
32-
"_Z23__spirv_NumWorkgroups_zv",
33-
"_Z21__spirv_WorkgroupId_xv",
34-
"_Z21__spirv_WorkgroupId_yv",
35-
"_Z21__spirv_WorkgroupId_zv",
36-
"_Z27__spirv_LocalInvocationId_xv",
37-
"_Z27__spirv_LocalInvocationId_yv",
38-
"_Z27__spirv_LocalInvocationId_zv",
27+
"_Z23__spirv_WorkgroupSize_xv", "_Z23__spirv_WorkgroupSize_yv",
28+
"_Z23__spirv_WorkgroupSize_zv", "_Z23__spirv_NumWorkgroups_xv",
29+
"_Z23__spirv_NumWorkgroups_yv", "_Z23__spirv_NumWorkgroups_zv",
30+
"_Z21__spirv_WorkgroupId_xv", "_Z21__spirv_WorkgroupId_yv",
31+
"_Z21__spirv_WorkgroupId_zv", "_Z27__spirv_LocalInvocationId_xv",
32+
"_Z27__spirv_LocalInvocationId_yv", "_Z27__spirv_LocalInvocationId_zv",
3933
"_Z22__spirv_ControlBarrierjjj"};
4034

4135
static void addNDRangeMetadata(Function &F, bool Value) {

llvm/lib/SYCLNativeCPUUtils/PipelineSYCLNativeCPU.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,5 @@ void llvm::sycl::utils::addSYCLNativeCPUBackendPasses(
133133
}
134134

135135
void llvm::sycl::utils::addSYCLNativeCPUEarlyPasses(ModulePassManager &MPM) {
136-
MPM.addPass(CheckNDRangeSYCLNativeCPUPass());
136+
MPM.addPass(CheckNDRangeSYCLNativeCPUPass());
137137
}

0 commit comments

Comments
 (0)