mirror of
https://github.com/yuzu-mirror/sirit.git
synced 2026-04-05 06:15:09 +00:00
Use unique_ptr for instruction implementations
This commit is contained in:
parent
63ca1b5243
commit
f3a63aa55f
9 changed files with 77 additions and 89 deletions
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue