X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Finternal%2Fcodegen%2Foptimization%2FOptimizationMap.java;h=187ae3a4498113040780d6507bdc9915469876cf;hb=fad36d463b75c3a9944d875fc627c3533f6da74d;hp=0867b4b3f24d5a1207e578006f5c5dc7e7c29dbc;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/optimization/OptimizationMap.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/optimization/OptimizationMap.java index 0867b4b3f..187ae3a44 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/optimization/OptimizationMap.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/optimization/OptimizationMap.java @@ -1,15 +1,16 @@ -package org.simantics.scl.compiler.internal.codegen.optimization; - -import gnu.trove.map.hash.THashMap; - -import org.simantics.scl.compiler.common.names.Name; - -public class OptimizationMap { - - public static final THashMap OPTIMIZATIONS = new THashMap(); - - static { - OPTIMIZATIONS.put(Name.create("Prelude", "foldl"), FoldlBuildFusion.INSTANCE); - } - -} +package org.simantics.scl.compiler.internal.codegen.optimization; + +import org.simantics.scl.compiler.common.names.Name; +import org.simantics.scl.compiler.common.names.Names; + +import gnu.trove.map.hash.THashMap; + +public class OptimizationMap { + + public static final THashMap OPTIMIZATIONS = new THashMap(); + + static { + OPTIMIZATIONS.put(Names.Prelude_foldl, FoldlBuildFusion.INSTANCE); + } + +}