From 3e3e2473bf85365593629bd1f6f070d11f0b8ab2 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Fri, 13 Oct 2017 22:39:15 -0700 Subject: Get rid of the `-slang-ir-asm` target (#212) * Get rid of the `-slang-ir-asm` target This is really only useful for debugging, so I've replaced the functionality with a `-dump-ir` command line option (which dump's the IR for an entry point before doing codegen). * fixup: use HLSL target, not DXBC, so test can run on Linux --- source/slang/ir.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'source/slang/ir.cpp') diff --git a/source/slang/ir.cpp b/source/slang/ir.cpp index a79dc3992..79d9883ea 100644 --- a/source/slang/ir.cpp +++ b/source/slang/ir.cpp @@ -805,8 +805,7 @@ namespace Slang } IRVar* IRBuilder::emitVar( - IRType* type, - IRAddressSpace addressSpace) + IRType* type) { auto allocatedType = getSession()->getPtrType(type); auto inst = createInst( @@ -817,13 +816,6 @@ namespace Slang return inst; } - - IRVar* IRBuilder::emitVar( - IRType* type) - { - return emitVar(type, kIRAddressSpace_Default); - } - IRInst* IRBuilder::emitLoad( IRValue* ptr) { @@ -1451,6 +1443,11 @@ namespace Slang { dumpDeclRef(context, declRefType->declRef); } + else if(auto groupSharedType = type->As()) + { + dump(context, "@ThreadGroup "); + dumpType(context, groupSharedType->valueType); + } else { // Need a default case here -- cgit v1.2.3