diff options
| author | Yong He <yonghe@outlook.com> | 2022-12-19 11:47:19 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-19 11:47:19 -0800 |
| commit | 216dfba0af66210a46ef0df18beb73d975fdf727 (patch) | |
| tree | f397ea5bf8d47d7a5d90dc95edfb472f2e49d762 /source/slang/slang-lower-to-ir.cpp | |
| parent | 36220da1e29c891972fef32c8575c15f868b9959 (diff) | |
Separate primal computations from unzipped function into an explicit function. (#2569)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-lower-to-ir.cpp')
| -rw-r--r-- | source/slang/slang-lower-to-ir.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
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<DeclLoweringVisitor, LoweredValInfo> return as<IRStringLit>(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<IRSpecialize>(type)) |
