mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 13:53:14 +01:00
Updated spirv-tools.
This commit is contained in:
12
3rdparty/spirv-tools/source/opt/basic_block.cpp
vendored
12
3rdparty/spirv-tools/source/opt/basic_block.cpp
vendored
@@ -184,6 +184,12 @@ uint32_t BasicBlock::MergeBlockIdIfAny() const {
|
||||
return mbid;
|
||||
}
|
||||
|
||||
uint32_t BasicBlock::MergeBlockId() const {
|
||||
uint32_t mbid = MergeBlockIdIfAny();
|
||||
assert(mbid && "Expected block to have a corresponding merge block");
|
||||
return mbid;
|
||||
}
|
||||
|
||||
uint32_t BasicBlock::ContinueBlockIdIfAny() const {
|
||||
auto merge_ii = cend();
|
||||
--merge_ii;
|
||||
@@ -197,6 +203,12 @@ uint32_t BasicBlock::ContinueBlockIdIfAny() const {
|
||||
return cbid;
|
||||
}
|
||||
|
||||
uint32_t BasicBlock::ContinueBlockId() const {
|
||||
uint32_t cbid = ContinueBlockIdIfAny();
|
||||
assert(cbid && "Expected block to have a corresponding continue target");
|
||||
return cbid;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& str, const BasicBlock& block) {
|
||||
str << block.PrettyPrint();
|
||||
return str;
|
||||
|
||||
Reference in New Issue
Block a user