mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-01-01 20:25:23 +01:00
Add OpDecorate
This commit is contained in:
parent
54cc7d06ce
commit
1458bd2c1c
6 changed files with 49 additions and 4 deletions
|
|
@ -77,6 +77,12 @@ void Op::Add(const std::vector<Ref>& ids) {
|
|||
}
|
||||
}
|
||||
|
||||
void Op::Add(const std::vector<Operand*>& operands) {
|
||||
for (Operand* operand : operands) {
|
||||
Add(operand);
|
||||
}
|
||||
}
|
||||
|
||||
u16 Op::WordCount() const {
|
||||
u16 count{1};
|
||||
if (result_type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue