From 88cb1755e1d6acaed0f66ce65d7a2a4465053342 Mon Sep 17 00:00:00 2001 From: Roland Levillain Date: Mon, 20 Oct 2014 16:36:47 +0100 Subject: Implement int negate instruction in the optimizing compiler. - Add support for the neg-int (integer two's complement negate) instruction in the optimizing compiler. - Add a HNeg node type for control-flow graphs and an intermediate HUnaryOperation base class. - Generate ARM, x86 and x86-64 code for integer HNeg nodes. Change-Id: I72fd3e1e5311a75c38a8cb665a9211a20325a42e --- compiler/optimizing/builder.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/optimizing/builder.h') diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h index e68cdb0b1..90e50ad95 100644 --- a/compiler/optimizing/builder.h +++ b/compiler/optimizing/builder.h @@ -94,6 +94,9 @@ class HGraphBuilder : public ValueObject { // of the method. bool InitializeParameters(uint16_t number_of_parameters); + template + void Unop_12x(const Instruction& instruction, Primitive::Type type); + template void Binop_23x(const Instruction& instruction, Primitive::Type type); -- cgit v1.2.3