Search in sources :

Example 1 with SPARCIndexedAddressValue

use of org.graalvm.compiler.lir.sparc.SPARCIndexedAddressValue in project graal by oracle.

the class SPARCIndexedAddressNode method generate.

@Override
public void generate(NodeLIRBuilderTool gen) {
    SPARCLIRGenerator tool = (SPARCLIRGenerator) gen.getLIRGeneratorTool();
    AllocatableValue baseValue = tool.asAllocatable(gen.operand(base));
    AllocatableValue indexValue = tool.asAllocatable(gen.operand(index));
    AllocatableValue baseReference = LIRKind.derivedBaseFromValue(baseValue);
    AllocatableValue indexReference = LIRKind.derivedBaseFromValue(indexValue);
    LIRKind kind = LIRKind.combineDerived(tool.getLIRKind(stamp(NodeView.DEFAULT)), baseReference, indexReference);
    gen.setResult(this, new SPARCIndexedAddressValue(kind, baseValue, indexValue));
}
Also used : SPARCIndexedAddressValue(org.graalvm.compiler.lir.sparc.SPARCIndexedAddressValue) LIRKind(org.graalvm.compiler.core.common.LIRKind) AllocatableValue(jdk.vm.ci.meta.AllocatableValue)

Aggregations

AllocatableValue (jdk.vm.ci.meta.AllocatableValue)1 LIRKind (org.graalvm.compiler.core.common.LIRKind)1 SPARCIndexedAddressValue (org.graalvm.compiler.lir.sparc.SPARCIndexedAddressValue)1