llvm/clang/lib/AST/ByteCode/Disasm.cpp

//===--- Disasm.cpp - Disassembler for bytecode functions -------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Dump method for Function which disassembles the bytecode.
//
//===----------------------------------------------------------------------===//

#include "Boolean.h"
#include "Context.h"
#include "EvaluationResult.h"
#include "FixedPoint.h"
#include "Floating.h"
#include "Function.h"
#include "FunctionPointer.h"
#include "Integral.h"
#include "IntegralAP.h"
#include "InterpFrame.h"
#include "MemberPointer.h"
#include "Opcode.h"
#include "PrimType.h"
#include "Program.h"
#include "clang/AST/ASTDumperUtils.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/ExprCXX.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Format.h"

usingnamespaceclang;
usingnamespaceclang::interp;

template <typename T> inline T ReadArg(Program &P, CodePtr &OpPC) {}

template <> inline Floating ReadArg<Floating>(Program &P, CodePtr &OpPC) {}

template <>
inline IntegralAP<false> ReadArg<IntegralAP<false>>(Program &P, CodePtr &OpPC) {}

template <>
inline IntegralAP<true> ReadArg<IntegralAP<true>>(Program &P, CodePtr &OpPC) {}

LLVM_DUMP_METHOD void Function::dump() const {}

LLVM_DUMP_METHOD void Function::dump(llvm::raw_ostream &OS) const {}

LLVM_DUMP_METHOD void Program::dump() const {}

static const char *primTypeToString(PrimType T) {}

LLVM_DUMP_METHOD void Program::dump(llvm::raw_ostream &OS) const {}

LLVM_DUMP_METHOD void Descriptor::dump() const {}

LLVM_DUMP_METHOD void Descriptor::dump(llvm::raw_ostream &OS) const {}

LLVM_DUMP_METHOD void InlineDescriptor::dump(llvm::raw_ostream &OS) const {}

LLVM_DUMP_METHOD void InterpFrame::dump(llvm::raw_ostream &OS,
                                        unsigned Indent) const {}

LLVM_DUMP_METHOD void Record::dump(llvm::raw_ostream &OS, unsigned Indentation,
                                   unsigned Offset) const {}

LLVM_DUMP_METHOD void Block::dump(llvm::raw_ostream &OS) const {}

LLVM_DUMP_METHOD void EvaluationResult::dump() const {}