X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=CoreTools.hs;h=0c0e1fa7f60d88cd3914b9fcf1c3b20073c3a8ff;hb=b8c1e8554ba8aee73bc9d9a54bb3cb32f7930957;hp=4677af498b56680a0c2bf2362a0eda35cf528893;hpb=149fc422a264f8cbb90af36e3f4926977bdcf35b;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/CoreTools.hs b/CoreTools.hs index 4677af4..0c0e1fa 100644 --- a/CoreTools.hs +++ b/CoreTools.hs @@ -133,14 +133,6 @@ tfvec_elem ty = el_ty Nothing -> error $ "\nCoreTools.tfvec_len: Not a vector type: " ++ (pprString ty) [len, el_ty] = args --- Is this a wild binder? -is_wild :: CoreSyn.CoreBndr -> Bool --- wild binders have a particular unique, that we copied from MkCore.lhs to --- here. However, this comparison didn't work, so we'll just check the --- occstring for now... TODO ---(Var.varUnique bndr) == (Unique.mkBuiltinUnique 1) -is_wild bndr = "wild" == (OccName.occNameString . Name.nameOccName . Var.varName) bndr - -- Is the given core expression a lambda abstraction? is_lam :: CoreSyn.CoreExpr -> Bool is_lam (CoreSyn.Lam _ _) = True