1 1 26 Match and Simplify 1 ********************* 1 1 The GIMPLE and GENERIC pattern matching project match-and-simplify tries 1 to address several issues. 1 1 1. unify expression simplifications currently spread and duplicated 1 over separate files like fold-const.c, gimple-fold.c and builtins.c 1 2. allow for a cheap way to implement building and simplifying 1 non-trivial GIMPLE expressions, avoiding the need to go through 1 building and simplifying GENERIC via fold_buildN and then 1 gimplifying via force_gimple_operand 1 1 To address these the project introduces a simple domain specific 1 language to write expression simplifications from which code targeting 1 GIMPLE and GENERIC is auto-generated. The GENERIC variant follows the 1 fold_buildN API while for the GIMPLE variant and to address 2) new APIs 1 are introduced. 1
1 · GIMPLE API · The Language 1