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

Side by Side Diff: src/IceInstARM32.h

Issue 1418313003: Handle branch relative to pc in ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 5 years, 1 month 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/IceAssemblerARM32.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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 ++Sum; 854 ++Sum;
855 if (getTargetFalse()) 855 if (getTargetFalse())
856 ++Sum; 856 ++Sum;
857 return Sum; 857 return Sum;
858 } 858 }
859 bool isUnconditionalBranch() const override { 859 bool isUnconditionalBranch() const override {
860 return getPredicate() == CondARM32::AL; 860 return getPredicate() == CondARM32::AL;
861 } 861 }
862 bool repointEdges(CfgNode *OldNode, CfgNode *NewNode) override; 862 bool repointEdges(CfgNode *OldNode, CfgNode *NewNode) override;
863 void emit(const Cfg *Func) const override; 863 void emit(const Cfg *Func) const override;
864 void emitIAS(const Cfg *Func) const override;
864 void dump(const Cfg *Func) const override; 865 void dump(const Cfg *Func) const override;
865 static bool classof(const Inst *Inst) { return isClassof(Inst, Br); } 866 static bool classof(const Inst *Inst) { return isClassof(Inst, Br); }
866 867
867 private: 868 private:
868 InstARM32Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse, 869 InstARM32Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse,
869 const InstARM32Label *Label, CondARM32::Cond Predicate); 870 const InstARM32Label *Label, CondARM32::Cond Predicate);
870 871
871 const CfgNode *TargetTrue; 872 const CfgNode *TargetTrue;
872 const CfgNode *TargetFalse; 873 const CfgNode *TargetFalse;
873 const InstARM32Label *Label; // Intra-block branch target 874 const InstARM32Label *Label; // Intra-block branch target
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 // default implementations. Without this, there is the possibility of ODR 1229 // default implementations. Without this, there is the possibility of ODR
1229 // violations and link errors. 1230 // violations and link errors.
1230 1231
1231 template <> void InstARM32Ldr::emit(const Cfg *Func) const; 1232 template <> void InstARM32Ldr::emit(const Cfg *Func) const;
1232 template <> void InstARM32Movw::emit(const Cfg *Func) const; 1233 template <> void InstARM32Movw::emit(const Cfg *Func) const;
1233 template <> void InstARM32Movt::emit(const Cfg *Func) const; 1234 template <> void InstARM32Movt::emit(const Cfg *Func) const;
1234 1235
1235 } // end of namespace Ice 1236 } // end of namespace Ice
1236 1237
1237 #endif // SUBZERO_SRC_ICEINSTARM32_H 1238 #endif // SUBZERO_SRC_ICEINSTARM32_H
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698