Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
#include <elf.h>
#include <ctype.h>
#include "defs.h"
#include "targ_const.h"
#include "targ_const_private.h"
#include "erglob.h"
#include "errors.h"
#include "config_asm.h"
#include "stab.h"
#include "em_elf.h"
Go to the source code of this file.
Defines | |
#define | USE_STANDARD_TYPES 1 |
#define | APPEND_TO_DBUF(a, b) a = Targ_Append_To_Dbuf(a,b) |
#define | MAX_LEN 8 |
Functions | |
static BOOL | Has_Control_Char (char *str, INT len) |
void | Targ_Emit_String (FILE *fl, char *str, INT32 len, INTSC loc) |
static void | Emit_Repeated_Constant (FILE *fl, const char *dir, INT64 val, INTSC rc, INTSC maxc) |
void | Targ_Emit_Const (FILE *fl, TCON tc, BOOL add_null, INTSC rc, INTSC loc) |
void | Em_Targ_Emit_Const (void *scn, TCON tc, BOOL add_null, INTSC rc) |
#define APPEND_TO_DBUF | ( | a, | |
b | |||
) | a = Targ_Append_To_Dbuf(a,b) |
defined(QIKKI_BE)
Definition at line 68 of file targ_em_const.cxx.
Referenced by Targ_Emit_String().
#define MAX_LEN 8 |
Referenced by Targ_Emit_String().
#define USE_STANDARD_TYPES 1 |
Definition at line 56 of file targ_em_const.cxx.
void Em_Targ_Emit_Const | ( | void * | scn, |
TCON | tc, | ||
BOOL | add_null, | ||
INTSC | rc | ||
) |
Definition at line 371 of file targ_em_const.cxx.
References Em_Add_Bytes_To_Scn(), FALSE, Index_to_char_array(), Is_True, MTYPE_C4, MTYPE_C8, MTYPE_CQ, MTYPE_F4, MTYPE_F8, MTYPE_FQ, MTYPE_I1, MTYPE_I2, MTYPE_I4, MTYPE_I8, Mtype_Name(), MTYPE_STRING, MTYPE_U1, MTYPE_U2, MTYPE_U4, MTYPE_U8, TCON_cp, TCON_IR4, TCON_IR8, TCON_len, TCON_R4, TCON_R8, TCON_ty, TCON_U8, and TCON_v0.
static void Emit_Repeated_Constant | ( | FILE * | fl, |
const char * | dir, | ||
INT64 | val, | ||
INTSC | rc, | ||
INTSC | maxc | ||
) | [static] |
Definition at line 182 of file targ_em_const.cxx.
References fprintf(), and MIN.
Referenced by Targ_Emit_Const().
static BOOL Has_Control_Char | ( | char * | str, |
INT | len | ||
) | [static] |
Definition at line 73 of file targ_em_const.cxx.
References FALSE, len, and TRUE.
Referenced by Targ_Emit_String().
void Targ_Emit_Const | ( | FILE * | fl, |
TCON | tc, | ||
BOOL | add_null, | ||
INTSC | rc, | ||
INTSC | loc | ||
) |
Definition at line 213 of file targ_em_const.cxx.
References AS_BYTE, AS_DWORD, AS_DWORD_UNALIGNED, AS_HALF, AS_HALF_UNALIGNED, AS_STRING, AS_WORD, AS_WORD_UNALIGNED, ASM_CMNT, EC_Inv_Mtype, Emit_Repeated_Constant(), ErrMsg(), fprintf(), Index_to_char_array(), Is_True, MTYPE_C4, MTYPE_C8, MTYPE_CQ, MTYPE_F4, MTYPE_F8, MTYPE_FQ, MTYPE_I1, MTYPE_I2, MTYPE_I4, MTYPE_I8, Mtype_Name(), MTYPE_STRING, MTYPE_U1, MTYPE_U2, MTYPE_U4, MTYPE_U8, Targ_Emit_String(), TCON_cp, TCON_I8, TCON_IR16, TCON_IR4, TCON_IR8, TCON_len, TCON_R16, TCON_R4, TCON_R8, TCON_ty, and TCON_v0.
void Targ_Emit_String | ( | FILE * | fl, |
char * | str, | ||
INT32 | len, | ||
INTSC | loc | ||
) |
Definition at line 105 of file targ_em_const.cxx.
References APPEND_TO_DBUF, AS_BYTE, AS_STRING, ASM_CMNT, fprintf(), Has_Control_Char(), Is_True, len, and MAX_LEN.
Referenced by Targ_Emit_Const().