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