Report a bug
If you spot a problem with this page, click here to create a Bugzilla 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 using
a local clone.
dmd.e2ir
Compiler implementation of the
D programming language.
Authors:
License:
Source e2ir.d
Documentation https://dlang.org/phobos/dmd_e2ir.html
- elem*
addressElem
(elem*e
, Typet
, boolalwaysCopy
= false); - Take address of an elem.
- elem*
array_toPtr
(Typet
, elem*e
); - Convert array to a pointer to the data.
- elem*
array_toDarray
(Typet
, elem*e
); - Convert array to a dynamic array.
- elem*
sarray_toDarray
(ref const Locloc
, Typetfrom
, Typetto
, elem*e
); - elem*
getTypeInfo
(Locloc
, Typet
, IRState*irs
); - StructDeclaration
needsPostblit
(Typet
); - Determine if
t
is a struct that has postblit. - StructDeclaration
needsDtor
(Typet
); - Determine if
t
is a struct that has destructor. - void
clearStringTab
(); - Reset stringTab[] between object files being emitted, because the symbols are local.
- elem*
toElemDtor
(Expressione
, IRState*irs
); - Convert Expression to elem, then append destructors for any temporaries created in elem.Parameters:
Expression e
Expression to convert IRState* irs
context Returns:generated elem tree - Symbol*
toStringSymbol
(const(char)*str
, size_tlen
, size_tsz
); - Write read-only string to object file, create a local symbol for it. Makes a copy of
str
's contents, does not keep a reference to it.Parameters:const(char)* str
string size_t len
number of code units in string size_t sz
number of bytes per code unit Returns:Symbol - Symbol*
toStringSymbol
(StringExpse
); - Turn StringExp into Symbol.
- elem*
buildArrayBoundsError
(IRState*irs
, ref const Locloc
); - Construct elem to run when an array bounds check fails.Parameters:
IRState* irs
to get function from Loc loc
to get file/line from Returns:elem generated - void
toTraceGC
(IRState*irs
, elem*e
, ref const Locloc
); - Replace call to GC allocator with call to tracing GC allocator.Parameters:
IRState* irs
to get function from elem* e
elem to modify in place Loc loc
to get file/line from - elem*
callCAssert
(IRState*irs
, ref const Locloc
, Expressionexp
, Expressionemsg
, const(char)*str
); - Generate call to C's assert failure function. One of
exp
,emsg
, orstr
must not benull
.Parameters:IRState* irs
context Loc loc
location to use for assert message Expression exp
if not null
expression to test (not evaluated, but converted to a string)Expression emsg
if not null
then informative message to be computed at run timeconst(char)* str
if not null
then informative message stringReturns:generated call
Copyright © 1999-2018 by the D Language Foundation | Page generated by
Ddoc on Tue Mar 13 17:31:16 2018