2018-10-31 04:26:35 -03:00
|
|
|
/* This file is part of the sirit project.
|
2019-07-14 18:48:59 -03:00
|
|
|
* Copyright (c) 2019 sirit
|
|
|
|
|
* This software may be used and distributed according to the terms of the
|
|
|
|
|
* 3-Clause BSD License
|
2018-10-31 04:26:35 -03:00
|
|
|
*/
|
|
|
|
|
|
2019-03-11 03:26:21 -03:00
|
|
|
#include <cassert>
|
2018-11-01 05:13:30 -03:00
|
|
|
#include "op.h"
|
2018-10-31 04:26:35 -03:00
|
|
|
#include "sirit/sirit.h"
|
|
|
|
|
|
|
|
|
|
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
|