Target

Members

Static functions

alignsize
uint alignsize(Type type)

Return memory alignment size of type.

checkVectorType
int checkVectorType(int sz, Type type)

Checks whether the target supports a vector type with total size sz (in bytes) and element type type.

critsecsize
uint critsecsize()

Return size of OS critical section. NOTE: can't use the sizeof() calls directly since cross compiling is supported and would end up using the host sizes rather than the target sizes.

fieldalign
uint fieldalign(Type type)

Return field alignment size of type.

loadModule
void loadModule(Module m)

For the given module, perform any post parsing analysis. Certain compiler backends (ie: GDC) have special placeholder modules whose source are empty, but code gets injected immediately after loading.

paintAsType
Expression paintAsType(Expression e, Type type)

Encode the given expression, which is assumed to be an rvalue literal as another type for use in CTFE. This corresponds roughly to the idiom *(Type *)&e.

prefixName
void prefixName(OutBuffer* buf, LINK linkage)

For the given symbol written to the OutBuffer, apply any target-specific prefixes based on the given linkage.

va_listType
Type va_listType()

Returns a Type for the va_list type of the target. NOTE: For Posix/x86_64 this returns the type which will really be used for passing an argument of type va_list.

Meta