#include "source/reduce/reduction_util.h"
#include "source/opt/ir_context.h"
#include "source/util/make_unique.h"
namespace spvtools {
namespace reduce {
const uint32_t kTrueBranchOperandIndex = …;
const uint32_t kFalseBranchOperandIndex = …;
uint32_t FindOrCreateGlobalVariable(opt::IRContext* context,
uint32_t pointer_type_id) { … }
uint32_t FindOrCreateFunctionVariable(opt::IRContext* context,
opt::Function* function,
uint32_t pointer_type_id) { … }
uint32_t FindOrCreateGlobalUndef(opt::IRContext* context, uint32_t type_id) { … }
void AdaptPhiInstructionsForRemovedEdge(uint32_t from_id,
opt::BasicBlock* to_block) { … }
}
}