#include "source/opt/eliminate_dead_io_components_pass.h"
#include <vector>
#include "source/opt/instruction.h"
#include "source/opt/ir_context.h"
#include "source/util/bit_vector.h"
namespace spvtools {
namespace opt {
namespace {
constexpr uint32_t kAccessChainBaseInIdx = …;
constexpr uint32_t kAccessChainIndex0InIdx = …;
constexpr uint32_t kAccessChainIndex1InIdx = …;
constexpr uint32_t kConstantValueInIdx = …;
}
Pass::Status EliminateDeadIOComponentsPass::Process() { … }
unsigned EliminateDeadIOComponentsPass::FindMaxIndex(
const Instruction& var, const unsigned original_max,
const bool skip_first_index) { … }
void EliminateDeadIOComponentsPass::ChangeArrayLength(Instruction& arr_var,
unsigned length) { … }
void EliminateDeadIOComponentsPass::ChangeIOVarStructLength(Instruction& io_var,
unsigned length) { … }
}
}