mirror of
https://github.com/azahar-emu/sirit.git
synced 2026-04-05 09:55:59 +02:00
Use unique_ptr for instruction implementations
This commit is contained in:
@@ -233,13 +233,13 @@ class Module {
|
||||
Id OpUndef(Id result_type);
|
||||
|
||||
private:
|
||||
Id AddCode(Op* op);
|
||||
Id AddCode(std::unique_ptr<Op> op);
|
||||
|
||||
Id AddCode(spv::Op opcode, std::optional<std::uint32_t> id = {});
|
||||
|
||||
Id AddDeclaration(Op* op);
|
||||
Id AddDeclaration(std::unique_ptr<Op> op);
|
||||
|
||||
Id AddAnnotation(Op* op);
|
||||
Id AddAnnotation(std::unique_ptr<Op> op);
|
||||
|
||||
std::uint32_t bound{1};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user