chromium/third_party/spirv-tools/src/source/libspirv.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 "spirv-tools/libspirv.hpp"

#include <cassert>
#include <iostream>
#include <string>
#include <utility>
#include <vector>

#include "source/table.h"

namespace spvtools {

Context::Context(spv_target_env env) :{}

Context::Context(Context&& other) :{}

Context& Context::operator=(Context&& other) {}

Context::~Context() {}

void Context::SetMessageConsumer(MessageConsumer consumer) {}

spv_context& Context::CContext() {}

const spv_context& Context::CContext() const {}

// Structs for holding the data members for SpvTools.
struct SpirvTools::Impl {};

SpirvTools::SpirvTools(spv_target_env env) :{}

SpirvTools::~SpirvTools() {}

void SpirvTools::SetMessageConsumer(MessageConsumer consumer) {}

bool SpirvTools::Assemble(const std::string& text,
                          std::vector<uint32_t>* binary,
                          uint32_t options) const {}

bool SpirvTools::Assemble(const char* text, const size_t text_size,
                          std::vector<uint32_t>* binary,
                          uint32_t options) const {}

bool SpirvTools::Disassemble(const std::vector<uint32_t>& binary,
                             std::string* text, uint32_t options) const {}

bool SpirvTools::Disassemble(const uint32_t* binary, const size_t binary_size,
                             std::string* text, uint32_t options) const {}

struct CxxParserContext {};

bool SpirvTools::Parse(const std::vector<uint32_t>& binary,
                       const HeaderParser& header_parser,
                       const InstructionParser& instruction_parser,
                       spv_diagnostic* diagnostic) {}

bool SpirvTools::Validate(const std::vector<uint32_t>& binary) const {}

bool SpirvTools::Validate(const uint32_t* binary,
                          const size_t binary_size) const {}

bool SpirvTools::Validate(const uint32_t* binary, const size_t binary_size,
                          spv_validator_options options) const {}

bool SpirvTools::IsValid() const {}

}  // namespace spvtools