< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/gen/LIRGenerationResult.java
Print this page
rev 56282 : [mq]: graal
*** 1,7 ****
/*
! * Copyright (c) 2014, 2018, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2014, 2019, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 26,35 ****
--- 26,36 ----
import jdk.internal.vm.compiler.collections.EconomicMap;
import jdk.internal.vm.compiler.collections.Equivalence;
import org.graalvm.compiler.core.common.CompilationIdentifier;
import org.graalvm.compiler.core.common.CompilationIdentifier.Verbosity;
+ import org.graalvm.compiler.core.common.alloc.RegisterAllocationConfig;
import org.graalvm.compiler.debug.DebugContext;
import org.graalvm.compiler.lir.LIR;
import org.graalvm.compiler.lir.LIRInstruction;
import org.graalvm.compiler.lir.framemap.FrameMap;
import org.graalvm.compiler.lir.framemap.FrameMapBuilder;
*** 40,49 ****
--- 41,51 ----
public class LIRGenerationResult {
private final LIR lir;
private final FrameMapBuilder frameMapBuilder;
private FrameMap frameMap;
+ private final RegisterAllocationConfig registerAllocationConfig;
private final CallingConvention callingConvention;
/**
* Records whether the code being generated makes at least one foreign call.
*/
private boolean hasForeignCall;
*** 55,71 ****
/**
* Stores comments about a {@link LIRInstruction} , e.g., which phase created it.
*/
private EconomicMap<LIRInstruction, String> comments;
! public LIRGenerationResult(CompilationIdentifier compilationId, LIR lir, FrameMapBuilder frameMapBuilder, CallingConvention callingConvention) {
this.lir = lir;
this.frameMapBuilder = frameMapBuilder;
this.callingConvention = callingConvention;
this.compilationId = compilationId;
}
/**
* Adds a comment to a {@link LIRInstruction}. Existing comments are replaced.
*/
public final void setComment(LIRInstruction op, String comment) {
DebugContext debug = lir.getDebug();
--- 57,78 ----
/**
* Stores comments about a {@link LIRInstruction} , e.g., which phase created it.
*/
private EconomicMap<LIRInstruction, String> comments;
! public LIRGenerationResult(CompilationIdentifier compilationId, LIR lir, FrameMapBuilder frameMapBuilder, RegisterAllocationConfig registerAllocationConfig, CallingConvention callingConvention) {
this.lir = lir;
this.frameMapBuilder = frameMapBuilder;
+ this.registerAllocationConfig = registerAllocationConfig;
this.callingConvention = callingConvention;
this.compilationId = compilationId;
}
+ public RegisterAllocationConfig getRegisterAllocationConfig() {
+ return registerAllocationConfig;
+ }
+
/**
* Adds a comment to a {@link LIRInstruction}. Existing comments are replaced.
*/
public final void setComment(LIRInstruction op, String comment) {
DebugContext debug = lir.getDebug();
< prev index next >