llvm/llvm/unittests/IR/DebugInfoTest.cpp

//===- llvm/unittest/IR/DebugInfo.cpp - DebugInfo tests -------------------===//
//
// 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/IR/DebugInfo.h"
#include "../lib/IR/LLVMContextImpl.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/IR/DIBuilder.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/DebugProgramInstruction.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Transforms/Utils/Local.h"

#include "gtest/gtest.h"

usingnamespacellvm;

extern cl::opt<bool> UseNewDbgInfoFormat;

static std::unique_ptr<Module> parseIR(LLVMContext &C, const char *IR) {}

namespace {

TEST(DINodeTest, getFlag) {}

TEST(DINodeTest, getFlagString) {}

TEST(DINodeTest, splitFlags) {}

TEST(StripTest, LoopMetadata) {}

TEST(MetadataTest, DeleteInstUsedByDbgRecord) {}

TEST(DbgVariableIntrinsic, EmptyMDIsKillLocation) {}

// Duplicate of above test, but in DbgVariableRecord representation.
TEST(MetadataTest, DeleteInstUsedByDbgVariableRecord) {}

// Ensure that the order of dbg.value intrinsics returned by findDbgValues, and
// their corresponding DbgVariableRecord representation, are consistent.
TEST(MetadataTest, OrderingOfDbgVariableRecords) {}

TEST(DIBuilder, CreateFile) {}

TEST(DIBuilder, CreateFortranArrayTypeWithAttributes) {}

TEST(DIBuilder, CreateSetType) {}

TEST(DIBuilder, CreateStringType) {}

TEST(DIBuilder, DIEnumerator) {}

TEST(DbgAssignIntrinsicTest, replaceVariableLocationOp) {}

TEST(AssignmentTrackingTest, Utils) {}

TEST(IRBuilder, GetSetInsertionPointWithEmptyBasicBlock) {}

TEST(AssignmentTrackingTest, InstrMethods) {}

// Test some very straight-forward operations on DbgVariableRecords -- these are
// dbg.values that have been converted to a non-instruction format.
TEST(MetadataTest, ConvertDbgToDbgVariableRecord) {}

TEST(MetadataTest, DbgVariableRecordConversionRoutines) {}

// Test that the hashing function for DISubprograms representing methods produce
// the same result after replacing their scope (the type containing the
// subprogram) from a temporary DIType with the permanent one.
TEST(DIBuilder, HashingDISubprogram) {}

TEST(DIBuilder, CompositeTypes) {}

} // end namespace