sirit/src/insts/conversion.cpp
2018-11-02 23:24:10 -03:00

20 lines
No EOL
542 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::OpBitcast(Id result_type, Id operand) {
auto op{std::make_unique<Op>(spv::Op::OpBitcast, bound++, result_type)};
op->Add(operand);
return AddCode(std::move(op));
}
} // namespace Sirit