Mercurial > hg > truffle
diff graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGeneratorTool.java @ 17314:3b6759c384a9
Introduce emitLoadConstant in LIRGeneratorTool.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Thu, 02 Oct 2014 10:48:17 +0200 |
parents | c6a1215d025b |
children | 2915eff532d4 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGeneratorTool.java Thu Oct 02 10:36:12 2014 +0200 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGeneratorTool.java Thu Oct 02 10:48:17 2014 +0200 @@ -52,6 +52,8 @@ void doBlockEnd(AbstractBlock<?> block); + Value emitLoadConstant(Constant constant); + Value emitLoad(LIRKind kind, Value address, LIRFrameState state); void emitStore(LIRKind kind, Value address, Value input, LIRFrameState state); @@ -84,26 +86,6 @@ Variable emitForeignCall(ForeignCallLinkage linkage, LIRFrameState state, Value... args); - /** - * Checks whether the supplied constant can be used without loading it into a register for most - * operations, i.e., for commonly used arithmetic, logical, and comparison operations. - * - * @param c The constant to check. - * @return True if the constant can be used directly, false if the constant needs to be in a - * register. - */ - boolean canInlineConstant(Constant c); - - /** - * Checks whether the supplied constant can be used without loading it into a register for store - * operations, i.e., on the right hand side of a memory access. - * - * @param c The constant to check. - * @return True if the constant can be used directly, false if the constant needs to be in a - * register. - */ - boolean canStoreConstant(Constant c); - RegisterAttributes attributes(Register register); /**