mirror of
https://github.com/yuzu-mirror/sirit.git
synced 2026-01-08 01:20:01 +01:00
21 lines
578 B
C++
21 lines
578 B
C++
|
|
/* This file is part of the sirit project.
|
||
|
|
* Copyright (c) 2018 ReinUsesLisp
|
||
|
|
* This software may be used and distributed according to the terms of the GNU
|
||
|
|
* Lesser General Public License version 2.1 or any later version.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include "common_types.h"
|
||
|
|
#include "op.h"
|
||
|
|
#include "sirit/sirit.h"
|
||
|
|
#include <memory>
|
||
|
|
|
||
|
|
namespace Sirit {
|
||
|
|
|
||
|
|
Id Module::OpUDiv(Id result_type, Id operand_1, Id operand_2) {
|
||
|
|
auto op{std::make_unique<Op>(spv::Op::OpUDiv, bound++, result_type)};
|
||
|
|
op->Add(operand_1);
|
||
|
|
op->Add(operand_2);
|
||
|
|
return AddCode(std::move(op));
|
||
|
|
}
|
||
|
|
|
||
|
|
} // namespace Sirit
|