GNU Compiler Collection (GCC) Internals: GIMPLE API |
---|
Next: The Language, Up: Match and Simplify [Contents][Index]
The main GIMPLE API entry to the expression simplifications mimicing that of the GENERIC fold_{unary,binary,ternary} functions.
thus providing n-ary overloads for operation or function. The
additional arguments are a gimple_seq where built statements are
inserted on (if NULL
then simplifications requiring new statements
are not performed) and a valueization hook that can be used to
tie simplifications to a SSA lattice.
In addition to those APIs fold_stmt
is overloaded with
a valueization hook:
Ontop of these a fold_buildN
-like API for GIMPLE is introduced:
which is supposed to replace force_gimple_operand (fold_buildN (...), ...)
and calls to fold_convert
. Overloads without the location_t
argument exist. Built statements are inserted on the provided sequence
and simplification is performed using the optional valueization hook.
Next: The Language, Up: Match and Simplify [Contents][Index]