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/compiler.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/slang/compiler.h') diff --git a/source/slang/compiler.h b/source/slang/compiler.h index ca06e3a65..9de74e2cd 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -48,7 +48,6 @@ namespace Slang DXBytecode = SLANG_DXBC, DXBytecodeAssembly = SLANG_DXBC_ASM, SlangIR = SLANG_IR, - SlangIRAssembly = SLANG_IR_ASM, }; enum class LineDirectiveMode : SlangLineDirectiveMode @@ -211,6 +210,9 @@ namespace Slang // Should we dump intermediate results along the way, for debugging? bool shouldDumpIntermediates = false; + bool shouldDumpIR = false; + bool shouldSkipCodegen = false; + // How should `#line` directives be emitted (if at all)? LineDirectiveMode lineDirectiveMode = LineDirectiveMode::Default; @@ -391,6 +393,8 @@ namespace Slang // Construct pointer types on-demand RefPtr getPtrType(RefPtr valueType); + RefPtr getGroupSharedType(RefPtr valueType); + SyntaxClass findSyntaxClass(Name* name); Dictionary > mapNameToSyntaxClass; -- cgit v1.2.3