use of org.graalvm.compiler.lir.gen.ArithmeticLIRGeneratorTool in project graal by oracle.
the class AArch64PointerAddNode method generate.
@Override
public void generate(NodeLIRBuilderTool builder, ArithmeticLIRGeneratorTool gen) {
LIRGeneratorTool tool = builder.getLIRGeneratorTool();
Value x = builder.operand(base);
Value y = builder.operand(offset);
AllocatableValue baseValue = tool.asAllocatable(x);
AllocatableValue baseReference = LIRKind.derivedBaseFromValue(baseValue);
LIRKind kind = LIRKind.combineDerived(tool.getLIRKind(stamp(NodeView.DEFAULT)), baseReference, null);
builder.setResult(this, ((AArch64ArithmeticLIRGenerator) gen).emitBinary(kind, AArch64ArithmeticOp.ADD, true, x, y));
}
Aggregations