Files
sirit/src/instructions/misc.cpp

18 lines
450 B
C++
Raw Normal View History

2018-10-31 04:26:35 -03:00
/* 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
2018-11-16 04:10:10 -03:00
* Lesser General Public License version 3 or any later version.
2018-10-31 04:26:35 -03:00
*/
2018-11-01 05:13:30 -03:00
#include "op.h"
2018-10-31 04:26:35 -03:00
#include "sirit/sirit.h"
#include <cassert>
namespace Sirit {
2018-10-31 22:20:49 -03:00
Id Module::OpUndef(Id result_type) {
2018-11-01 05:13:30 -03:00
return AddCode(std::make_unique<Op>(spv::Op::OpUndef, bound++, result_type));
2018-10-31 04:26:35 -03:00
}
} // namespace Sirit