Skip to content

Commit e34ac9e

Browse files
committed
Move host pipe compile time properties processing to opt
1 parent 7b828d7 commit e34ac9e

File tree

6 files changed

+5
-8
lines changed

6 files changed

+5
-8
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9702,9 +9702,6 @@ void SYCLPostLink::ConstructJob(Compilation &C, const JobAction &JA,
97029702
// Process device-globals.
97039703
addArgs(CmdArgs, TCArgs, {"-device-globals"});
97049704

9705-
// Process host pipes.
9706-
addArgs(CmdArgs, TCArgs, {"-host-pipes"});
9707-
97089705
// Make ESIMD accessors use stateless memory accesses.
97099706
if (TCArgs.hasFlag(options::OPT_fsycl_esimd_force_stateless_mem,
97109707
options::OPT_fno_sycl_esimd_force_stateless_mem, false))

llvm/lib/SYCLLowerIR/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ add_llvm_component_library(LLVMSYCLLowerIR
5757
ESIMD/LowerESIMDVecArg.cpp
5858
ESIMD/LowerESIMDVLoadVStore.cpp
5959
ESIMD/LowerESIMDSlmReservation.cpp
60+
HostPipes.cpp
6061
LowerInvokeSimd.cpp
6162
LowerKernelProps.cpp
6263
LowerWGLocalMemory.cpp

llvm/lib/SYCLLowerIR/CompileTimePropertiesPass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include "llvm/SYCLLowerIR/CompileTimePropertiesPass.h"
1212
#include "llvm/SYCLLowerIR/DeviceGlobals.h"
13+
#include "llvm/SYCLLowerIR/HostPipes.h"
1314

1415
#include "llvm/ADT/APInt.h"
1516
#include "llvm/ADT/StringMap.h"

llvm/tools/sycl-post-link/HostPipes.cpp renamed to llvm/lib/SYCLLowerIR/HostPipes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// See comments in the header.
99
//===----------------------------------------------------------------------===//
1010

11-
#include "HostPipes.h"
12-
#include "CompileTimePropertiesPass.h"
11+
#include "llvm/SYCLLowerIR/HostPipes.h"
12+
#include "llvm/SYCLLowerIR/CompileTimePropertiesPass.h"
1313

1414
#include "llvm/ADT/STLExtras.h"
1515
#include "llvm/ADT/StringRef.h"

llvm/test/tools/sycl-post-link/host-pipes/basic.ll renamed to llvm/test/SYCLLowerIR/CompileTimePropertiesPass/host-pipes/basic.ll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
; RUN: sycl-post-link --host-pipes -S %s -o %t.files.table
2-
; RUN: FileCheck %s -input-file=%t.files_0.ll --check-prefix CHECK-IR
3-
; RUN: sycl-post-link --host-pipes --ir-output-only %s -S -o - | FileCheck %s --check-prefix CHECK-IR
1+
; RUN: opt -passes=compile-time-properties %s -S | FileCheck %s --check-prefix CHECK-IR
42

53
; This test is intended to check that CompileTimePropertiesPass adds all the required
64
; metadata nodes to host pipe vars decorated with the "sycl-host-pipe" attribute

0 commit comments

Comments
 (0)