#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineMemOperand.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/TargetFrameLowering.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetLowering.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/MemoryModelRelaxationAnnotations.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/ModuleSlotTracker.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/TargetParser/Triple.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
usingnamespacellvm;
namespace {
#include "MFCommon.inc"
std::unique_ptr<MCContext> createMCContext(MCAsmInfo *AsmInfo) { … }
TEST(IsIdenticalToTest, DifferentDefs) { … }
void checkHashAndIsEqualMatch(MachineInstr *MI1, MachineInstr *MI2) { … }
TEST(MachineInstrExpressionTraitTest, IsEqualAgreesWithGetHashValue) { … }
TEST(MachineInstrPrintingTest, DebugLocPrinting) { … }
TEST(MachineInstrSpan, DistanceBegin) { … }
TEST(MachineInstrSpan, DistanceEnd) { … }
TEST(MachineInstrExtraInfo, AddExtraInfo) { … }
TEST(MachineInstrExtraInfo, ChangeExtraInfo) { … }
TEST(MachineInstrExtraInfo, RemoveExtraInfo) { … }
TEST(MachineInstrDebugValue, AddDebugValueOperand) { … }
MATCHER_P(HasMIMetadata, MIMD, "") { … }
TEST(MachineInstrBuilder, BuildMI) { … }
static_assert …;
TEST(MachineInstrTest, SpliceOperands) { … }
}