View source code
Display the source code in dmd/backend/type.d from which thispage was generated on github.
Report a bug
If you spot a problem with this page, click here to create aGitHub issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinglocal clone.
Module dmd.backend.type
Types for the back end
Compiler implementation of the D programming language.
Functions
| Name | Description |
|---|---|
param_free(pparamlst)
|
Free parameter list. |
param_t_length(p)
|
Compute number of parameters |
param_t_print(p)
|
Pretty-print a param_t |
type_alignsize(t)
|
Return the size of a type for alignment purposes. |
type_alloc(ty)
|
Create a type & initialize it. |
type_allocn(ty, tn)
|
Allocate a type of ty with a Tnext of tn. |
type_assoc_array(tkey, tvalue)
|
Allocate an associative array type, which are key=value pairs |
type_copy(tf)
|
Type type information. |
type_delegate(tnext)
|
Allocate a delegate type. |
type_dyn_array(tnext)
|
Allocate a dynamic array type. |
type_embed(t, u)
|
Recursively check if type u is embedded in type t. |
type_enum(name, tbase)
|
Create an enum type. |
type_fake(ty)
|
Fake a type & initialize it. |
type_free(t)
|
Free up data type. |
type_function(tyf, ptypes, variadic, tret)
|
Allocate a function type. |
type_parameterSize(t, tyf)
|
Compute the size of a single parameter. |
type_paramsize(t)
|
Compute the total size of parameters for function call. Used for stdcall name mangling. Note that hidden parameters do not contribute to size. |
type_pointer(tnext)
|
Allocate a pointer type. |
type_print(t)
|
Pretty-print a type. |
type_setcv(pt, cv)
|
Set/clear const and volatile bits in* pt according to the settings in cv. |
type_setmangle(pt, mangle)
|
Modify the Tmangle field of a type. |
type_setty(pt, newty)
|
Modify the tym_t field of a type. |
type_size(t)
|
Compute size of type in bytes. |
type_static_array(dim, tnext)
|
Allocate a static array type. |
type_struct_class(name, alignsize, structsize, arg1type, arg2type, isUnion, isClass, isPOD, is0size)
|
Create a struct/union/class type. |
type_zeroSize(t, tyf)
|
Compute special zero sized struct. |
typematch(t1, t2, relax)
|
A cheap version of exp2.typematch() and exp2.paramlstmatch(), so that we can get cpp_mangle() to work for MARS. It's less complex because it doesn't do templates and can rely on strict typechecking. |
Enums
| Name | Description |
|---|---|
TF
|
Values for Tflags: |
Authors
License
Copyright © 1999-2026 by the D Language Foundation | Page generated by ddox.