Skip to content

Commit 2f133e4

Browse files
committed
svm: ignore unlikely-arg-type warnings related to CPU features
1 parent 8e992af commit 2f133e4

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

substratevm/src/com.oracle.svm.core.graal.amd64/src/com/oracle/svm/core/graal/amd64/AMD64CalleeSavedRegisters.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ private final class XMMSaverRestorer {
257257
this.hostedCPUFeatures = ImageSingletons.lookup(CPUFeatureAccess.class).buildtimeCPUFeatures();
258258
}
259259

260+
@SuppressWarnings("unlikely-arg-type")
260261
public void emit() {
261262
assert isRuntimeCompilationEnabled == DeoptimizationSupport.enabled() : "JIT compilation enabled after registering singleton?";
262263
if (isRuntimeCompilationEnabled && AMD64CPUFeatureAccess.canUpdateCPUFeatures()) {
@@ -326,6 +327,7 @@ public void emit() {
326327
* Emits a {@linkplain #emitRuntimeFeatureTest runtime feature check} if the {@code feature}
327328
* is not statically available.
328329
*/
330+
@SuppressWarnings("unlikely-arg-type")
329331
private void testFeature(CPUFeature feature, Label falseLabel) {
330332
if (!hostedCPUFeatures.contains(feature)) {
331333
emitRuntimeFeatureTest(feature, falseLabel);
@@ -338,6 +340,7 @@ private void testFeature(CPUFeature feature, Label falseLabel) {
338340
* was {@linkplain #enterAvxRegion(CPUFeature) entered}, it must be
339341
* {@linkplain #leaveAvxRegion(CPUFeature) left} before calling this method.
340342
*/
343+
@SuppressWarnings("unlikely-arg-type")
341344
private void jumpToEndOrReturn(CPUFeature feature, Label end) throws StaticFeatureException {
342345
if (hostedCPUFeatures.contains(feature)) {
343346
throw new StaticFeatureException();

substratevm/src/com.oracle.svm.core.graal.amd64/src/com/oracle/svm/core/graal/amd64/SubstrateAMD64Backend.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ public SubstrateAMD64Backend(Providers providers) {
195195
* Returns {@code true} if a call from run-time compiled code to AOT compiled code is an AVX-SSE
196196
* transition. For AOT compilations, this always returns {@code false}.
197197
*/
198+
@SuppressWarnings("unlikely-arg-type")
198199
public static boolean runtimeToAOTIsAvxSseTransition(TargetDescription target) {
199200
if (SubstrateUtil.HOSTED) {
200201
// hosted does not need to care about this

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/cpufeature/RuntimeCPUFeatureCheckImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ public static ResolvedJavaField getMaskField(MetaAccessProvider metaAccess) {
326326
* available at image build time.
327327
*/
328328
@Fold
329+
@SuppressWarnings("unlikely-arg-type")
329330
public static EnumSet<?> removeStaticFeatures(EnumSet<?> features) {
330331
EnumSet<?> copy = EnumSet.copyOf(features);
331332
EnumSet<?> featuresToBeRemoved = getStaticFeatures();

0 commit comments

Comments
 (0)