# dmd.backend.code

Define registers, register masks, and the CPU instruction linked list

#### Discussion

Compiler implementation of the D programming language.

#### Authors

Walter Bright

#### License

Boost License 1.0

Source: backend/code.d

- `_Declaration`

  #### Declaration

  `struct `_Declaration`;`

  Code data type

- `code_calloc`
  `code_free`
  `code_term`
  `code_chunk_alloc`
  `code_list`

  #### Declaration

  `public import dmd.backend.dcode : `code_calloc`, `code_free`, `code_term`, `code_chunk_alloc`, `code_list`;`

  PUBLIC FUNCTIONS

- `REGSAVE`

  #### Declaration

  `struct `REGSAVE`;`

  Register save state.

- `LocalSection`

  #### Declaration

  `struct `LocalSection`;`

  Local sections on the stack

- `CGstate`

  #### Declaration

  `struct `CGstate`;`

  Code Generator State

- `FuncParamRegs`

  #### Declaration

  `struct `FuncParamRegs`;`

- `iasm_regs`

  #### Declaration

  `nothrow @system regm_t `iasm_regs`(block* `bp`);`

  Get registers used by a given block

  #### Parameters

  `block* `bp`` | asm block

  #### Return Value

  mask of registers used by block `bp`.

- `regimmed_set`

  #### Declaration

  `nothrow @trusted void `regimmed_set`(int `reg`, targ_size_t `e`);`

  Set value in regimmed for `reg`.

  NOTE: For 16 bit generator, this is always a (targ_short) sign-extended value.