dmd.backend.gdag

Compiler implementation of the D programming language.

Members

Enums

Aetype
enum Aetype
Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.

Functions

Eunambig
bool Eunambig(elem* e)
Undocumented in source. Be warned that the author may not have intended to support it.
boolopt
void boolopt()

Do optimizations based on if we know an expression is 0 or !=0, even though we don't know anything else.

builddags
void builddags()

Build DAGs (basically find all the common subexpressions). Must be done after all other optimizations, because most of them depend on the trees being trees, not DAGs. The general strategy is: Compute available expressions (AEs) For each block stick together nodes that match, keeping AEs up to date For each block unstick unprofitable common subexpressions (this is generally target-dependent)

Meta