Skip to content

Commit

Permalink
Add new conditional string setting func
Browse files Browse the repository at this point in the history
  • Loading branch information
vatai committed Dec 27, 2024
1 parent 0f8d148 commit 4add30d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
* implied, of Sven Verdoolaege.
*/

#include <stdio.h>
#include <string.h>

#include "codegen.h"
Expand Down Expand Up @@ -381,6 +382,12 @@ print_user(__isl_take isl_printer *p, __isl_take isl_ast_print_options *options,
return p;
}

static int
conditional_set_omp_pragma_string(__isl_keep isl_id *id, char *line) {
int nt = 42;
sprintf(line, "#pragma omp parallel for num_threads(%d)", nt);
}

static int
id_name_is_label_and_free(__isl_take isl_id *id, const char *label) {
if (!id)
Expand Down

0 comments on commit 4add30d

Please sign in to comment.