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