## PowerPC

PowerPC — code generation for PowerPC

## Synopsis

    const char *        powerpc_get_regname                 (int i);
    int                 powerpc_regnum                      (int i);
    void                powerpc_add_fixup                   (OrcCompiler *compiler,
                                                             int type,
                                                             unsigned char *ptr,
                                                             int label);
    void                powerpc_do_fixups                   (OrcCompiler *compiler);
    void                powerpc_emit                        (OrcCompiler *compiler,
                                                             unsigned int insn);
    void                powerpc_emit_655510                 (OrcCompiler *compiler,
                                                             int major,
                                                             int d,
                                                             int a,
                                                             int b,
                                                             int minor);
    void                powerpc_emit_VA                     (OrcCompiler *compiler,
                                                             int major,
                                                             int d,
                                                             int a,
                                                             int b,
                                                             int c,
                                                             int minor);
    void                powerpc_emit_VX                     (OrcCompiler *compiler,
                                                             unsigned int insn,
                                                             int d,
                                                             int a,
                                                             int b);
    void                powerpc_emit_VX_2                   (OrcCompiler *p,
                                                             const char *name,
                                                             unsigned int insn,
                                                             int d,
                                                             int a,
                                                             int b);
    void                powerpc_emit_X                      (OrcCompiler *compiler,
                                                             unsigned int insn,
                                                             int d,
                                                             int a,
                                                             int b);
    void                powerpc_emit_addi                   (OrcCompiler *compiler,
                                                             int regd,
                                                             int rega,
                                                             int imm);
    void                powerpc_emit_b                      (OrcCompiler *compiler,
                                                             int label);
    void                powerpc_emit_beq                    (OrcCompiler *compiler,
                                                             int label);
    void                powerpc_emit_bne                    (OrcCompiler *compiler,
                                                             int label);
    void                powerpc_emit_label                  (OrcCompiler *compiler,
                                                             int label);
    void                powerpc_emit_lwz                    (OrcCompiler *compiler,
                                                             int regd,
                                                             int rega,
                                                             int imm);
    void                powerpc_emit_ret                    (OrcCompiler *compiler);
    void                powerpc_emit_srawi                  (OrcCompiler *compiler,
                                                             int regd,
                                                             int rega,
                                                             int shift,
                                                             int record);
    void                powerpc_emit_stwu                   (OrcCompiler *compiler,
                                                             int regs,
                                                             int rega,
                                                             int offset);
    void                powerpc_flush                       (OrcCompiler *compiler);
    int                 powerpc_get_constant                (OrcCompiler *p,
                                                             int type,
                                                             int value);

## Description

## Details

### powerpc_get_regname ()

    const char *        powerpc_get_regname                 (int i);

`i` : |
Returns : |

### powerpc_regnum ()

    int                 powerpc_regnum                      (int i);

`i` : |
Returns : |

### powerpc_add_fixup ()

    void                powerpc_add_fixup                   (OrcCompiler *compiler,
                                                             int type,
                                                             unsigned char *ptr,
                                                             int label);

`compiler` : |
`type` : |
`ptr` : |
`label` : |

### powerpc_do_fixups ()

    void                powerpc_do_fixups                   (OrcCompiler *compiler);

`compiler` : |

### powerpc_emit ()

    void                powerpc_emit                        (OrcCompiler *compiler,
                                                             unsigned int insn);

`compiler` : |
`insn` : |

### powerpc_emit_655510 ()

    void                powerpc_emit_655510                 (OrcCompiler *compiler,
                                                             int major,
                                                             int d,
                                                             int a,
                                                             int b,
                                                             int minor);

`compiler` : |
`major` : |
`d` : |
`a` : |
`b` : |
`minor` : |

### powerpc_emit_VA ()

    void                powerpc_emit_VA                     (OrcCompiler *compiler,
                                                             int major,
                                                             int d,
                                                             int a,
                                                             int b,
                                                             int c,
                                                             int minor);

`compiler` : |
`major` : |
`d` : |
`a` : |
`b` : |
`c` : |
`minor` : |

### powerpc_emit_VX ()

    void                powerpc_emit_VX                     (OrcCompiler *compiler,
                                                             unsigned int insn,
                                                             int d,
                                                             int a,
                                                             int b);

`compiler` : |
`insn` : |
`d` : |
`a` : |
`b` : |

### powerpc_emit_VX_2 ()

    void                powerpc_emit_VX_2                   (OrcCompiler *p,
                                                             const char *name,
                                                             unsigned int insn,
                                                             int d,
                                                             int a,
                                                             int b);

`p` : |
`name` : |
`insn` : |
`d` : |
`a` : |
`b` : |

### powerpc_emit_X ()

    void                powerpc_emit_X                      (OrcCompiler *compiler,
                                                             unsigned int insn,
                                                             int d,
                                                             int a,
                                                             int b);

`compiler` : |
`insn` : |
`d` : |
`a` : |
`b` : |

### powerpc_emit_addi ()

    void                powerpc_emit_addi                   (OrcCompiler *compiler,
                                                             int regd,
                                                             int rega,
                                                             int imm);

`compiler` : |
`regd` : |
`rega` : |
`imm` : |

### powerpc_emit_b ()

    void                powerpc_emit_b                      (OrcCompiler *compiler,
                                                             int label);

`compiler` : |
`label` : |

### powerpc_emit_beq ()

    void                powerpc_emit_beq                    (OrcCompiler *compiler,
                                                             int label);

`compiler` : |
`label` : |

### powerpc_emit_bne ()

    void                powerpc_emit_bne                    (OrcCompiler *compiler,
                                                             int label);

`compiler` : |
`label` : |

### powerpc_emit_label ()

    void                powerpc_emit_label                  (OrcCompiler *compiler,
                                                             int label);

`compiler` : |
`label` : |

### powerpc_emit_lwz ()

    void                powerpc_emit_lwz                    (OrcCompiler *compiler,
                                                             int regd,
                                                             int rega,
                                                             int imm);

`compiler` : |
`regd` : |
`rega` : |
`imm` : |

### powerpc_emit_ret ()

    void                powerpc_emit_ret                    (OrcCompiler *compiler);

`compiler` : |

### powerpc_emit_srawi ()

    void                powerpc_emit_srawi                  (OrcCompiler *compiler,
                                                             int regd,
                                                             int rega,
                                                             int shift,
                                                             int record);

`compiler` : |
`regd` : |
`rega` : |
`shift` : |
`record` : |

### powerpc_emit_stwu ()

    void                powerpc_emit_stwu                   (OrcCompiler *compiler,
                                                             int regs,
                                                             int rega,
                                                             int offset);

`compiler` : |
`regs` : |
`rega` : |
`offset` : |

### powerpc_flush ()

    void                powerpc_flush                       (OrcCompiler *compiler);

`compiler` : |

### powerpc_get_constant ()

    int                 powerpc_get_constant                (OrcCompiler *p,
                                                             int type,
                                                             int value);

`p` : |
`type` : |
`value` : |
Returns : |