.. highlight:: c .. _pragma_function_replicate: Replicate Function ------------------------------- **Syntax** ``#pragma LEGUP function replicate`` **Description** This pragma specifies a function to be replicated every time it is called. By default, when the circuit is not pipelined, LegUp creates a single instance for each function which is shared across multiple calls to the function. When using this pragma on the function, LegUp will create a new instance of the function for every function call. **Position** At the beginning of the function definition block. **Examples** .. code-block:: c int sum(int *a) { #pragma LEGUP function replicate ... } --------------------------------------------------------------------------------