Mercurial > hg > truffle
view graal/com.oracle.graal.compiler.sparc/src/com/oracle/graal/compiler/sparc/SPARCLIRGenerator.java @ 9612:66db0353f55a
compilation is explicitly given a CallingConvention for the graph being compiled instead of deriving it from a method
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 07 May 2013 23:38:53 +0200 |
parents | 9ee5f3bfa755 |
children | 0c17815817a4 |
line wrap: on
line source
/* * Copyright (c) 2009, 2012, 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. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package com.oracle.graal.compiler.sparc; import com.oracle.graal.api.code.*; import com.oracle.graal.api.meta.*; import com.oracle.graal.compiler.gen.*; import com.oracle.graal.lir.*; import com.oracle.graal.lir.sparc.*; import com.oracle.graal.nodes.*; import com.oracle.graal.nodes.calc.*; import com.oracle.graal.nodes.calc.ConvertNode.Op; import com.oracle.graal.nodes.java.*; /** * This class implements the SPARC specific portion of the LIR generator. */ public class SPARCLIRGenerator extends LIRGenerator { public SPARCLIRGenerator(StructuredGraph graph, CodeCacheProvider runtime, TargetDescription target, FrameMap frameMap, ResolvedJavaMethod method, CallingConvention cc, LIR lir) { super(graph, runtime, target, frameMap, method, cc, lir); // SPARC: Implement lir generator. } @Override public Variable emitMove(Value input) { // SPARC: Auto-generated method stub return null; } @Override protected boolean peephole(ValueNode valueNode) { // SPARC: Auto-generated method stub return false; } @Override protected void emitReturn(Value input) { // SPARC: Auto-generated method stub } @Override public void emitJump(LabelRef label) { @SuppressWarnings("unused") SPARCLIRInstruction instruction = null; // SPARC: Auto-generated method stub } @Override public void emitCompareBranch(Value left, Value right, Condition cond, boolean unorderedIsTrue, LabelRef label) { // SPARC: Auto-generated method stub } @Override public void emitOverflowCheckBranch(LabelRef label, boolean negated) { // SPARC: Auto-generated method stub } @Override public void emitIntegerTestBranch(Value left, Value right, boolean negated, LabelRef label) { // SPARC: Auto-generated method stub } @Override public Variable emitConditionalMove(Value leftVal, Value right, Condition cond, boolean unorderedIsTrue, Value trueValue, Value falseValue) { // SPARC: Auto-generated method stub return null; } @Override public Variable emitIntegerTestMove(Value leftVal, Value right, Value trueValue, Value falseValue) { // SPARC: Auto-generated method stub return null; } @Override protected void emitDirectCall(DirectCallTargetNode callTarget, Value result, Value[] parameters, Value[] temps, LIRFrameState callState) { // SPARC: Auto-generated method stub } @Override protected void emitIndirectCall(IndirectCallTargetNode callTarget, Value result, Value[] parameters, Value[] temps, LIRFrameState callState) { // SPARC: Auto-generated method stub } @Override protected void emitCall(RuntimeCallTarget callTarget, Value result, Value[] arguments, Value[] temps, LIRFrameState info) { // SPARC: Auto-generated method stub } @Override protected void emitSequentialSwitch(Constant[] keyConstants, LabelRef[] keyTargets, LabelRef defaultTarget, Value key) { // SPARC: Auto-generated method stub } @Override protected void emitSwitchRanges(int[] lowKeys, int[] highKeys, LabelRef[] targets, LabelRef defaultTarget, Value key) { // SPARC: Auto-generated method stub } @Override protected void emitTableSwitch(int lowKey, LabelRef defaultTarget, LabelRef[] targets, Value key) { // SPARC: Auto-generated method stub } @Override public void emitBitCount(Variable result, Value operand) { // SPARC: Auto-generated method stub } @Override public void emitBitScanForward(Variable result, Value operand) { // SPARC: Auto-generated method stub } @Override public void emitBitScanReverse(Variable result, Value operand) { // SPARC: Auto-generated method stub } @Override public void emitMathAbs(Variable result, Variable input) { // SPARC: Auto-generated method stub } @Override public void emitMathSqrt(Variable result, Variable input) { // SPARC: Auto-generated method stub } @Override public void emitMathLog(Variable result, Variable input, boolean base10) { // SPARC: Auto-generated method stub } @Override public void emitMathCos(Variable result, Variable input) { // SPARC: Auto-generated method stub } @Override public void emitMathSin(Variable result, Variable input) { // SPARC: Auto-generated method stub } @Override public void emitMathTan(Variable result, Variable input) { // SPARC: Auto-generated method stub } @Override public void emitByteSwap(Variable result, Value operand) { // SPARC: Auto-generated method stub } @Override public boolean canInlineConstant(Constant c) { // SPARC: Auto-generated method stub return false; } @Override public boolean canStoreConstant(Constant c) { // SPARC: Auto-generated method stub return false; } @Override public void emitMove(AllocatableValue dst, Value src) { // SPARC: Auto-generated method stub } @Override public Value emitAddress(Value base, long displacement, Value index, int scale) { // SPARC: Auto-generated method stub return null; } @Override public Value emitLoad(Kind kind, Value address, DeoptimizingNode canTrap) { // SPARC: Auto-generated method stub return null; } @Override public void emitStore(Kind kind, Value address, Value input, DeoptimizingNode canTrap) { // SPARC: Auto-generated method stub } @Override public Value emitAddress(StackSlot address) { // SPARC: Auto-generated method stub return null; } @Override public Value emitNegate(Value input) { // SPARC: Auto-generated method stub return null; } @Override public Value emitAdd(Value a, Value b) { // SPARC: Auto-generated method stub return null; } @Override public Value emitSub(Value a, Value b) { // SPARC: Auto-generated method stub return null; } @Override public Value emitMul(Value a, Value b) { // SPARC: Auto-generated method stub return null; } @Override public Value emitDiv(Value a, Value b, DeoptimizingNode deopting) { // SPARC: Auto-generated method stub return null; } @Override public Value emitRem(Value a, Value b, DeoptimizingNode deopting) { // SPARC: Auto-generated method stub return null; } @Override public Value emitUDiv(Value a, Value b, DeoptimizingNode deopting) { // SPARC: Auto-generated method stub return null; } @Override public Value emitURem(Value a, Value b, DeoptimizingNode deopting) { // SPARC: Auto-generated method stub return null; } @Override public Value emitAnd(Value a, Value b) { // SPARC: Auto-generated method stub return null; } @Override public Value emitOr(Value a, Value b) { // SPARC: Auto-generated method stub return null; } @Override public Value emitXor(Value a, Value b) { // SPARC: Auto-generated method stub return null; } @Override public Value emitShl(Value a, Value b) { // SPARC: Auto-generated method stub return null; } @Override public Value emitShr(Value a, Value b) { // SPARC: Auto-generated method stub return null; } @Override public Value emitUShr(Value a, Value b) { // SPARC: Auto-generated method stub return null; } @Override public Value emitConvert(Op opcode, Value inputVal) { // SPARC: Auto-generated method stub return null; } @Override public void emitMembar(int barriers) { // SPARC: Auto-generated method stub } @Override public void emitDeoptimize(DeoptimizationAction action, DeoptimizingNode deopting) { // SPARC: Auto-generated method stub } @Override public void visitCompareAndSwap(CompareAndSwapNode i) { // SPARC: Auto-generated method stub } @Override public void visitSafepointNode(SafepointNode i) { // SPARC: Auto-generated method stub } @Override public void visitBreakpointNode(BreakpointNode i) { // SPARC: Auto-generated method stub } @Override public void emitUnwind(Value operand) { // SPARC: Auto-generated method stub } @Override public void emitNullCheck(ValueNode v, DeoptimizingNode deopting) { // SPARC: Auto-generated method stub } @Override public void visitInfopointNode(InfopointNode i) { // SPARC: Auto-generated method stub } }