Home | History | Annotate | Download | only in llvm-spirv

Lines Matching refs:SPIRV

1 //===-- llvm-spirv.cpp - The LLVM/SPIR-V translator utility -----*- C++ -*-===//
4 // The LLVM/SPIRV Translator
36 /// llvm-spirv - Read LLVM bitcode from stdin, write SPIRV to stdout
37 /// llvm-spirv x.bc - Read LLVM bitcode from the x.bc file, write SPIR-V
39 /// llvm-spirv -r - Read SPIRV from stdin, write LLVM bitcode to stdout
40 /// llvm-spirv -r x.bil - Read SPIRV from the x.bil file, write SPIR-V to
65 #include "llvm/Support/SPIRV.h"
71 #define DEBUG_TYPE "spirv"
96 namespace SPIRV {
97 // Use textual format for SPIRV.
148 (SPIRV::SPIRVUseTextFormat ? kExt::SpirvText : kExt::SpirvBinary);
155 errs() << "Fails to save LLVM as SPIRV: " << Err << '\n';
169 errs() << "Fails to load SPIRV as LLVM Module: " << Err << '\n';
222 if (!SPIRV::ConvertSPIRV(IFS, OFS, Err, ToBinary, ToText)) {
271 errs() << "Fails to save LLVM as SPIRV: " << Err << '\n';