#include "source/text_handler.h"
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <tuple>
#include "source/assembly_grammar.h"
#include "source/binary.h"
#include "source/ext_inst.h"
#include "source/instruction.h"
#include "source/opcode.h"
#include "source/text.h"
#include "source/util/bitutils.h"
#include "source/util/hex_float.h"
#include "source/util/parse_number.h"
#include "source/util/string_utils.h"
namespace spvtools {
namespace {
spv_result_t advanceLine(spv_text text, spv_position position) { … }
spv_result_t advance(spv_text text, spv_position position) { … }
spv_result_t getWord(spv_text text, spv_position position, std::string* word) { … }
bool startsWithOp(spv_text text, spv_position position) { … }
}
const IdType kUnknownType = …;
uint32_t AssemblyContext::spvNamedIdAssignOrGet(const char* textValue) { … }
uint32_t AssemblyContext::getBound() const { … }
spv_result_t AssemblyContext::advance() { … }
spv_result_t AssemblyContext::getWord(std::string* word,
spv_position next_position) { … }
bool AssemblyContext::startsWithOp() { … }
bool AssemblyContext::isStartOfNewInst() { … }
char AssemblyContext::peek() const { … }
bool AssemblyContext::hasText() const { … }
void AssemblyContext::seekForward(uint32_t size) { … }
spv_result_t AssemblyContext::binaryEncodeU32(const uint32_t value,
spv_instruction_t* pInst) { … }
spv_result_t AssemblyContext::binaryEncodeNumericLiteral(
const char* val, spv_result_t error_code, const IdType& type,
spv_instruction_t* pInst) { … }
spv_result_t AssemblyContext::binaryEncodeString(const char* value,
spv_instruction_t* pInst) { … }
spv_result_t AssemblyContext::recordTypeDefinition(
const spv_instruction_t* pInst) { … }
IdType AssemblyContext::getTypeOfTypeGeneratingValue(uint32_t value) const { … }
IdType AssemblyContext::getTypeOfValueInstruction(uint32_t value) const { … }
spv_result_t AssemblyContext::recordTypeIdForValue(uint32_t value,
uint32_t type) { … }
spv_result_t AssemblyContext::recordIdAsExtInstImport(
uint32_t id, spv_ext_inst_type_t type) { … }
spv_ext_inst_type_t AssemblyContext::getExtInstTypeForId(uint32_t id) const { … }
std::set<uint32_t> AssemblyContext::GetNumericIds() const { … }
}