Mercurial > hg > truffle
comparison graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGeneratorTool.java @ 19131:cd49455040c1
LIRGeneratorTool: change return type from Value to Variable for most emit methods.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Wed, 04 Feb 2015 14:33:27 +0100 |
parents | 76553fa0f02b |
children | 8073a99a1620 |
comparison
equal
deleted
inserted
replaced
19130:6fce03279f0a | 19131:cd49455040c1 |
---|---|
52 | 52 |
53 void doBlockEnd(AbstractBlock<?> block); | 53 void doBlockEnd(AbstractBlock<?> block); |
54 | 54 |
55 Value emitLoadConstant(LIRKind kind, Constant constant); | 55 Value emitLoadConstant(LIRKind kind, Constant constant); |
56 | 56 |
57 Value emitLoad(LIRKind kind, Value address, LIRFrameState state); | 57 Variable emitLoad(LIRKind kind, Value address, LIRFrameState state); |
58 | 58 |
59 void emitStore(LIRKind kind, Value address, Value input, LIRFrameState state); | 59 void emitStore(LIRKind kind, Value address, Value input, LIRFrameState state); |
60 | 60 |
61 void emitNullCheck(Value address, LIRFrameState state); | 61 void emitNullCheck(Value address, LIRFrameState state); |
62 | 62 |
63 Value emitCompareAndSwap(Value address, Value expectedValue, Value newValue, Value trueValue, Value falseValue); | 63 Variable emitCompareAndSwap(Value address, Value expectedValue, Value newValue, Value trueValue, Value falseValue); |
64 | 64 |
65 /** | 65 /** |
66 * Emit an atomic read-and-add instruction. | 66 * Emit an atomic read-and-add instruction. |
67 * | 67 * |
68 * @param address address of the value to be read and written | 68 * @param address address of the value to be read and written |
110 */ | 110 */ |
111 void emitData(AllocatableValue dst, byte[] data); | 111 void emitData(AllocatableValue dst, byte[] data); |
112 | 112 |
113 Value emitAddress(Value base, long displacement, Value index, int scale); | 113 Value emitAddress(Value base, long displacement, Value index, int scale); |
114 | 114 |
115 Value emitAddress(StackSlotValue slot); | 115 Variable emitAddress(StackSlotValue slot); |
116 | 116 |
117 void emitMembar(int barriers); | 117 void emitMembar(int barriers); |
118 | 118 |
119 void emitUnwind(Value operand); | 119 void emitUnwind(Value operand); |
120 | 120 |
177 | 177 |
178 void emitStrategySwitch(SwitchStrategy strategy, Variable key, LabelRef[] keyTargets, LabelRef defaultTarget); | 178 void emitStrategySwitch(SwitchStrategy strategy, Variable key, LabelRef[] keyTargets, LabelRef defaultTarget); |
179 | 179 |
180 CallingConvention getCallingConvention(); | 180 CallingConvention getCallingConvention(); |
181 | 181 |
182 Value emitBitCount(Value operand); | 182 Variable emitBitCount(Value operand); |
183 | 183 |
184 Value emitBitScanForward(Value operand); | 184 Variable emitBitScanForward(Value operand); |
185 | 185 |
186 Value emitBitScanReverse(Value operand); | 186 Variable emitBitScanReverse(Value operand); |
187 | 187 |
188 Value emitByteSwap(Value operand); | 188 Variable emitByteSwap(Value operand); |
189 | 189 |
190 Value emitArrayEquals(Kind kind, Value array1, Value array2, Value length); | 190 Variable emitArrayEquals(Kind kind, Value array1, Value array2, Value length); |
191 | 191 |
192 void emitBlackhole(Value operand); | 192 void emitBlackhole(Value operand); |
193 | 193 |
194 @SuppressWarnings("unused") | 194 @SuppressWarnings("unused") |
195 default Value emitCountLeadingZeros(Value value) { | 195 default Value emitCountLeadingZeros(Value value) { |