diff options
Diffstat (limited to 'source/slang/slang-ir-autodiff.cpp')
| -rw-r--r-- | source/slang/slang-ir-autodiff.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/slang/slang-ir-autodiff.cpp b/source/slang/slang-ir-autodiff.cpp index 011d1fec9..c1b724b9d 100644 --- a/source/slang/slang-ir-autodiff.cpp +++ b/source/slang/slang-ir-autodiff.cpp @@ -1721,17 +1721,17 @@ IRType* DifferentiableTypeConformanceContext::differentiateType( SLANG_UNIMPLEMENTED_X("Impl"); } - case kIROp_OutType: + case kIROp_OutParamType: if (auto diffValueType = - differentiateType(builder, as<IROutType>(primalType)->getValueType())) - return builder->getOutType(diffValueType); + differentiateType(builder, as<IROutParamType>(primalType)->getValueType())) + return builder->getOutParamType(diffValueType); else return nullptr; - case kIROp_InOutType: + case kIROp_BorrowInOutParamType: if (auto diffValueType = - differentiateType(builder, as<IRInOutType>(primalType)->getValueType())) - return builder->getInOutType(diffValueType); + differentiateType(builder, as<IRBorrowInOutParamType>(primalType)->getValueType())) + return builder->getBorrowInOutParamType(diffValueType); else return nullptr; @@ -3301,8 +3301,8 @@ struct AutoDiffPass : public InstPassBase { case kIROp_ArrayType: case kIROp_UnsizedArrayType: - case kIROp_InOutType: - case kIROp_OutType: + case kIROp_BorrowInOutParamType: + case kIROp_OutParamType: case kIROp_PtrType: case kIROp_DifferentialPairType: case kIROp_DifferentialPairUserCodeType: |
