Files
jak-project/decompiler/Function/BasicBlocks.h
T
water111 376c273845 Add decompiler IR, basic operations, all-types file (#57)
* framework for basic op

* started IR framework

* check in type info file

* add some basic operations to the first pass ir conversion

* use a single condition system

* add more basic op decoding

* more ir
2020-09-29 20:24:15 -04:00

21 lines
473 B
C++

#pragma once
#include <vector>
#include <memory>
#include "CfgVtx.h"
class LinkedObjectFile;
class Function;
struct BasicBlock {
int start_word;
int end_word;
BasicBlock(int _start_word, int _end_word) : start_word(_start_word), end_word(_end_word) {}
};
std::vector<BasicBlock> find_blocks_in_function(const LinkedObjectFile& file,
int seg,
const Function& func);