mirror of
https://git.suyu.dev/suyu/suyu
synced 2026-05-22 23:15:46 +00:00
shader: Add copy constructor to instructions
This commit is contained in:
committed by
Fernando Sahmkow
parent
95761cc6a7
commit
c892359d1b
@@ -40,6 +40,9 @@ public:
|
||||
/// Appends a new instruction to the end of this basic block.
|
||||
void AppendNewInst(Opcode op, std::initializer_list<Value> args);
|
||||
|
||||
/// Prepends a copy of an instruction to this basic block before the insertion point.
|
||||
iterator PrependNewInst(iterator insertion_point, const Inst& base_inst);
|
||||
|
||||
/// Prepends a new instruction to this basic block before the insertion point.
|
||||
iterator PrependNewInst(iterator insertion_point, Opcode op,
|
||||
std::initializer_list<Value> args = {}, u32 flags = 0);
|
||||
|
||||
Reference in New Issue
Block a user