Purple  0.1
Standard Language Specification
arguments.h
Go to the documentation of this file.
1
8#ifndef ARGUMENTS_H
9#define ARGUMENTS_H
10
11#include <argp.h>
12#include <stdbool.h>
13
14#include "info.h"
15
20typedef struct PurpleArgs {
24 char* filenames[3];
29
36
37void parse_args(PurpleArgs* args, int argc, char* argv[]);
38void set_opt_level(PurpleArgs* args, int opt_level);
39void help_flags();
40
41// CL Argument Shorthands for argp.h
42#define ARGP_HELP_FLAGS 0x100
43#define ARGP_LLVM_OUTPUT 0x101
44#define FLAGS_START 0x201
45#define FCONST_EXPR_REDUCE_CODE 0x202
46#define FPRINT_FUNC_ANNOTATIONS 0x203
47#define FLAGS_END 0x300
48
49#endif /* ARGUMENTS_H */
void help_flags()
Definition: arguments.c:165
void parse_args(PurpleArgs *args, int argc, char *argv[])
Parses command-line arguments via argp.
Definition: arguments.c:133
struct PurpleArgs PurpleArgs
void set_opt_level(PurpleArgs *args, int opt_level)
Set optimization flags based on a given opt level.
Definition: arguments.c:150
CMake config definitions.
Structure containing command line arguments.
Definition: arguments.h:20
int logging
Definition: arguments.h:22
char * filenames[3]
Definition: arguments.h:24
bool const_expr_reduce
Definition: arguments.h:31
char * from_command_line_argument
Definition: arguments.h:28
char * clang_executable
Definition: arguments.h:26
bool print_func_annotations
Definition: arguments.h:34