From e7b497fe87f58cf07b8d3b1c93ac8747bd90fe67 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 10 Feb 2023 16:12:05 +0100 Subject: [PATCH] r600/sfn: Add function to insert op in block Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/sfn_instr.cpp | 6 ++++++ src/gallium/drivers/r600/sfn/sfn_instr.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/gallium/drivers/r600/sfn/sfn_instr.cpp b/src/gallium/drivers/r600/sfn/sfn_instr.cpp index 4205e0f..b539c37 100644 --- a/src/gallium/drivers/r600/sfn/sfn_instr.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_instr.cpp @@ -342,6 +342,12 @@ Block::push_back(PInst instr) m_instructions.push_back(instr); } +Block::iterator +Block::insert(const iterator pos, Instr *instr) +{ + return m_instructions.insert(pos, instr); +} + bool Block::try_reserve_kcache(const AluGroup& group) { diff --git a/src/gallium/drivers/r600/sfn/sfn_instr.h b/src/gallium/drivers/r600/sfn/sfn_instr.h index 26b35f3..c8ca38f 100644 --- a/src/gallium/drivers/r600/sfn/sfn_instr.h +++ b/src/gallium/drivers/r600/sfn/sfn_instr.h @@ -191,6 +191,8 @@ public: void erase(iterator node); + iterator insert(const iterator pos, Instr *instr); + bool is_equal_to(const Block& lhs) const; void accept(ConstInstrVisitor& visitor) const override; -- 2.7.4