summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/ir/basic_block.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-04-21 03:28:06 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:28 +0200
commit4bbe5303376e693d15d7de80b25f5fda783281ce (patch)
tree6432c932baf63ea9b4c6b7e56d0c5dcb3b3b13ba /src/shader_recompiler/frontend/ir/basic_block.cpp
parentshader: Use a small_vector for phi blocks (diff)
downloadyuzu-4bbe5303376e693d15d7de80b25f5fda783281ce.tar
yuzu-4bbe5303376e693d15d7de80b25f5fda783281ce.tar.gz
yuzu-4bbe5303376e693d15d7de80b25f5fda783281ce.tar.bz2
yuzu-4bbe5303376e693d15d7de80b25f5fda783281ce.tar.lz
yuzu-4bbe5303376e693d15d7de80b25f5fda783281ce.tar.xz
yuzu-4bbe5303376e693d15d7de80b25f5fda783281ce.tar.zst
yuzu-4bbe5303376e693d15d7de80b25f5fda783281ce.zip
Diffstat (limited to 'src/shader_recompiler/frontend/ir/basic_block.cpp')
-rw-r--r--src/shader_recompiler/frontend/ir/basic_block.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/shader_recompiler/frontend/ir/basic_block.cpp b/src/shader_recompiler/frontend/ir/basic_block.cpp
index e1f0191f4..f92fc2571 100644
--- a/src/shader_recompiler/frontend/ir/basic_block.cpp
+++ b/src/shader_recompiler/frontend/ir/basic_block.cpp
@@ -69,24 +69,12 @@ u32 Block::LocationEnd() const noexcept {
return location_end;
}
-Block::InstructionList& Block::Instructions() noexcept {
- return instructions;
-}
-
-const Block::InstructionList& Block::Instructions() const noexcept {
- return instructions;
-}
-
void Block::AddImmediatePredecessor(Block* block) {
if (std::ranges::find(imm_predecessors, block) == imm_predecessors.end()) {
imm_predecessors.push_back(block);
}
}
-std::span<IR::Block* const> Block::ImmediatePredecessors() const noexcept {
- return imm_predecessors;
-}
-
static std::string BlockToIndex(const std::map<const Block*, size_t>& block_to_index,
Block* block) {
if (const auto it{block_to_index.find(block)}; it != block_to_index.end()) {