diff options
| author | Yong He <yonghe@outlook.com> | 2020-07-15 12:48:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-15 12:48:56 -0700 |
| commit | 5758d16612eda0f902d7d4c02535afe44dec2ac2 (patch) | |
| tree | 51e0ccbb46a68a0d6686ec2c40588efa9895e0cf /source/slang/slang-emit-cpp.h | |
| parent | e9d5ecbf19147af6e1473020b64ced4286b79079 (diff) | |
IR pass to generate witness table wrappers. (#1443)
* Refactor lower-generics pass into separate subpasses.
* IR pass to generate witness table wrappers.
* Re-generate vs project files.
* Fix x86 build error.
Diffstat (limited to 'source/slang/slang-emit-cpp.h')
| -rw-r--r-- | source/slang/slang-emit-cpp.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source/slang/slang-emit-cpp.h b/source/slang/slang-emit-cpp.h index 29d6e215e..e12493b5a 100644 --- a/source/slang/slang-emit-cpp.h +++ b/source/slang/slang-emit-cpp.h @@ -106,10 +106,6 @@ protected: UnownedStringSlice _getFuncName(const HLSLIntrinsic* specOp); - // Returns a StringSlice representing the mangled name of a witness table - // wrapper function. - UnownedStringSlice _getWitnessTableWrapperFuncName(IRFunc* func); - UnownedStringSlice _getTypeName(IRType* type); SlangResult _calcCPPTextureTypeName(IRTextureTypeBase* texType, StringBuilder& outName); @@ -127,19 +123,12 @@ protected: // of all the witness table objects in `pendingWitnessTableDefinitions`. void _emitWitnessTableDefinitions(); - // Emit wrapper functions that are referenced in witness tables. - // Wrapper functions wraps the actual member function, and takes a `void*` - // as the `this` parameter instead of the actual object type, so that - // their signature is agnostic to the object type. - void _emitWitnessTableWrappers(); - HLSLIntrinsic* _addIntrinsic(HLSLIntrinsic::Op op, IRType* returnType, IRType*const* argTypes, Index argTypeCount); static bool _isVariable(IROp op); Dictionary<IRType*, StringSlicePool::Handle> m_typeNameMap; Dictionary<const HLSLIntrinsic*, StringSlicePool::Handle> m_intrinsicNameMap; - Dictionary<IRFunc*, StringSlicePool::Handle> m_witnessTableWrapperFuncNameMap; IRTypeSet m_typeSet; |
