Skip to content

Commit

Permalink
8281122: [IR Framework] Cleanup IR matching code in preparation for J…
Browse files Browse the repository at this point in the history
…DK-8280378

Reviewed-by: thartmann, kvn
  • Loading branch information
chhagedorn committed Mar 3, 2022
1 parent d0eb6fa commit 2da6777
Show file tree
Hide file tree
Showing 56 changed files with 2,739 additions and 752 deletions.
8 changes: 4 additions & 4 deletions test/hotspot/jtreg/compiler/lib/ir_framework/IR.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -23,7 +23,7 @@

package compiler.lib.ir_framework;

import compiler.lib.ir_framework.driver.IRViolationException;
import compiler.lib.ir_framework.driver.irmatching.IRViolationException;

import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
Expand Down Expand Up @@ -58,8 +58,8 @@
* If the specified preconditions fail, then the framework does not apply the IR rule. These preconditions can be
* set with {@link #applyIf()}, {@link #applyIfNot()}, {@link #applyIfAnd()}, or {@link #applyIfOr()}.
* <p>
* Examples on how to write tests with IR rules can be found in {@link jdk.test.lib.hotspot.ir_framework.examples.IRExample}
* and also as part of the internal testing in {@link jdk.test.lib.hotspot.ir_framework.tests.TestIRMatching}.
* Examples on how to write tests with IR rules can be found in {@link ir_framework.examples.IRExample}
* and also as part of the internal testing in {@link ir_framework.tests.TestIRMatching}.
*
* @see Test
* @see IRNode
Expand Down
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/compiler/lib/ir_framework/IRNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

package compiler.lib.ir_framework;

import compiler.lib.ir_framework.driver.IRMatcher;
import compiler.lib.ir_framework.driver.irmatching.IRMatcher;
import compiler.lib.ir_framework.shared.*;
import jdk.test.lib.Platform;
import sun.hotspot.WhiteBox;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -24,6 +24,8 @@
package compiler.lib.ir_framework;

import compiler.lib.ir_framework.driver.*;
import compiler.lib.ir_framework.driver.irmatching.IRMatcher;
import compiler.lib.ir_framework.driver.irmatching.IRViolationException;
import compiler.lib.ir_framework.shared.*;
import compiler.lib.ir_framework.test.*;
import jdk.test.lib.Platform;
Expand Down Expand Up @@ -603,11 +605,11 @@ private void reportScenarioFailures(Map<Scenario, Exception> exceptionMap) {
// Print stack trace otherwise
StringWriter errors = new StringWriter();
e.printStackTrace(new PrintWriter(errors));
builder.append(errors.toString());
builder.append(errors);
}
builder.append(System.lineSeparator());
}
System.err.println(builder.toString());
System.err.println(builder);
if (!VERBOSE && !REPORT_STDOUT && !TESTLIST && !EXCLUDELIST) {
// Provide a hint to the user how to get additional output/debugging information.
System.err.println(RERUN_HINT);
Expand Down
Loading

1 comment on commit 2da6777

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.