From ad19484792dcc5a1fb90720614830c66c4b9712d Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Thu, 17 Aug 2017 13:40:50 -0700 Subject: Add some dummy logic to print IR to HLSL - Change IR instructions to just hold an integer opcode instead of a pointer to the "info" structure - Externalize definition of IR instructions to a header file, and use the "X macro" approach to allow generating different definitions - Add notion of function types to the IR, so that we can easily query the result type of a function - Add some convenience accesors to allow walking the IR in a strongly-typed manner (e.g., iterate over the parameters of a function) - TODO: these should really be changed to assert the type of things, as least in debug builds - Add very basic logic to `emit.cpp` so that it can walk the generated IR and start printing it back as HLSL - This isn't meant to be usable as-is, but it is a step toward where we need to go --- source/slang/slang.vcxproj | 1 + 1 file changed, 1 insertion(+) (limited to 'source/slang/slang.vcxproj') diff --git a/source/slang/slang.vcxproj b/source/slang/slang.vcxproj index 94a6004e0..c8a564f2c 100644 --- a/source/slang/slang.vcxproj +++ b/source/slang/slang.vcxproj @@ -172,6 +172,7 @@ + -- cgit v1.2.3