summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-11-29 14:16:05 -0800
committerGitHub <noreply@github.com>2022-11-29 14:16:05 -0800
commitaf7f40063dfed1c651d33b93956c7623a7d2c050 (patch)
treefd2225cffda6a9a887051bd00c5ccaba9ec6b5ea /source/slang/slang-ir.cpp
parentd85c7b809d02e6dc0844aab07e66a6bac2462017 (diff)
Complete removal of DifferentialBottom type. (#2537)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir.cpp')
-rw-r--r--source/slang/slang-ir.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp
index c12872320..ecfcab7f5 100644
--- a/source/slang/slang-ir.cpp
+++ b/source/slang/slang-ir.cpp
@@ -2214,17 +2214,6 @@ namespace Slang
return _findOrEmitConstant(keyInst);
}
- IRInst* IRBuilder::getDifferentialBottom()
- {
- IRType* type = getDifferentialBottomType();
- IRConstant keyInst;
- memset(&keyInst, 0, sizeof(keyInst));
- keyInst.m_op = kIROp_DifferentialBottomValue;
- keyInst.typeUse.usedValue = type;
- keyInst.value.intVal = 0;
- return (IRInst*)_findOrEmitConstant(keyInst);
- }
-
IRStringLit* IRBuilder::getStringValue(const UnownedStringSlice& inSlice)
{
IRConstant keyInst;
@@ -2607,12 +2596,6 @@ namespace Slang
IRDynamicType* IRBuilder::getDynamicType() { return (IRDynamicType*)getType(kIROp_DynamicType); }
- IRDifferentialBottomType* IRBuilder::getDifferentialBottomType()
- {
- return (IRDifferentialBottomType*)getType(kIROp_DifferentialBottomType);
- }
-
-
IRAssociatedType* IRBuilder::getAssociatedType(ArrayView<IRInterfaceType*> constraintTypes)
{
return (IRAssociatedType*)getType(kIROp_AssociatedType,