From 92ae4949fe1af28ef31331fd4116c8111c057420 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 2 Dec 2022 09:29:38 -0500 Subject: Inline functions with string param/return for GPU targets (#2544) * #include an absolute path didn't work - because paths were taken to always be relative. * WIP inlining of functions that take or return string related types on GPU targets. * Small fixes. * Added a test. * Add checking for any getStringHash insts are valid. * Support getStringHash on CUDA. * Tweak diagnostic. --- source/slang/slang-emit-hlsl.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source/slang/slang-emit-hlsl.cpp') diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp index 8891f06a6..b4db75616 100644 --- a/source/slang/slang-emit-hlsl.cpp +++ b/source/slang/slang-emit-hlsl.cpp @@ -566,13 +566,6 @@ bool HLSLSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOu return true; } - case kIROp_GetStringHash: - { - const UnownedStringSlice slice = as(inst->getOperand(0))->getStringSlice(); - m_writer->emit(static_cast(getStableHashCode32(slice.begin(), slice.getLength()))); - - return true; - } case kIROp_ByteAddressBufferLoad: { // HLSL byte-address buffers have two kinds of `Load` operations. -- cgit v1.2.3