#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>
#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) { … }