summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/tools/llvm-exegesis/PowerPC
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/tools/llvm-exegesis/PowerPC')
-rw-r--r--llvm/unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp7
-rw-r--r--llvm/unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp11
2 files changed, 8 insertions, 10 deletions
diff --git a/llvm/unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp b/llvm/unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp
index a7d2c6d95e6..cce37d1c031 100644
--- a/llvm/unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp
+++ b/llvm/unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp
@@ -28,10 +28,9 @@ protected:
AnalysisTest() {
const std::string TT = "powerpc64le-unknown-linux";
std::string error;
- const llvm::Target *const TheTarget =
- llvm::TargetRegistry::lookupTarget(TT, error);
+ const Target *const TheTarget = TargetRegistry::lookupTarget(TT, error);
if (!TheTarget) {
- llvm::errs() << error << "\n";
+ errs() << error << "\n";
return;
}
STI.reset(TheTarget->createMCSubtargetInfo(TT, "pwr9", ""));
@@ -63,7 +62,7 @@ protected:
}
protected:
- std::unique_ptr<const llvm::MCSubtargetInfo> STI;
+ std::unique_ptr<const MCSubtargetInfo> STI;
uint16_t ALUIdx = 0;
uint16_t ALUEIdx = 0;
uint16_t ALUOIdx = 0;
diff --git a/llvm/unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp b/llvm/unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp
index 3f6c5b6d9ea..a1b628fca2c 100644
--- a/llvm/unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp
+++ b/llvm/unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp
@@ -33,10 +33,10 @@ constexpr const char kTriple[] = "powerpc64le-unknown-linux";
class PowerPCTargetTest : public ::testing::Test {
protected:
PowerPCTargetTest()
- : ExegesisTarget_(ExegesisTarget::lookup(llvm::Triple(kTriple))) {
+ : ExegesisTarget_(ExegesisTarget::lookup(Triple(kTriple))) {
EXPECT_THAT(ExegesisTarget_, NotNull());
std::string error;
- Target_ = llvm::TargetRegistry::lookupTarget(kTriple, error);
+ Target_ = TargetRegistry::lookupTarget(kTriple, error);
EXPECT_THAT(Target_, NotNull());
}
static void SetUpTestCase() {
@@ -46,15 +46,14 @@ protected:
InitializePowerPCExegesisTarget();
}
- const llvm::Target *Target_;
+ const Target *Target_;
const ExegesisTarget *const ExegesisTarget_;
};
TEST_F(PowerPCTargetTest, SetRegToConstant) {
- const std::unique_ptr<llvm::MCSubtargetInfo> STI(
+ const std::unique_ptr<MCSubtargetInfo> STI(
Target_->createMCSubtargetInfo(kTriple, "generic", ""));
- const auto Insts =
- ExegesisTarget_->setRegTo(*STI, llvm::PPC::X0, llvm::APInt());
+ const auto Insts = ExegesisTarget_->setRegTo(*STI, PPC::X0, APInt());
EXPECT_THAT(Insts, Not(IsEmpty()));
}
OpenPOWER on IntegriCloud