File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
llvm/unittests/tools/llvm-exegesis/RISCV Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 99#include " ../Common/AssemblerUtils.h"
1010#include " LlvmState.h"
1111#include " MCInstrDescView.h"
12- #include " RISCVInstrInfo.h"
1312#include " ParallelSnippetGenerator.h"
13+ #include " RISCVInstrInfo.h"
1414#include " RegisterAliasing.h"
1515#include " SerialSnippetGenerator.h"
1616#include " TestBase.h"
@@ -44,12 +44,14 @@ class RISCVSnippetGeneratorTest : public RISCVTestBase {
4444 SnippetGeneratorT Generator;
4545};
4646
47- using RISCVSerialSnippetGeneratorTest = RISCVSnippetGeneratorTest<SerialSnippetGenerator>;
47+ using RISCVSerialSnippetGeneratorTest =
48+ RISCVSnippetGeneratorTest<SerialSnippetGenerator>;
4849
4950using RISCVParallelSnippetGeneratorTest =
5051 RISCVSnippetGeneratorTest<ParallelSnippetGenerator>;
5152
52- TEST_F (RISCVSerialSnippetGeneratorTest, ImplicitSelfDependencyThroughExplicitRegs) {
53+ TEST_F (RISCVSerialSnippetGeneratorTest,
54+ ImplicitSelfDependencyThroughExplicitRegs) {
5355 // - ADD
5456 // - Op0 Explicit Def RegClass(GPR)
5557 // - Op1 Explicit Use RegClass(GPR)
Original file line number Diff line number Diff line change 1717#include " gmock/gmock.h"
1818#include " gtest/gtest.h"
1919
20- namespace llvm {
20+ namespace llvm {
2121namespace exegesis {
2222
2323void InitializeRISCVExegesisTarget ();
2424
2525namespace {
2626
27- using testing::NotNull;
2827using testing::IsEmpty;
2928using testing::Not;
29+ using testing::NotNull;
3030
3131constexpr const char kTriple [] = " riscv64-unknown-linux" ;
3232
3333class RISCVTargetTest : public ::testing::Test {
3434protected:
35- RISCVTargetTest ()
36- : ExegesisTarget_(ExegesisTarget::lookup(Triple(kTriple ))) {
35+ RISCVTargetTest () : ExegesisTarget_(ExegesisTarget::lookup(Triple(kTriple ))) {
3736 EXPECT_THAT (ExegesisTarget_, NotNull ());
3837 std::string error;
3938 Target_ = TargetRegistry::lookupTarget (kTriple , error);
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ void InitializeRISCVExegesisTarget();
2525class RISCVTestBase : public ::testing::Test {
2626protected:
2727 RISCVTestBase ()
28- : State(cantFail(LLVMState::Create(" riscv64-unknown-linux" , " generic-rv64" ))) {}
28+ : State(cantFail(
29+ LLVMState::Create (" riscv64-unknown-linux" , " generic-rv64" ))) {}
2930
3031 static void SetUpTestCase () {
3132 LLVMInitializeRISCVTargetInfo ();
You can’t perform that action at this time.
0 commit comments