diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-06-21 12:16:51 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2019-06-21 14:38:23 +0300 |
commit | c365cc1b43c348711800ac9b33b3a3bc1573457e (patch) | |
tree | 4b7497c2e28bc2706d25d3d3edfc4eb932f73ec2 /spirv_cross.hpp | |
parent | 22e3beaab958da2a1f459dd6f0c6e45ad0fabcb2 (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.hpp | 1 |
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; |