24 const llvm::opt::ArgStringList &Args) {
25 llvm::opt::ArgStringList CmdArgs(Args);
28 if (Input.
getType() == types::TY_PP_Asm)
29 CmdArgs.push_back(
"-to-binary");
30 if (Output.
getType() == types::TY_PP_Asm)
31 CmdArgs.push_back(
"--spirv-tools-dis");
38 Exec, CmdArgs, Input, Output));
45 const char *LinkingOutput)
const {
47 if (Inputs.size() != 1)
48 llvm_unreachable(
"Invalid number of input files.");
54 Translator = std::make_unique<SPIRV::Translator>(*
this);
69 return SPIRVToolChain::getTranslator();
81 const char *LinkingOutput)
const {
84 ArgStringList CmdArgs;
87 CmdArgs.push_back(
"-o");
91 Args.MakeArgString(
Linker), CmdArgs,
ActionClass getKind() const
Compilation - A set of tasks to perform for a single driver invocation.
@ C
Languages that the frontend can parse and compile.
static constexpr ResponseFileSupport None()
Returns a ResponseFileSupport indicating that response files are not supported.