Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
ti_asm.c File Reference
#include <stdio.h>
#include <assert.h>
#include <strings.h>
#include "topcode.h"
#include "targ_isa_operands.h"
#include "targ_isa_print.h"
#include "targ_isa_pack.h"
#include "targ_isa_bundle.h"
#include "targ_isa_decode.h"
#include "targ_isa_pseudo.h"
#include "targ_isa_enums.h"
#include "targ_abi_properties.h"
#include "targ_proc_properties.h"
#include "ti_errors.h"
#include "ti_asm.h"
Include dependency graph for ti_asm.c:

Go to the source code of this file.

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)
static INT Format_Operand (char *buf, INT64 pc, const ISA_OPERAND_VALTYP *vtype, ISA_OPERAND_USE use, INT64 val, INT flags)
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 *pinst, ISA_EXEC_UNIT ex_unit, INT64 *result, INT64 *opnd, BOOL xlate_pseudo)

Function Documentation

static INT Format_Operand ( char *  buf,
INT64  pc,
const ISA_OPERAND_VALTYP *  vtype,
ISA_OPERAND_USE  use,
INT64  val,
INT  flags 
) [static]

Definition at line 221 of file ti_asm.c.

References TI_ASM_DISASM_ABI_REGS, and TI_ASM_DISASM_TRUE_PRED.

Referenced by TI_ASM_DisAsm_Inst().

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, TI_errmsg, and TI_RC_ERROR.

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(), TI_errmsg, and TI_RC_ERROR.

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 *  pinst,
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:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines