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

Side by Side Diff: src/IceInstX86Base.h

Issue 1392383003: Subzero: Consider all instruction variables for register preference. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 5 years, 2 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/IceInstVarIter.h ('k') | src/IceRegAlloc.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/IceInstX86Base.h - Generic x86 instructions -*- C++ -*--===// 1 //===- subzero/src/IceInstX86Base.h - Generic x86 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 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 InstX86BaseMovlike() = delete; 970 InstX86BaseMovlike() = delete;
971 InstX86BaseMovlike(const InstX86BaseMovlike &) = delete; 971 InstX86BaseMovlike(const InstX86BaseMovlike &) = delete;
972 InstX86BaseMovlike &operator=(const InstX86BaseMovlike &) = delete; 972 InstX86BaseMovlike &operator=(const InstX86BaseMovlike &) = delete;
973 973
974 public: 974 public:
975 using Base = InstX86BaseMovlike<Machine, K>; 975 using Base = InstX86BaseMovlike<Machine, K>;
976 976
977 bool isRedundantAssign() const override { 977 bool isRedundantAssign() const override {
978 return checkForRedundantAssign(this->getDest(), this->getSrc(0)); 978 return checkForRedundantAssign(this->getDest(), this->getSrc(0));
979 } 979 }
980 bool isSimpleAssign() const override { return true; } 980 bool isVarAssign() const override {
981 return llvm::isa<Variable>(this->getSrc(0));
982 }
981 void dump(const Cfg *Func) const override { 983 void dump(const Cfg *Func) const override {
982 if (!BuildDefs::dump()) 984 if (!BuildDefs::dump())
983 return; 985 return;
984 Ostream &Str = Func->getContext()->getStrDump(); 986 Ostream &Str = Func->getContext()->getStrDump();
985 Str << Opcode << "." << this->getDest()->getType() << " "; 987 Str << Opcode << "." << this->getDest()->getType() << " ";
986 this->dumpDest(Func); 988 this->dumpDest(Func);
987 Str << ", "; 989 Str << ", ";
988 this->dumpSources(Func); 990 this->dumpSources(Func);
989 } 991 }
990 static bool classof(const Inst *Inst) { 992 static bool classof(const Inst *Inst) {
(...skipping 2228 matching lines...) Expand 10 before | Expand all | Expand 10 after
3219 &InstX86Base<Machine>::Traits::Assembler::psrl}; \ 3221 &InstX86Base<Machine>::Traits::Assembler::psrl}; \
3220 } \ 3222 } \
3221 } 3223 }
3222 3224
3223 } // end of namespace X86Internal 3225 } // end of namespace X86Internal
3224 } // end of namespace Ice 3226 } // end of namespace Ice
3225 3227
3226 #include "IceInstX86BaseImpl.h" 3228 #include "IceInstX86BaseImpl.h"
3227 3229
3228 #endif // SUBZERO_SRC_ICEINSTX86BASE_H 3230 #endif // SUBZERO_SRC_ICEINSTX86BASE_H
OLDNEW
« no previous file with comments | « src/IceInstVarIter.h ('k') | src/IceRegAlloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698