diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-04-07 15:26:35 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-04-08 08:43:50 +0100 |
commit | b55f835d66a61e5da6fc1895ba5a0482868c9552 (patch) | |
tree | 44659a826aeadcf2bf176c2e8d31108ba64c88eb /compiler/optimizing/nodes.h | |
parent | 427ca38b0a6c6fd7dc0dbb380619e2b91b56cf1c (diff) | |
download | art-b55f835d66a61e5da6fc1895ba5a0482868c9552.zip art-b55f835d66a61e5da6fc1895ba5a0482868c9552.tar.gz art-b55f835d66a61e5da6fc1895ba5a0482868c9552.tar.bz2 |
Test control flow instruction with optimizing compiler.
Add support for basic instructions to implement these tests.
Change-Id: I3870bf9301599043b3511522bb49dc6364c9b4c0
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index d1f672f..adea0ba 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -227,6 +227,7 @@ class HBasicBlock : public ArenaObject { M(LoadLocal) \ M(Local) \ M(NewInstance) \ + M(Not) \ M(ParameterValue) \ M(PushArgument) \ M(Return) \ @@ -740,6 +741,18 @@ class HParameterValue : public HTemplateInstruction<0> { DISALLOW_COPY_AND_ASSIGN(HParameterValue); }; +class HNot : public HTemplateInstruction<1> { + public: + explicit HNot(HInstruction* input) { + SetRawInputAt(0, input); + } + + DECLARE_INSTRUCTION(Not); + + private: + DISALLOW_COPY_AND_ASSIGN(HNot); +}; + class HGraphVisitor : public ValueObject { public: explicit HGraphVisitor(HGraph* graph) : graph_(graph) { } |