#include "RISCVInstrInfo.h"
#include "RISCVSubtarget.h"
#include "RISCVTargetMachine.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/Module.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Target/TargetLoweringObjectFile.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include "gtest/gtest.h"
#include <memory>
usingnamespacellvm;
namespace {
class RISCVInstrInfoTest : public testing::TestWithParam<const char *> { … };
TEST_P(RISCVInstrInfoTest, IsAddImmediate) { … }
TEST_P(RISCVInstrInfoTest, IsCopyInstrImpl) { … }
TEST_P(RISCVInstrInfoTest, GetMemOperandsWithOffsetWidth) { … }
static void expectDIEPrintResult(const DIExpression *Expr, StringRef Expected) { … }
TEST_P(RISCVInstrInfoTest, DescribeLoadedValue) { … }
}
INSTANTIATE_TEST_SUITE_P(…);