* @param reason indicates which kind of information should be dumped
* @return 0 on success or != 0 on failure
*/
-static int dump_node_ppc32(ir_node *n, FILE *F, dump_reason_t reason) {
+static int ppc32_dump_node(ir_node *n, FILE *F, dump_reason_t reason) {
ir_mode *mode = NULL;
int bad = 0;
int i;
/**
* Sets an entity (also updating the content_type)
*/
-void set_ppc32_frame_entity(const ir_node *node, entity *ent) {
+void set_ppc32_frame_entity(const ir_node *node, ir_entity *ent) {
ppc32_attr_t *attr = get_ppc32_attr(node);
attr->content_type = ppc32_ac_FrameEntity;
attr->data.frame_entity = ent;
/**
* Returns an entity
*/
-entity *get_ppc32_frame_entity(const ir_node *node) {
+ir_entity *get_ppc32_frame_entity(const ir_node *node) {
ppc32_attr_t *attr = get_ppc32_attr(node);
return attr->data.frame_entity;
}
* Initializes ppc specific node attributes
*/
void init_ppc32_attributes(ir_node *node, int flags,
- const ppc32_register_req_t **in_reqs, const ppc32_register_req_t **out_reqs, int n_res) {
+ const ppc32_register_req_t **in_reqs, const ppc32_register_req_t **out_reqs,
+ const be_execution_unit_t ***execution_units,
+ int n_res, unsigned latency) {
ppc32_attr_t *attr = get_ppc32_attr(node);
attr->flags = flags;
attr->in_req = in_reqs;
attr->out_req = out_reqs;
attr->n_res = n_res;
- attr->slots = NULL;
-
- if (n_res) {
- attr->slots = xcalloc(n_res, sizeof(attr->slots[0]));
- }
attr->content_type = ppc32_ac_None;
attr->offset_mode = ppc32_ao_Illegal;
attr->data.empty = NULL;
-}
-/**
- * Hook to create additional opcodes.
- */
-void ppc32_register_additional_opcodes(int opcode_num){
+ memset((void *)attr->slots, 0, n_res * sizeof(attr->slots[0]));
}
-
-
-
-
-
-
-
-
/***************************************************************************************
* _ _ _
* | | | | | |