[llvm-dev] SPIR-V questions

Enrique González via llvm-dev llvm-dev at lists.llvm.org
Tue Nov 5 03:30:48 PST 2019

Also, i have another question. I need SPIRV metrics to make abstractions
for a project, because I am using iteratively flags for evaluating
different changes, in different order, so I need to know how the code have
change, and I can see that "change" with their metrics.

There is something similar with the llvm opt command: the use of the flag
'-analyze' gives you the metric of the bytecode used as input. I need
something equivalent but for SPIRV files.

El mar., 5 nov. 2019 a las 11:09, Enrique González (<
enrike.gonzalez.98 at gmail.com>) escribió:

> Dear all,
> I have a couple of questions of SPIR-V implementation for OpenCL.
> The first one is about the tool spirv-opt from the project SPIRV-TOOLS.
> When you use that tool like "spirv-opt test.spv -o test.spv", it changes
> something at the file or it does not do anything by not using any flag? I
> think it is like a "No action" flag but I am not 100% sure about that.
> The second doubt is about C++ with OpenCL. I have seen that at a C host
> code, if you want to compile a SPIRV file instead of the source code, you
> can use createProgramWithIL. I am trying now to use something similar at
> C++ but I do notfind anything.

Un saludo

Enrique González
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191105/7251e300/attachment-0001.html>

More information about the llvm-dev mailing list