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

Side by Side Diff: src/IceInst.h

Issue 1127963004: Subzero ARM: lowerArguments (GPR), basic legalize(), and lowerRet(i32, i64). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: oops cleanup Created 5 years, 7 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 | « no previous file | src/IceInst.cpp » ('j') | src/IceInstARM32.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceInst.h - High-level instructions ----------*- C++ -*-===// 1 //===- subzero/src/IceInst.h - High-level 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 // This file declares the Inst class and its target-independent 10 // This file declares the Inst class and its target-independent
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 static bool classof(const Inst *Inst) { return Inst->getKind() >= Target; } 916 static bool classof(const Inst *Inst) { return Inst->getKind() >= Target; }
917 917
918 protected: 918 protected:
919 InstTarget(Cfg *Func, InstKind Kind, SizeT MaxSrcs, Variable *Dest) 919 InstTarget(Cfg *Func, InstKind Kind, SizeT MaxSrcs, Variable *Dest)
920 : Inst(Func, Kind, MaxSrcs, Dest) { 920 : Inst(Func, Kind, MaxSrcs, Dest) {
921 assert(Kind >= Target); 921 assert(Kind >= Target);
922 } 922 }
923 ~InstTarget() override {} 923 ~InstTarget() override {}
924 }; 924 };
925 925
926 bool checkForRedundantAssign(const Variable *Dest, const Operand *Source);
927
926 } // end of namespace Ice 928 } // end of namespace Ice
927 929
928 namespace llvm { 930 namespace llvm {
929 931
930 // Override the default ilist traits so that Inst's private ctor and 932 // Override the default ilist traits so that Inst's private ctor and
931 // deleted dtor aren't invoked. 933 // deleted dtor aren't invoked.
932 template <> 934 template <>
933 struct ilist_traits<Ice::Inst> : public ilist_default_traits<Ice::Inst> { 935 struct ilist_traits<Ice::Inst> : public ilist_default_traits<Ice::Inst> {
934 Ice::Inst *createSentinel() const { 936 Ice::Inst *createSentinel() const {
935 return static_cast<Ice::Inst *>(&Sentinel); 937 return static_cast<Ice::Inst *>(&Sentinel);
936 } 938 }
937 static void destroySentinel(Ice::Inst *) {} 939 static void destroySentinel(Ice::Inst *) {}
938 Ice::Inst *provideInitialHead() const { return createSentinel(); } 940 Ice::Inst *provideInitialHead() const { return createSentinel(); }
939 Ice::Inst *ensureHead(Ice::Inst *) const { return createSentinel(); } 941 Ice::Inst *ensureHead(Ice::Inst *) const { return createSentinel(); }
940 static void noteHead(Ice::Inst *, Ice::Inst *) {} 942 static void noteHead(Ice::Inst *, Ice::Inst *) {}
941 void deleteNode(Ice::Inst *) {} 943 void deleteNode(Ice::Inst *) {}
942 944
943 private: 945 private:
944 mutable ilist_half_node<Ice::Inst> Sentinel; 946 mutable ilist_half_node<Ice::Inst> Sentinel;
945 }; 947 };
946 948
947 } // end of namespace llvm 949 } // end of namespace llvm
948 950
949 #endif // SUBZERO_SRC_ICEINST_H 951 #endif // SUBZERO_SRC_ICEINST_H
OLDNEW
« no previous file with comments | « no previous file | src/IceInst.cpp » ('j') | src/IceInstARM32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698