diff options
| author | Yong He <yonghe@outlook.com> | 2022-11-02 12:12:18 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-02 12:12:18 -0700 |
| commit | 2e1c15f36b42374455228e37885bdb221f302050 (patch) | |
| tree | 57ab722b87e1ef327860e4293bad9edc53bba965 /source/slang/slang-ir-link.cpp | |
| parent | fb29bd32cc3404455ff92916a91c517823f486dd (diff) | |
Rework differential conformance dictionary checking. (#2483)
* Rework differential conformance dictionary checking.
* Revert space changes.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-link.cpp')
| -rw-r--r-- | source/slang/slang-ir-link.cpp | 29 |
1 files changed, 1 insertions, 28 deletions
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<IRGlobalGenericParam>(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); - } } } |
