Skip to content

Commit c150b88

Browse files
authored
[NFC] Update missed comment/doc with rename of -spirv-target-env (#1985)
In 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]>
1 parent b91a397 commit c150b88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

tools/llvm-spirv/llvm-spirv.cpp

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

0 commit comments

Comments
 (0)