Skip to content

Commit f1e81a6

Browse files
committed
[NFC] rename tool to spirv-to-ir-wrapper
1 parent 96dba5c commit f1e81a6

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

llvm/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ set(LLVM_TEST_DEPENDS
135135
opt
136136
sancov
137137
sanstats
138-
spir-to-ir-wrapper
138+
spirv-to-ir-wrapper
139139
sycl-post-link
140140
split-file
141141
verify-uselistorder

llvm/test/tools/spir-to-ir-wrapper/spir-to-ir-wrapper.ll renamed to llvm/test/tools/spirv-to-ir-wrapper/spirv-to-ir-wrapper.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
; Check for passthrough abilities
22
; RUN: llvm-as %s -o %t.bc
3-
; RUN: spir-to-ir-wrapper %t.bc -o %t_1.bc
3+
; RUN: spirv-to-ir-wrapper %t.bc -o %t_1.bc
44
; RUN: llvm-dis %t_1.bc -o %t_1.ll
55
; RUN: FileCheck %s --input-file %t_1.ll
66

77
; Check for SPIR-V conversion
88
; RUN: llvm-spirv %t.bc -o %t.spv
9-
; RUN: spir-to-ir-wrapper %t.spv -o %t_2.bc
9+
; RUN: spirv-to-ir-wrapper %t.spv -o %t_2.bc
1010
; RUN: llvm-dis %t_2.bc -o %t_2.ll
1111
; RUN: FileCheck %s --input-file %t_2.ll
1212

llvm/tools/spir-to-ir-wrapper/CMakeLists.txt renamed to llvm/tools/spirv-to-ir-wrapper/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ include_directories(
88
${LLVM_EXTERNAL_LLVM_SPIRV_SOURCE_DIR}/include
99
)
1010

11-
add_llvm_tool(spir-to-ir-wrapper
12-
spir-to-ir-wrapper.cpp
11+
add_llvm_tool(spirv-to-ir-wrapper
12+
spirv-to-ir-wrapper.cpp
1313
)

llvm/tools/spir-to-ir-wrapper/spir-to-ir-wrapper.cpp renamed to llvm/tools/spirv-to-ir-wrapper/spirv-to-ir-wrapper.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
//===--- spir-to-ir-wrapper.cpp - Utility to convert to ir if needed ------===//
1+
//===--- spirv-to-ir-wrapper.cpp - Utility to convert to ir if needed -----===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// This utility checks if the input file is SPIR based. If so, convert to IR
9+
// This utility checks if the input file is SPIR-V based. If so, convert to IR
1010
// The input can be either SPIR-V or LLVM-IR. When LLVM-IR, copy the file to
1111
// the specified output.
1212
//
@@ -15,7 +15,7 @@
1515
// The output file is used to allow for proper input and output flow within
1616
// the driver toolchain.
1717
//
18-
// Usage: spir-to-ir-wrapper input.spv -o output.bc
18+
// Usage: spirv-to-ir-wrapper input.spv -o output.bc
1919
//
2020
//===----------------------------------------------------------------------===//
2121

@@ -47,14 +47,14 @@ static cl::opt<std::string>
4747
cl::desc("options to pass to llvm-spirv"));
4848

4949
static void error(const Twine &Message) {
50-
llvm::errs() << "spir-to-ir-wrapper: " << Message << '\n';
50+
llvm::errs() << "spirv-to-ir-wrapper: " << Message << '\n';
5151
exit(1);
5252
}
5353

5454
// Convert the SPIR-V to LLVM-IR.
5555
static int convertSPIRVToLLVMIR(const char *Argv0) {
5656
// Find llvm-spirv. It is expected this resides in the same directory
57-
// as spir-to-ir-wrapper.
57+
// as spirv-to-ir-wrapper.
5858
StringRef ParentPath = llvm::sys::path::parent_path(Argv0);
5959
llvm::ErrorOr<std::string> LlvmSpirvBinary =
6060
llvm::sys::findProgramByName("llvm-spirv", ParentPath);
@@ -123,7 +123,7 @@ int main(int argc, char **argv) {
123123
InitLLVM X(argc, argv);
124124

125125
LLVMContext Context;
126-
cl::ParseCommandLineOptions(argc, argv, "spir-to-ir-wrapper\n");
126+
cl::ParseCommandLineOptions(argc, argv, "spirv-to-ir-wrapper\n");
127127

128128
if (InputFilename.empty())
129129
error("No input file provided");

sycl/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ add_custom_target(sycl-compiler
229229
llvm-spirv
230230
llvm-link
231231
llvm-objcopy
232-
spir-to-ir-wrapper
232+
spirv-to-ir-wrapper
233233
sycl-post-link
234234
opencl-aot
235235
)
@@ -293,7 +293,7 @@ set( SYCL_TOOLCHAIN_DEPLOY_COMPONENTS
293293
llvm-spirv
294294
llvm-link
295295
llvm-objcopy
296-
spir-to-ir-wrapper
296+
spirv-to-ir-wrapper
297297
sycl-post-link
298298
sycl-ls
299299
clang-resource-headers

0 commit comments

Comments
 (0)