diff options
| author | Yong He <yonghe@outlook.com> | 2020-06-15 09:05:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-15 09:05:49 -0700 |
| commit | 7e7425de730d7b3f4590c71111e22e5103b53200 (patch) | |
| tree | 9cdaee6b9deb0a94e40526b698ae13a1dc88da36 /source/slang/slang-emit-c-like.cpp | |
| parent | 04a81ab634ce058168f7e1554274bbeb34f3a3c5 (diff) | |
| parent | 90444f8366255f274993ce4699738d9ab7cf4ee1 (diff) | |
Merge branch 'master' into glsl-loop
Diffstat (limited to 'source/slang/slang-emit-c-like.cpp')
| -rw-r--r-- | source/slang/slang-emit-c-like.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp index 9d23cec43..911928e2a 100644 --- a/source/slang/slang-emit-c-like.cpp +++ b/source/slang/slang-emit-c-like.cpp @@ -217,8 +217,8 @@ void CLikeSourceEmitter::emitSimpleType(IRType* type) outNumThreads[i] = decor ? Int(getIntVal(decor->getOperand(i))) : 1; } return decor; -} - +}
+
void CLikeSourceEmitter::_emitArrayType(IRArrayType* arrayType, EDeclarator* declarator) { EDeclarator arrayDeclarator; @@ -265,6 +265,12 @@ void CLikeSourceEmitter::_emitType(IRType* type, EDeclarator* declarator) } +void CLikeSourceEmitter::emitWitnessTable(IRWitnessTable* witnessTable) +{ + SLANG_UNUSED(witnessTable); + SLANG_DIAGNOSE_UNEXPECTED(getSink(), SourceLoc(), "Unimplemented emit: IROpWitnessTable."); +} + void CLikeSourceEmitter::emitTypeImpl(IRType* type, const StringSliceLoc* nameAndLoc) { if (nameAndLoc) @@ -3516,6 +3522,10 @@ void CLikeSourceEmitter::emitGlobalInst(IRInst* inst) emitStruct(cast<IRStructType>(inst)); break; + case kIROp_WitnessTable: + emitWitnessTable(cast<IRWitnessTable>(inst)); + break; + default: // We have an "ordinary" instruction at the global // scope, and we should therefore emit it using the |
