Compiler implementation of the D programming language.
Describes a back-end target. At present it is incomplete, but in the future it should grow to contain most or all target machine and target O/S specific information.
In many cases, calls to sizeof() can't be used directly for getting data type sizes since cross compiling is supported and would end up using the host sizes rather than the target sizes.
size of a pointer in bytes
size a real consumes in memory
padding added to the CPU real size to bring it up to realsize
alignment for reals
size of ClassInfo
maximum size of static data
Values representing all properties for floating point types
largest representable value that's not infinity
smallest representable normalized value that's not 0
NaN value
infinity value
smallest increment to the value 1
number of decimal digits of precision
number of bits in mantissa
maximum int value such that 2max_exp-1
is representable
minimum int value such that 2min_exp-1
is representable as a normalized value
maximum int value such that 10max_10_exp
is representable
minimum int value such that 10min_10_exp
is representable as a normalized value
Initialize the Target
Deinitializes the global state of the compiler.
This can be used to restore the state set by _init
to its original state.
Requested target memory alignment size of the given type.
Type type
| type to inspect |
Requested target field alignment size of the given type.
Type type
| type to inspect |
Size of the target OS critical section.
Type for the va_list
type for the target.
Type
that represents va_list
.Checks whether the target supports a vector type.
int sz
| vector type size in bytes |
Type type
| vector element type |
Checks whether the target supports the given operation for vectors.
Type type
| target type of operation |
ubyte op
| the unary or binary op being done on the type
|
Type t2
| type of second operand if op is a binary operation |
Default system linkage for the target.
LINK
to use for extern(System)
Describes how an argument type is passed to a function on target.
Type t
| type to break down |
void
or argtypes aren't supported by the targetDetermine return style of function - whether in registers or through a hidden pointer to the caller's stack.
TypeFunction tf
| function type to check |
bool needsThis
| true if the function type is for a non-static member function |
Determine the size a value of type t
will be when it is passed on the function parameter stack.
Loc loc
| location to use for error messages |
Type t
| type of parameter |
Get targetInfo by key
const(char)* name
| name of targetInfo to get |
Loc loc
| location to use for error messages |
Functions and variables specific to interfacing with extern(C) ABI.
size of a C long
or unsigned long
type
size of a C long double
size of os critical section
Functions and variables specific to interface with extern(C++) ABI.
set if overloaded functions are grouped and in reverse order (such as in dmc and cl)
set if catching C++ exceptions is supported
target C++ ABI puts deleting and non-deleting destructor into vtable
Mangle the given symbol for C++ ABI.
Dsymbol s
| declaration with C++ linkage |
Get RTTI mangling of the given class declaration for C++ ABI.
ClassDeclaration cd
| class with C++ linkage |
Gets vendor-specific type mangling for C++ ABI.
Type t
| type to inspect |
Get the type that will really be used for passing the given argument to an extern(C++)
function.
Parameter p
| parameter to be passed. |
Type
to use for parameter p
.Checks whether type is a vendor-specific fundamental type.
Type t
| type to inspect |
bool isFundamental
| where to store result |
© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_target.html