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 9
9
#include " ../Common/AssemblerUtils.h"
10
10
#include " LlvmState.h"
11
11
#include " MCInstrDescView.h"
12
- #include " RISCVInstrInfo.h"
13
12
#include " ParallelSnippetGenerator.h"
13
+ #include " RISCVInstrInfo.h"
14
14
#include " RegisterAliasing.h"
15
15
#include " SerialSnippetGenerator.h"
16
16
#include " TestBase.h"
@@ -44,12 +44,14 @@ class RISCVSnippetGeneratorTest : public RISCVTestBase {
44
44
SnippetGeneratorT Generator;
45
45
};
46
46
47
- using RISCVSerialSnippetGeneratorTest = RISCVSnippetGeneratorTest<SerialSnippetGenerator>;
47
+ using RISCVSerialSnippetGeneratorTest =
48
+ RISCVSnippetGeneratorTest<SerialSnippetGenerator>;
48
49
49
50
using RISCVParallelSnippetGeneratorTest =
50
51
RISCVSnippetGeneratorTest<ParallelSnippetGenerator>;
51
52
52
- TEST_F (RISCVSerialSnippetGeneratorTest, ImplicitSelfDependencyThroughExplicitRegs) {
53
+ TEST_F (RISCVSerialSnippetGeneratorTest,
54
+ ImplicitSelfDependencyThroughExplicitRegs) {
53
55
// - ADD
54
56
// - Op0 Explicit Def RegClass(GPR)
55
57
// - Op1 Explicit Use RegClass(GPR)
Original file line number Diff line number Diff line change 17
17
#include " gmock/gmock.h"
18
18
#include " gtest/gtest.h"
19
19
20
- namespace llvm {
20
+ namespace llvm {
21
21
namespace exegesis {
22
22
23
23
void InitializeRISCVExegesisTarget ();
24
24
25
25
namespace {
26
26
27
- using testing::NotNull;
28
27
using testing::IsEmpty;
29
28
using testing::Not;
29
+ using testing::NotNull;
30
30
31
31
constexpr const char kTriple [] = " riscv64-unknown-linux" ;
32
32
33
33
class RISCVTargetTest : public ::testing::Test {
34
34
protected:
35
- RISCVTargetTest ()
36
- : ExegesisTarget_(ExegesisTarget::lookup(Triple(kTriple ))) {
35
+ RISCVTargetTest () : ExegesisTarget_(ExegesisTarget::lookup(Triple(kTriple ))) {
37
36
EXPECT_THAT (ExegesisTarget_, NotNull ());
38
37
std::string error;
39
38
Target_ = TargetRegistry::lookupTarget (kTriple , error);
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ void InitializeRISCVExegesisTarget();
25
25
class RISCVTestBase : public ::testing::Test {
26
26
protected:
27
27
RISCVTestBase ()
28
- : State(cantFail(LLVMState::Create(" riscv64-unknown-linux" , " generic-rv64" ))) {}
28
+ : State(cantFail(
29
+ LLVMState::Create (" riscv64-unknown-linux" , " generic-rv64" ))) {}
29
30
30
31
static void SetUpTestCase () {
31
32
LLVMInitializeRISCVTargetInfo ();
You can’t perform that action at this time.
0 commit comments