Back to index

cell-binutils  2.17cvs20070401
Classes | Defines | Typedefs | Enumerations | Functions
xtensa-istack.h File Reference
#include "xtensa-isa.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tinsn_struct
struct  tinsn_stack
struct  vliw_insn

Defines

#define MAX_ISTACK   12
#define MAX_INSN_ARGS   10

Typedefs

typedef struct tinsn_struct TInsn
typedef struct tinsn_stack IStack
typedef struct vliw_insn vliw_insn

Enumerations

enum  itype_enum { ITYPE_INSN, ITYPE_LITERAL, ITYPE_LABEL }

Functions

void istack_init (IStack *)
bfd_boolean istack_empty (IStack *)
bfd_boolean istack_full (IStack *)
TInsnistack_top (IStack *)
void istack_push (IStack *, TInsn *)
TInsnistack_push_space (IStack *)
void istack_pop (IStack *)
void tinsn_init (TInsn *)

Class Documentation

struct tinsn_struct

Definition at line 40 of file xtensa-istack.h.

struct tinsn_stack

Definition at line 63 of file xtensa-istack.h.

Collaboration diagram for tinsn_stack:
Class Members
TInsn insn
int ninsn
struct vliw_insn

Definition at line 84 of file xtensa-istack.h.

Collaboration diagram for vliw_insn:
Class Members
xtensa_format format
unsigned int inside_bundle
xtensa_insnbuf insnbuf
int num_slots
xtensa_insnbuf slotbuf
TInsn slots

Define Documentation

#define MAX_INSN_ARGS   10

Definition at line 27 of file xtensa-istack.h.

#define MAX_ISTACK   12

Definition at line 26 of file xtensa-istack.h.


Typedef Documentation


Enumeration Type Documentation

enum itype_enum
Enumerator:
ITYPE_INSN 
ITYPE_LITERAL 
ITYPE_LABEL 

Definition at line 29 of file xtensa-istack.h.


Function Documentation

Definition at line 10936 of file tc-xtensa.c.

{
  return (stack->ninsn == 0);
}

Here is the caller graph for this function:

Definition at line 10943 of file tc-xtensa.c.

{
  return (stack->ninsn == MAX_ISTACK);
}

Here is the caller graph for this function:

void istack_init ( IStack )

Definition at line 10928 of file tc-xtensa.c.

{
  memset (stack, 0, sizeof (IStack));
  stack->ninsn = 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void istack_pop ( IStack )

Definition at line 10994 of file tc-xtensa.c.

{
  int rec = stack->ninsn - 1;
  assert (!istack_empty (stack));
  stack->ninsn--;
  tinsn_init (&stack->insn[rec]);
}

Here is the call graph for this function:

void istack_push ( IStack ,
TInsn  
)

Definition at line 10965 of file tc-xtensa.c.

{
  int rec = stack->ninsn;
  assert (!istack_full (stack));
  stack->insn[rec] = *insn;
  stack->ninsn++;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 10978 of file tc-xtensa.c.

{
  int rec = stack->ninsn;
  TInsn *insn;
  assert (!istack_full (stack));
  insn = &stack->insn[rec];
  tinsn_init (insn);
  stack->ninsn++;
  return insn;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 10953 of file tc-xtensa.c.

{
  int rec = stack->ninsn - 1;
  assert (!istack_empty (stack));
  return &stack->insn[rec];
}

Here is the call graph for this function:

void tinsn_init ( TInsn )

Definition at line 11006 of file tc-xtensa.c.

{
  memset (dst, 0, sizeof (TInsn));
}

Here is the call graph for this function:

Here is the caller graph for this function: