Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2019-06-21 12:16:51 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2019-06-21 14:38:23 +0300
commitc365cc1b43c348711800ac9b33b3a3bc1573457e (patch)
tree4b7497c2e28bc2706d25d3d3edfc4eb932f73ec2 /spirv_cross.hpp
parent22e3beaab958da2a1f459dd6f0c6e45ad0fabcb2 (diff)
Deal with OpPhi and case fallthrough.
This is quite complex since we cannot flush Phi inside the case labels, we have to do it outside by emitting a lot of manual branches ourselves. This should be extremely rare, but we need to handle this case.
Diffstat (limited to 'spirv_cross.hpp')
-rw-r--r--spirv_cross.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/spirv_cross.hpp b/spirv_cross.hpp
index 3f75627e..3d17e78d 100644
--- a/spirv_cross.hpp
+++ b/spirv_cross.hpp
@@ -669,6 +669,7 @@ protected:
bool block_is_outside_flow_control_from_block(const SPIRBlock &from, const SPIRBlock &to);
bool execution_is_branchless(const SPIRBlock &from, const SPIRBlock &to) const;
+ bool execution_is_direct_branch(const SPIRBlock &from, const SPIRBlock &to) const;
bool execution_is_noop(const SPIRBlock &from, const SPIRBlock &to) const;
SPIRBlock::ContinueBlockType continue_block_type(const SPIRBlock &continue_block) const;