Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: src/IceInstARM32.h

Issue 1234803007: Introduction of improved switch lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Safer check for 0 size type Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceInst.cpp ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceInstARM32.h - ARM32 machine instructions --*- C++ -*-===// 1 //===- subzero/src/IceInstARM32.h - ARM32 machine instructions --*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 ++Sum; 735 ++Sum;
736 if (getTargetTrue()) 736 if (getTargetTrue())
737 ++Sum; 737 ++Sum;
738 if (getTargetFalse()) 738 if (getTargetFalse())
739 ++Sum; 739 ++Sum;
740 return Sum; 740 return Sum;
741 } 741 }
742 bool isUnconditionalBranch() const override { 742 bool isUnconditionalBranch() const override {
743 return getPredicate() == CondARM32::AL; 743 return getPredicate() == CondARM32::AL;
744 } 744 }
745 bool repointEdge(CfgNode *OldNode, CfgNode *NewNode) override; 745 bool repointEdges(CfgNode *OldNode, CfgNode *NewNode) override;
746 void emit(const Cfg *Func) const override; 746 void emit(const Cfg *Func) const override;
747 void emitIAS(const Cfg *Func) const override; 747 void emitIAS(const Cfg *Func) const override;
748 void dump(const Cfg *Func) const override; 748 void dump(const Cfg *Func) const override;
749 static bool classof(const Inst *Inst) { return isClassof(Inst, Br); } 749 static bool classof(const Inst *Inst) { return isClassof(Inst, Br); }
750 750
751 private: 751 private:
752 InstARM32Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse, 752 InstARM32Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse,
753 const InstARM32Label *Label, CondARM32::Cond Predicate); 753 const InstARM32Label *Label, CondARM32::Cond Predicate);
754 754
755 const CfgNode *TargetTrue; 755 const CfgNode *TargetTrue;
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 // Declare partial template specializations of emit() methods that 972 // Declare partial template specializations of emit() methods that
973 // already have default implementations. Without this, there is the 973 // already have default implementations. Without this, there is the
974 // possibility of ODR violations and link errors. 974 // possibility of ODR violations and link errors.
975 975
976 template <> void InstARM32Movw::emit(const Cfg *Func) const; 976 template <> void InstARM32Movw::emit(const Cfg *Func) const;
977 template <> void InstARM32Movt::emit(const Cfg *Func) const; 977 template <> void InstARM32Movt::emit(const Cfg *Func) const;
978 978
979 } // end of namespace Ice 979 } // end of namespace Ice
980 980
981 #endif // SUBZERO_SRC_ICEINSTARM32_H 981 #endif // SUBZERO_SRC_ICEINSTARM32_H
OLDNEW
« no previous file with comments | « src/IceInst.cpp ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698