2022-09-23 00:55:35 +08:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2022 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "shared/source/utilities/const_stringref.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class OclocArgHelper;
|
|
|
|
namespace Ocloc {
|
|
|
|
void printOclocCmdLine(const std::vector<std::string> &args);
|
|
|
|
void printHelp(OclocArgHelper *helper);
|
|
|
|
|
|
|
|
namespace CommandNames {
|
2022-12-08 22:23:49 +08:00
|
|
|
inline constexpr NEO::ConstStringRef compile = "compile";
|
|
|
|
inline constexpr NEO::ConstStringRef link = "link";
|
|
|
|
inline constexpr NEO::ConstStringRef disassemble = "disasm";
|
|
|
|
inline constexpr NEO::ConstStringRef assemble = "asm";
|
|
|
|
inline constexpr NEO::ConstStringRef multi = "multi";
|
|
|
|
inline constexpr NEO::ConstStringRef validate = "validate";
|
|
|
|
inline constexpr NEO::ConstStringRef query = "query";
|
|
|
|
inline constexpr NEO::ConstStringRef ids = "ids";
|
|
|
|
inline constexpr NEO::ConstStringRef concat = "concat";
|
2022-09-23 00:55:35 +08:00
|
|
|
} // namespace CommandNames
|
|
|
|
namespace Commands {
|
|
|
|
int compile(OclocArgHelper *argHelper, const std::vector<std::string> &args);
|
|
|
|
int link(OclocArgHelper *argHelper, const std::vector<std::string> &args);
|
|
|
|
int disassemble(OclocArgHelper *argHelper, const std::vector<std::string> &args);
|
|
|
|
int assemble(OclocArgHelper *argHelper, const std::vector<std::string> &args);
|
|
|
|
int multi(OclocArgHelper *argHelper, const std::vector<std::string> &args);
|
|
|
|
int validate(OclocArgHelper *argHelper, const std::vector<std::string> &args);
|
|
|
|
int query(OclocArgHelper *argHelper, const std::vector<std::string> &args);
|
|
|
|
int ids(OclocArgHelper *argHelper, const std::vector<std::string> &args);
|
|
|
|
int concat(OclocArgHelper *argHelper, const std::vector<std::string> &args);
|
|
|
|
} // namespace Commands
|
|
|
|
} // namespace Ocloc
|