View source code
Display the source code in dmd/backend/cgen.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.

Module dmd.backend.cgen

Generate code instructions

Documentation

https://dlang.org/phobos/dmd_backend_cgen.html

Coverage

https://codecov.io/gh/dlang/dmd/src/master/src/dmd/backend/cgen.d

Functions

NameDescription
addtofixlist(s, offset, seg, val, flags) Add to the fix list.
cat(c1, c2) Concatenate two code lists together. Return pointer to result.
code_last(c) Find last code in list.
code_orflag(c, flag) Set flag bits on last code in list.
code_orrex(c, rex) Set rex bits on last code in list.
gencodelem(cdb, e, pretregs, constflag) Clean stack after call to codelem().
gennop(c) Generate 'nop'
outfixlist() End of module. Output fixups as references to external Symbols.
reghasvalue(regm, value, preg) Determine if one of the registers in regm has value in it.
regwithvalue(cdb, regm, value, preg, flags) Load a register from the mask regm with value.

Structs

NameDescription
Fixup When we don't know whether a function symbol is defined or not within this module, we stuff it in an array of references to be fixed up later.

Authors

Walter Bright

License

Boost License 1.0