mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-02-19 08:43:01 +00: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