chromium/third_party/spirv-tools/src/source/opt/module.cpp

// Copyright (c) 2016 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "source/opt/module.h"

#include <algorithm>
#include <cstring>
#include <ostream>

#include "source/operand.h"
#include "source/opt/ir_context.h"
#include "source/opt/reflect.h"

namespace spvtools {
namespace opt {

uint32_t Module::TakeNextIdBound() {}

std::vector<Instruction*> Module::GetTypes() {}

std::vector<const Instruction*> Module::GetTypes() const {}

std::vector<Instruction*> Module::GetConstants() {}

std::vector<const Instruction*> Module::GetConstants() const {}

uint32_t Module::GetGlobalValue(spv::Op opcode) const {}

void Module::AddGlobalValue(spv::Op opcode, uint32_t result_id,
                            uint32_t type_id) {}

void Module::ForEachInst(const std::function<void(Instruction*)>& f,
                         bool run_on_debug_line_insts) {}

void Module::ForEachInst(const std::function<void(const Instruction*)>& f,
                         bool run_on_debug_line_insts) const {}

void Module::ToBinary(std::vector<uint32_t>* binary, bool skip_nop) const {}

uint32_t Module::ComputeIdBound() const {}

bool Module::HasExplicitCapability(uint32_t cap) {}

uint32_t Module::GetExtInstImportId(const char* extstr) {}

std::ostream& operator<<(std::ostream& str, const Module& module) {}

}  // namespace opt
}  // namespace spvtools