From 2e1c15f36b42374455228e37885bdb221f302050 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 2 Nov 2022 12:12:18 -0700 Subject: Rework differential conformance dictionary checking. (#2483) * Rework differential conformance dictionary checking. * Revert space changes. Co-authored-by: Yong He --- source/slang/slang-ir-link.cpp | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'source/slang/slang-ir-link.cpp') diff --git a/source/slang/slang-ir-link.cpp b/source/slang/slang-ir-link.cpp index eb899b69c..ad4f691f1 100644 --- a/source/slang/slang-ir-link.cpp +++ b/source/slang/slang-ir-link.cpp @@ -238,7 +238,6 @@ IRInst* IRSpecContext::maybeCloneValue(IRInst* originalValue) case kIROp_WitnessTable: case kIROp_InterfaceType: case kIROp_TaggedUnionType: - case kIROp_DifferentiableTypeDictionary: return cloneGlobalValue(this, originalValue); case kIROp_BoolLit: @@ -593,24 +592,6 @@ IRWitnessTable* cloneWitnessTableImpl( return clonedTable; } -IRInst* cloneDifferentiableTypeDictionary( - IRSpecContextBase* context, - IRBuilder* builder, - IRInst* originalDict, - IROriginalValuesForClone const& originalValues, - IRInst* dstDict = nullptr, - bool registerValue = true) -{ - IRInst* clonedDict = dstDict; - if (!clonedDict) - { - clonedDict = builder->emitDifferentiableTypeDictionary(); - } - cloneSimpleGlobalValueImpl(context, originalDict, originalValues, clonedDict, registerValue); - return clonedDict; -} - - IRWitnessTable* cloneWitnessTableWithoutRegistering( IRSpecContextBase* context, IRBuilder* builder, @@ -1138,9 +1119,6 @@ IRInst* cloneInst( case kIROp_GlobalGenericParam: return cloneGlobalGenericParamImpl(context, builder, cast(originalInst), originalValues); - case kIROp_DifferentiableTypeDictionary: - return cloneDifferentiableTypeDictionary(context, builder, originalInst, originalValues); - default: break; } @@ -1164,9 +1142,8 @@ IRInst* cloneInst( } builder->addInst(clonedInst); context->builder = oldBuilder; - cloneDecorations(context, clonedInst, originalInst); + cloneDecorationsAndChildren(context, clonedInst, originalInst); cloneExtraDecorations(context, clonedInst, originalValues); - return clonedInst; } @@ -1530,10 +1507,6 @@ LinkedIR linkIR( { cloneValue(context, bindInst); } - else if (inst->getOp() == kIROp_DifferentiableTypeDictionary) - { - cloneValue(context, inst); - } } } -- cgit v1.2.3