sirit/src/insts/flow.cpp

21 lines
451 B
C++
Raw Normal View History

/* 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-08-27 04:28:39 +02:00
* Lesser General Public License version 2.1 or any later version.
*/
#include "sirit/sirit.h"
2018-08-28 09:05:47 +02:00
#include "insts.h"
namespace Sirit {
2018-08-28 09:01:21 +02:00
Ref Module::Label() {
return AddCode(spv::Op::OpLabel, bound++);
}
2018-08-28 09:01:21 +02:00
Ref Module::Return() {
return AddCode(spv::Op::OpReturn);
}
} // namespace Sirit