#include "source/opt/private_to_local_pass.h"
#include <memory>
#include <utility>
#include <vector>
#include "source/opt/ir_context.h"
#include "source/spirv_constant.h"
namespace spvtools {
namespace opt {
namespace {
constexpr uint32_t kVariableStorageClassInIdx = …;
constexpr uint32_t kSpvTypePointerTypeIdInIdx = …;
}
Pass::Status PrivateToLocalPass::Process() { … }
Function* PrivateToLocalPass::FindLocalFunction(const Instruction& inst) const { … }
bool PrivateToLocalPass::MoveVariable(Instruction* variable,
Function* function) { … }
uint32_t PrivateToLocalPass::GetNewType(uint32_t old_type_id) { … }
bool PrivateToLocalPass::IsValidUse(const Instruction* inst) const { … }
bool PrivateToLocalPass::UpdateUse(Instruction* inst, Instruction* user) { … }
bool PrivateToLocalPass::UpdateUses(Instruction* inst) { … }
}
}