graal/com.oracle.graal.compiler.hsail.test.infra/src/com/oracle/graal/compiler/hsail/test/infra/GraalKernelTester.java
Print this page
@@ -28,10 +28,11 @@
* for which the HSAIL code comes from the Graal compiler.
*/
import com.oracle.graal.compiler.hsail.HSAILCompilationResult;
import java.lang.reflect.Method;
import java.io.*;
+import static com.oracle.graal.phases.GraalOptions.*;
public abstract class GraalKernelTester extends KernelTester {
HSAILCompilationResult hsailCompResult;
private boolean showHsailSource = false;
@@ -59,6 +60,17 @@
}
}
return hsailSource;
}
+ public boolean aggressiveInliningEnabled() {
+ return (InlineEverything.getValue());
+ }
+
+ public boolean canHandleHSAILMethodCalls() {
+ // needs 2 things, backend needs to be able to generate such calls, and target needs to be
+ // able to run them
+ boolean canGenerateCalls = false; // not implemented yet
+ boolean canExecuteCalls = runningOnSimulator();
+ return (canGenerateCalls && canExecuteCalls);
+ }
}