ONE - On-device Neural Engine
Loading...
Searching...
No Matches
dummy-compiler.cpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Samsung Electronics Co., Ltd. All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
23#include <iostream>
24#include <fstream>
25#include <string>
26
27int main(int argc, char **argv)
28{
29 if (argc != 2 and argc != 6)
30 return EXIT_FAILURE;
31 if (argc == 2)
32 {
33 std::string help_o{"-h"};
34 std::string argv_1{argv[1]};
35 if (help_o != argv_1)
36 return EXIT_FAILURE;
37
38 std::cout << "HELP MESSAGE!!" << std::endl;
39 return EXIT_SUCCESS;
40 }
41 std::string target_name{argv[2]};
42 std::string output_name{argv[5]};
43
44 std::ofstream outfile(output_name);
45
46 outfile << "dummy-compiler with " << target_name << " target" << std::endl;
47
48 return EXIT_SUCCESS;
49}
int main(void)