-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcontrol.h
More file actions
33 lines (26 loc) · 1.15 KB
/
Copy pathcontrol.h
File metadata and controls
33 lines (26 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "instructiongroup.h"
namespace libscratchcpp::llvmins
{
class Control : public InstructionGroup
{
public:
using InstructionGroup::InstructionGroup;
ProcessResult process(LLVMInstruction *ins) override;
private:
LLVMInstruction *buildSelect(LLVMInstruction *ins);
LLVMInstruction *buildYield(LLVMInstruction *ins);
LLVMInstruction *buildBeginIf(LLVMInstruction *ins);
LLVMInstruction *buildBeginElse(LLVMInstruction *ins);
LLVMInstruction *buildEndIf(LLVMInstruction *ins);
LLVMInstruction *buildBeginRepeatLoop(LLVMInstruction *ins);
LLVMInstruction *buildLoopIndex(LLVMInstruction *ins);
LLVMInstruction *buildBeginWhileLoop(LLVMInstruction *ins);
LLVMInstruction *buildBeginRepeatUntilLoop(LLVMInstruction *ins);
LLVMInstruction *buildBeginLoopCondition(LLVMInstruction *ins);
LLVMInstruction *buildEndLoop(LLVMInstruction *ins);
LLVMInstruction *buildStop(LLVMInstruction *ins);
LLVMInstruction *buildStopWithoutSync(LLVMInstruction *ins);
};
} // namespace libscratchcpp::llvmins