shader: Add copy constructor to instructions

This commit is contained in:
ReinUsesLisp 2021-07-25 21:34:17 -03:00 committed by Fernando Sahmkow
parent 95761cc6a7
commit c892359d1b
4 changed files with 20 additions and 1 deletions

View file

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