summaryrefslogtreecommitdiffstats
path: root/tests/ir/loop.slang.expected
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-12-20 14:06:59 -0800
committerGitHub <noreply@github.com>2017-12-20 14:06:59 -0800
commit35318fb2b08c82f80cbd464e93d81ebe719c40be (patch)
tree9b08989c13d6a6902def0f3c125ba7942a7a4e0d /tests/ir/loop.slang.expected
parent8e0e6b64b934e161db297845ca55e66a3c248220 (diff)
More fixes for Falcor IR support (#317)
* Fix: try to improve float literal formatting An earlier change switched to using the C++ stdlib to format floats, but I neglected to check that it would correctly print values that happen to be integral with a decimal place (e.g., print `1.0` instead of just `1`). That causes some obscure cases to fail (e.g., when you write `1.0.xxxx` in HLSL, and we print out `1.xxxx`). I've tried to resolve the issue by using the "fixed" output format, but that may also create problems for extremely large or small values (which really need to use scientific notation). However, this at least puts us back where we were before... * Add support for source locations to the IR - Add a `sourceLocation` field to all `IRValue`s - Add some logic to associate locations with operations while lowering (using a slightly "clever" RAII approach) - Make sure that when cloning instructions, we also clone the location - Make the emit logic use the existing support for source locations when emitting code from the IR A nice cleanup to this work would be to have the source locations for IR values not be hyper-specific about both line and column; it is probably enough to just emit on the correct line.
Diffstat (limited to 'tests/ir/loop.slang.expected')
0 files changed, 0 insertions, 0 deletions