GDB (API)
|
#include "defs.h"
#include "gdb_string.h"
#include "gdbtypes.h"
#include "symtab.h"
#include "expression.h"
#include "parser-defs.h"
#include "language.h"
#include "c-lang.h"
#include "gdb_assert.h"
Go to the source code of this file.
Defines | |
#define | OCL_P_TYPE(TYPE) |
#define | HEXCHAR_TO_INT(C) |
#define | OCL_STRING(S) #S |
#define | BUILD_OCL_VTYPES(TYPE) |
Enumerations | |
enum | opencl_primitive_types { OCL_P_TYPE = (char), OCL_P_TYPE = (char), OCL_P_TYPE = (char), OCL_P_TYPE = (char), OCL_P_TYPE = (char), OCL_P_TYPE = (char), OCL_P_TYPE = (char), OCL_P_TYPE = (char), OCL_P_TYPE = (char), OCL_P_TYPE = (char), OCL_P_TYPE = (char), opencl_primitive_type_bool, opencl_primitive_type_unsigned_char, opencl_primitive_type_unsigned_short, opencl_primitive_type_unsigned_int, opencl_primitive_type_unsigned_long, opencl_primitive_type_size_t, opencl_primitive_type_ptrdiff_t, opencl_primitive_type_intptr_t, opencl_primitive_type_uintptr_t, opencl_primitive_type_void, nr_opencl_primitive_types } |
Functions | |
void | _initialize_opencl_language (void) |
Variables | |
struct exp_descriptor | exp_descriptor_opencl |
struct language_defn | opencl_language_defn |
initialize_file_ftype | _initialize_opencl_language |
#define BUILD_OCL_VTYPES | ( | TYPE | ) |
types[opencl_primitive_type_##TYPE##2] \ = init_vector_type (types[opencl_primitive_type_##TYPE], 2); \ TYPE_NAME (types[opencl_primitive_type_##TYPE##2]) = OCL_STRING(TYPE ## 2); \ types[opencl_primitive_type_##TYPE##3] \ = init_vector_type (types[opencl_primitive_type_##TYPE], 3); \ TYPE_NAME (types[opencl_primitive_type_##TYPE##3]) = OCL_STRING(TYPE ## 3); \ TYPE_LENGTH (types[opencl_primitive_type_##TYPE##3]) \ = 4 * TYPE_LENGTH (types[opencl_primitive_type_##TYPE]); \ types[opencl_primitive_type_##TYPE##4] \ = init_vector_type (types[opencl_primitive_type_##TYPE], 4); \ TYPE_NAME (types[opencl_primitive_type_##TYPE##4]) = OCL_STRING(TYPE ## 4); \ types[opencl_primitive_type_##TYPE##8] \ = init_vector_type (types[opencl_primitive_type_##TYPE], 8); \ TYPE_NAME (types[opencl_primitive_type_##TYPE##8]) = OCL_STRING(TYPE ## 8); \ types[opencl_primitive_type_##TYPE##16] \ = init_vector_type (types[opencl_primitive_type_##TYPE], 16); \ TYPE_NAME (types[opencl_primitive_type_##TYPE##16]) = OCL_STRING(TYPE ## 16)
#define HEXCHAR_TO_INT | ( | C | ) |
((C >= '0' && C <= '9') ? \ C-'0' : ((C >= 'A' && C <= 'F') ? \ C-'A'+10 : ((C >= 'a' && C <= 'f') ? \ C-'a'+10 : -1)))
#define OCL_P_TYPE | ( | TYPE | ) |
opencl_primitive_type_##TYPE,\ opencl_primitive_type_##TYPE##2,\ opencl_primitive_type_##TYPE##3,\ opencl_primitive_type_##TYPE##4,\ opencl_primitive_type_##TYPE##8,\ opencl_primitive_type_##TYPE##16
Definition at line 36 of file opencl-lang.c.
#define OCL_STRING | ( | S | ) | #S |
Definition at line 44 of file opencl-lang.c.
void _initialize_opencl_language | ( | void | ) |
Definition at line 1234 of file opencl-lang.c.
{ print_subexp_standard, operator_length_standard, operator_check_standard, op_name_standard, dump_subexp_body_standard, evaluate_subexp_opencl }
Definition at line 1092 of file opencl-lang.c.
Definition at line 1102 of file opencl-lang.c.