Defines | Typedefs | Functions

ti_asm.h File Reference

#include <stdio.h>
#include "topcode.h"
#include "targ_isa_pack.h"
#include "targ_isa_bundle.h"
Include dependency graph for ti_asm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define defs_INCLUDED
#define TRUE   ((BOOL) 1)
#define FALSE   ((BOOL) 0)
#define TI_ASM_DISASM_ABI_REGS   (0x01)
#define TI_ASM_DISASM_TRUE_PRED   (0x02)

Typedefs

typedef signed int INT
typedef signed int INT32
typedef signed long long INT64
typedef signed char mINT8
typedef signed short mINT16
typedef signed int mINT32
typedef signed long long mINT64
typedef unsigned int UINT
typedef unsigned int UINT32
typedef unsigned long long UINT64
typedef unsigned char mUINT8
typedef unsigned short mUINT16
typedef unsigned int mUINT32
typedef unsigned long long mUINT64
typedef int BOOL
typedef unsigned char mBOOL

Functions

INT TI_ASM_Pack_Inst (TOP topcode, const INT64 *result, const INT64 *opnd, ISA_PACK_INST *pinst)
INT TI_ASM_Print_Inst (TOP topcode, const char **result, const char **opnd, FILE *f)
INT TI_ASM_DisAsm_Inst (TOP topcode, INT64 *result, INT64 *opnd, INT64 pc, INT flags, char *bufptr)
void TI_ASM_Set_Bundle_Comp (ISA_BUNDLE *bundle, ISA_BUNDLE_PACK_COMP comp, UINT64 val)
UINT64 TI_ASM_Get_Bundle_Comp (const ISA_BUNDLE *bundle, ISA_BUNDLE_PACK_COMP comp)
void TI_ASM_Set_Bundle_Reloc_Value (ISA_BUNDLE *bundle, INT slot, UINT64 val)
UINT64 TI_ASM_Get_Bundle_Reloc_Value (const ISA_BUNDLE *bundle, INT slot)
TOP TI_ASM_Unpack_Inst (const ISA_PACK_INST *inst, ISA_EXEC_UNIT ex_unit, INT64 *result, INT64 *opnd, BOOL xlate_pseudo)

Define Documentation

#define defs_INCLUDED

Definition at line 207 of file ti_asm.h.

#define FALSE   ((BOOL) 0)

Definition at line 228 of file ti_asm.h.

#define TI_ASM_DISASM_ABI_REGS   (0x01)

Definition at line 235 of file ti_asm.h.

Referenced by Format_Operand().

#define TI_ASM_DISASM_TRUE_PRED   (0x02)

Definition at line 236 of file ti_asm.h.

Referenced by Format_Operand().

#define TRUE   ((BOOL) 1)

Definition at line 225 of file ti_asm.h.


Typedef Documentation

typedef int BOOL

Definition at line 222 of file ti_asm.h.

typedef signed int INT

Definition at line 208 of file ti_asm.h.

typedef signed int INT32

Definition at line 209 of file ti_asm.h.

typedef signed long long INT64

Definition at line 210 of file ti_asm.h.

typedef unsigned char mBOOL

Definition at line 223 of file ti_asm.h.

typedef signed short mINT16

Definition at line 212 of file ti_asm.h.

typedef signed int mINT32

Definition at line 213 of file ti_asm.h.

typedef signed long long mINT64

Definition at line 214 of file ti_asm.h.

typedef signed char mINT8

Definition at line 211 of file ti_asm.h.

typedef unsigned short mUINT16

Definition at line 219 of file ti_asm.h.

typedef unsigned int mUINT32

Definition at line 220 of file ti_asm.h.

typedef unsigned long long mUINT64

Definition at line 221 of file ti_asm.h.

typedef unsigned char mUINT8

Definition at line 218 of file ti_asm.h.

typedef unsigned int UINT

Definition at line 215 of file ti_asm.h.

typedef unsigned int UINT32

Definition at line 216 of file ti_asm.h.

typedef unsigned long long UINT64

Definition at line 217 of file ti_asm.h.


Function Documentation

INT TI_ASM_DisAsm_Inst ( TOP  topcode,
INT64 result,
INT64 opnd,
INT64  pc,
INT  flags,
char *  bufptr 
)

Definition at line 273 of file ti_asm.c.

References arg, buf, and Format_Operand().

Here is the call graph for this function:

UINT64 TI_ASM_Get_Bundle_Comp ( const ISA_BUNDLE *  bundle,
ISA_BUNDLE_PACK_COMP  comp 
)

Definition at line 374 of file ti_asm.c.

References val.

Referenced by TI_ASM_Get_Bundle_Reloc_Value(), and TI_ASM_Set_Bundle_Reloc_Value().

UINT64 TI_ASM_Get_Bundle_Reloc_Value ( const ISA_BUNDLE *  bundle,
INT  slot 
)

Definition at line 482 of file ti_asm.c.

References FALSE, fprintf(), NULL, size, TI_ASM_Get_Bundle_Comp(), and val.

Here is the call graph for this function:

INT TI_ASM_Pack_Inst ( TOP  topcode,
const INT64 result,
const INT64 opnd,
ISA_PACK_INST *  pinst 
)

Definition at line 67 of file ti_asm.c.

References bcopy(), FALSE, and TI_errmsg.

Here is the call graph for this function:

INT TI_ASM_Print_Inst ( TOP  topcode,
const char **  result,
const char **  opnd,
FILE *  f 
)

Definition at line 151 of file ti_asm.c.

References arg, fprintf(), and TI_errmsg.

Here is the call graph for this function:

void TI_ASM_Set_Bundle_Comp ( ISA_BUNDLE *  bundle,
ISA_BUNDLE_PACK_COMP  comp,
UINT64  val 
)

Definition at line 347 of file ti_asm.c.

Referenced by TI_ASM_Set_Bundle_Reloc_Value().

void TI_ASM_Set_Bundle_Reloc_Value ( ISA_BUNDLE *  bundle,
INT  slot,
UINT64  val 
)

Definition at line 400 of file ti_asm.c.

References FALSE, fprintf(), NULL, TI_ASM_Get_Bundle_Comp(), and TI_ASM_Set_Bundle_Comp().

Here is the call graph for this function:

TOP TI_ASM_Unpack_Inst ( const ISA_PACK_INST *  inst,
ISA_EXEC_UNIT  ex_unit,
INT64 result,
INT64 opnd,
BOOL  xlate_pseudo 
)

Definition at line 571 of file ti_asm.c.

References bzero(), size, TRUE, and val.

Here is the call graph for this function: