llvm/llvm/unittests/IR/InstructionsTest.cpp

//===- llvm/unittest/IR/InstructionsTest.cpp - Instructions unit 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/Instructions.h"
#include "llvm/ADT/CombinationGenerator.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/Analysis/VectorUtils.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/FPEnv.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/MDBuilder.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/NoFolder.h"
#include "llvm/IR/Operator.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm-c/Core.h"
#include "gmock/gmock-matchers.h"
#include "gtest/gtest.h"
#include <memory>

extern llvm::cl::opt<bool> UseNewDbgInfoFormat;

namespace llvm {
namespace {

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

TEST(InstructionsTest, ReturnInst) {}

// Test fixture that provides a module and a single function within it. Useful
// for tests that need to refer to the function in some way.
class ModuleWithFunctionTest : public testing::Test {};

TEST_F(ModuleWithFunctionTest, CallInst) {}

TEST_F(ModuleWithFunctionTest, InvokeInst) {}

TEST(InstructionsTest, BranchInst) {}

TEST(InstructionsTest, CastInst) {}

TEST(InstructionsTest, CastCAPI) {}

TEST(InstructionsTest, VectorGep) {}

TEST(InstructionsTest, FPMathOperator) {}

TEST(InstructionTest, ConstrainedTrans) {}

TEST(InstructionsTest, isEliminableCastPair) {}

TEST(InstructionsTest, CloneCall) {}

TEST(InstructionsTest, AlterCallBundles) {}

TEST(InstructionsTest, AlterInvokeBundles) {}

TEST_F(ModuleWithFunctionTest, DropPoisonGeneratingFlags) {}

TEST(InstructionsTest, GEPIndices) {}

TEST(InstructionsTest, SwitchInst) {}

TEST(InstructionsTest, SwitchInstProfUpdateWrapper) {}

TEST(InstructionsTest, CommuteShuffleMask) {}

TEST(InstructionsTest, ShuffleMaskQueries) {}

TEST(InstructionsTest, ShuffleMaskIsReplicationMask) {}

TEST(InstructionsTest, ShuffleMaskIsReplicationMask_undef) {}

TEST(InstructionsTest, ShuffleMaskIsReplicationMask_Exhaustive_Correctness) {}

TEST(InstructionsTest, GetSplat) {}

TEST(InstructionsTest, SkipDebug) {}

TEST(InstructionsTest, PhiMightNotBeFPMathOperator) {}

TEST(InstructionsTest, FPCallIsFPMathOperator) {}

TEST(InstructionsTest, FNegInstruction) {}

TEST(InstructionsTest, CallBrInstruction) {}

TEST(InstructionsTest, UnaryOperator) {}

TEST(InstructionsTest, DropLocation) {}

TEST(InstructionsTest, BranchWeightOverflow) {}

TEST(InstructionsTest, AllocaInst) {}

TEST(InstructionsTest, InsertAtBegin) {}

TEST(InstructionsTest, InsertAtEnd) {}

TEST(InstructionsTest, AtomicSyncscope) {}

} // end anonymous namespace
} // end namespace llvm