OLD | NEW |
---|---|
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 Loading... | |
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 { |
John
2015/10/12 15:35:16
the previous (inline) method is defined in a singl
Jim Stichnoth
2015/10/12 17:27:31
(same answer as before)
| |
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 Loading... | |
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 |
OLD | NEW |