View source code
Display the source code in dmd/backend/cgcod.d from which this page was generated on github.
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 local clone.

Function dmd.backend.cgcod.codelem

Generate code sequence for an elem.

void codelem (
  ref dmd.backend.codebuilder.CodeBuilder cdb,
  elem* e,
  uint* pretregs,
  uint constflag
) nothrow @trusted;

Parameters

NameDescription
cdb Code builder to write generated code to
e Element to generate code for
pretregs mask of possible registers to return result in will be updated with mask of registers result is returned in

Note

longs are in AX,BX or CX,DX or SI,DI doubles are AX,BX,CX,DX only constflag = 1 for user of result will not modify the registers returned in *pretregs. 2 for freenode() not called.

Authors

Walter Bright

License

Boost License 1.0