FoldingParams
API / @publicodes/tools / optims / FoldingParams
type FoldingParams = object;
Defined in: optims/constantFolding.ts:32
Parameters for the constant folding optimization pass.
Type declaration
Name | Type | Defined in |
---|---|---|
isFoldedAttr ? | string | optims/constantFolding.ts:35 |
toAvoid ? | PredicateOnRule | optims/constantFolding.ts:33 |
toKeep ? | PredicateOnRule | optims/constantFolding.ts:34 |
Field
toAvoid A predicate that returns true if the rule should be avoided to be folded, if not present, all rules will be folded.
Field
toKeep A predicate that returns true if the rule should be kept AFTER being folded, if not present, all folded rules will be kept.
Field
isFoldedAttr The attribute name to use to mark a rule as folded, default to ‘optimized’.