X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fvectorise%2FVectType.hs;h=ae39cac961470ad608a4013684b81af460e528ce;hb=60881299e5fbceff0eec48fa58bc0eff24640ba3;hp=9952121eae07f5cd92806ed88507e0895dcb8392;hpb=7299e42cc5214458ba16034dbfbf58de55f7121b;p=ghc-hetmet.git diff --git a/compiler/vectorise/VectType.hs b/compiler/vectorise/VectType.hs index 9952121..ae39cac 100644 --- a/compiler/vectorise/VectType.hs +++ b/compiler/vectorise/VectType.hs @@ -943,6 +943,13 @@ buildPADict repr vect_tc prepr_tc arr_tc _ var <- newLocalVar name (exprType body) return (var, mkInlineMe body) +-- The InlineMe note has gone away. Instead, you need to use +-- CoreUnfold.mkInlineRule to make an InlineRule for the thing, and +-- attach *that* as the unfolding for the dictionary binder +mkInlineMe :: CoreExpr -> CoreExpr +mkInlineMe expr = pprTrace "VectType: Roman, you need to use the new InlineRule story" + (ppr expr) expr + paMethods :: [(FastString, Repr -> TyCon -> TyCon -> TyCon -> VM CoreExpr)] paMethods = [(fsLit "toPRepr", buildToPRepr), (fsLit "fromPRepr", buildFromPRepr),