llvm/llvm/unittests/Remarks/BitstreamRemarksSerializerTest.cpp

//===- unittest/Support/BitstreamRemarksSerializerTest.cpp ----------------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include "llvm/Bitcode/BitcodeAnalyzer.h"
#include "llvm/Remarks/BitstreamRemarkSerializer.h"
#include "llvm/Remarks/Remark.h"
#include "llvm/Support/raw_ostream.h"
#include "gtest/gtest.h"
#include <optional>
#include <string>

// We need to supprt Windows paths as well. In order to have paths with the same
// length, use a different path according to the platform.
#ifdef _WIN32
#define EXTERNALFILETESTPATH
#else
#define EXTERNALFILETESTPATH
#endif

usingnamespacellvm;

static void checkAnalyze(StringRef Input, StringRef Expected) {}

static void check(remarks::SerializerMode Mode, const remarks::Remark &R,
                  StringRef ExpectedR, std::optional<StringRef> ExpectedMeta,
                  std::optional<remarks::StringTable> StrTab) {}

static void check(const remarks::Remark &R, StringRef ExpectedR,
                  StringRef ExpectedMeta,
                  std::optional<remarks::StringTable> StrTab = std::nullopt) {}

static void
checkStandalone(const remarks::Remark &R, StringRef ExpectedR,
                std::optional<remarks::StringTable> StrTab = std::nullopt) {}

TEST(BitstreamRemarkSerializer, SeparateRemarkFileNoOptionals) {}

TEST(BitstreamRemarkSerializer, SeparateRemarkFileNoOptionalsSeparateStrTab) {}

TEST(BitstreamRemarkSerializer, SeparateRemarkFileDebugLoc) {}

TEST(BitstreamRemarkSerializer, SeparateRemarkFileHotness) {}

TEST(BitstreamRemarkSerializer, SeparateRemarkFileArgNoDebugLoc) {}

TEST(BitstreamRemarkSerializer, SeparateRemarkFileArgDebugLoc) {}

TEST(BitstreamRemarkSerializer, SeparateRemarkFileAll) {}

TEST(BitstreamRemarkSerializer, Standalone) {}