module volt.lowerer.alloc

Code Map

module volt.lowerer.alloc;


//! Creates a call to the allocDg delegate.
fn buildAllocVoidPtr(loc: const(Location), lp: LanguagePass, type: ir.Type, countArg: ir.Exp) ir.Exp { }
//! Creates a call to the allocDg delegate.
fn buildAllocTypePtr(loc: const(Location), lp: LanguagePass, type: ir.Type, countArg: ir.Exp) ir.Exp { }
fn buildAllocVoidPtr(loc: const(Location), lp: LanguagePass, type: ir.Type, countArg: ir.Exp) ir.Exp

Creates a call to the allocDg delegate.

The type of the returned expression is 'void*'. If countArg is not given, zero is assumed (not a array or class).

Parameters

loc

Location to tag expressions and types with.

lp

LanguagePass

type

Type to be alloced, copied smartly.

countArg

A expression returning a value of size_t, not copied.

fn buildAllocTypePtr(loc: const(Location), lp: LanguagePass, type: ir.Type, countArg: ir.Exp) ir.Exp

Creates a call to the allocDg delegate.

The type of the returned expression is 'type*'. If countArg is not given, zero is assumed (not a array or class).

Parameters

loc

Location to tag expressions and types with.

lp

LanguagePass

type

Type to be alloced, copied smartly.

countArg

A expression returning a value of size_t, not copied.