Skip to content

Commit c2d2018

Browse files
sarnexagainull
authored andcommitted
Update missed comment/doc with rename of -spirv-target-env (intel#1985)
In KhronosGroup/SPIRV-LLVM-Translator@667bf13 we renamed `-spirv-ocl-builtins-version` to `-spirv-target-env` but we missed updating a couple of spots. Signed-off-by: Sarnie, Nick <[email protected]> Original commit: KhronosGroup/SPIRV-LLVM-Translator@c150b88
1 parent ddb9a8e commit c2d2018

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm-spirv/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ To translate between LLVM IR and SPIR-V:
174174
llvm-spirv -r input.spv
175175
```
176176
Recommended options:
177-
* `-spirv-ocl-builtins-version` - to specify target version of OpenCL builtins to translate to (default CL1.2)
177+
* `-spirv-target-env` - to specify target version of OpenCL builtins to translate to (default CL1.2)
178178
179179
3. Other options accepted by `llvm-spirv`
180180

llvm-spirv/tools/llvm-spirv/llvm-spirv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ int main(int Ac, char **Av) {
706706
SPIRV::TranslatorOpts Opts(MaxSPIRVVersion, ExtensionsStatus);
707707
if (BIsRepresentation.getNumOccurrences() != 0) {
708708
if (!IsReverse) {
709-
errs() << "Note: --spirv-ocl-builtins-version option ignored as it only "
709+
errs() << "Note: --spirv-target-env option ignored as it only "
710710
"affects translation from SPIR-V to LLVM IR";
711711
} else {
712712
Opts.setDesiredBIsRepresentation(BIsRepresentation);

0 commit comments

Comments
 (0)