From 216dfba0af66210a46ef0df18beb73d975fdf727 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 19 Dec 2022 11:47:19 -0800 Subject: Separate primal computations from unzipped function into an explicit function. (#2569) Co-authored-by: Yong He --- source/slang/slang-lower-to-ir.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'source/slang/slang-lower-to-ir.cpp') diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp index 7fd0bbee7..a84cf9b8d 100644 --- a/source/slang/slang-lower-to-ir.cpp +++ b/source/slang/slang-lower-to-ir.cpp @@ -7861,25 +7861,6 @@ struct DeclLoweringVisitor : DeclVisitor return as(builder->getStringValue(stringLitExpr->value.getUnownedSlice())); } - IRInst* lowerFuncType(FunctionDeclBase* decl) - { - NestedContext nestedContextFuncType(this); - auto funcTypeBuilder = nestedContextFuncType.getBuilder(); - auto funcTypeContext = nestedContextFuncType.getContext(); - - auto outerGenerics = emitOuterGenerics(funcTypeContext, decl, decl); - - FuncDeclBaseTypeInfo info; - _lowerFuncDeclBaseTypeInfo( - funcTypeContext, - createDefaultSpecializedDeclRef(funcTypeContext, nullptr, decl), - info); - - auto irFuncType = info.type; - - return finishOuterGenerics(funcTypeBuilder, irFuncType, outerGenerics); - } - bool isClassType(IRType* type) { if (auto specialize = as(type)) -- cgit v1.2.3