r600/sfn: Add function to insert op in block

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21347>
This commit is contained in:
Gert Wollny 2023-02-10 16:12:05 +01:00 committed by Marge Bot
parent f464fc28d4
commit e7b497fe87
2 changed files with 8 additions and 0 deletions

View file

@ -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)
{

View file

@ -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;