PIPS
|
#include "linear.h"
#include "genC.h"
#include "ri-util.h"
#include "text-util.h"
#include "prettyprint.h"
Go to the source code of this file.
Functions | |
string | close_extension (extension e) |
extension.c More... | |
string | close_extensions (extensions es, bool nl) |
string | extension_to_string (extension e) |
string | extensions_to_string (extensions es, bool nl) |
return a new allocated string with the string representation of the extensions. More... | |
extension.c
es,the | extension to be closed |
Today we only generate omp parallel do pragma so the close is pretty easy. Later we will have to analyze the extension to generate the close string accordingly.
Definition at line 49 of file extension.c.
References close_pragma(), and extension_pragma.
Referenced by close_extensions().
string close_extensions | ( | extensions | es, |
bool | nl | ||
) |
es,the | extensions to be closed |
nl,set | to true to get the string with a final new line character |
Use a string_buffer for efficient string concatenation:
Free the buffer with its strings:
es | s |
nl | l |
Definition at line 58 of file extension.c.
References close_extension(), empty_extensions_p(), EXTENSION, extensions_extension, FOREACH, strdup(), string_buffer_append(), string_buffer_free_all(), string_buffer_make(), string_buffer_to_string(), and string_undefined.
to be added later when extension can be something else than pragma switch (extension_tag(e)) { case is_extension_pragma:
default: pips_internal_error("Unknown extension type"); }
Definition at line 86 of file extension.c.
References extension_pragma, and pragma_to_string().
Referenced by extensions_to_string().
string extensions_to_string | ( | extensions | es, |
bool | nl | ||
) |
return a new allocated string with the string representation of the extensions.
Basically you'll get one extension per line
Assume that all the extension from the extensions (note the presence or not of the "s"...) are defined below.
es,the | extensions to translate to strings |
nl,set | to true to get the string with a final new line character |
Prettyprint in the correct language:
Use a string_buffer for efficient string concatenation:
Free the buffer with its strings:
es | s |
nl | l |
Definition at line 111 of file extension.c.
References empty_extensions_p(), EXTENSION, extension_to_string(), extensions_extension, FOREACH, strdup(), string_buffer_append(), string_buffer_free_all(), string_buffer_make(), string_buffer_to_string(), and string_undefined.
Referenced by loop_pragma().