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

Side by Side Diff: src/IceInstX8632.h

Issue 680733002: Subzero: Allow delaying Phi lowering until after register allocation. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix vector const undef lowering for phis. Created 6 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/IceInst.cpp ('k') | src/IceInstX8632.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/IceInstX8632.h - Low-level x86 instructions --*- C++ -*-===// 1 //===- subzero/src/IceInstX8632.h - Low-level 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 // This file declares the InstX8632 and OperandX8632 classes and 10 // This file declares the InstX8632 and OperandX8632 classes and
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 uint32_t getEmitInstCount() const override { 380 uint32_t getEmitInstCount() const override {
381 uint32_t Sum = 0; 381 uint32_t Sum = 0;
382 if (Label) 382 if (Label)
383 ++Sum; 383 ++Sum;
384 if (getTargetTrue()) 384 if (getTargetTrue())
385 ++Sum; 385 ++Sum;
386 if (getTargetFalse()) 386 if (getTargetFalse())
387 ++Sum; 387 ++Sum;
388 return Sum; 388 return Sum;
389 } 389 }
390 bool isUnconditionalBranch() const override {
391 return !Label && Condition == CondX86::Br_None;
392 }
393 bool repointEdge(CfgNode *OldNode, CfgNode *NewNode) override;
390 void emit(const Cfg *Func) const override; 394 void emit(const Cfg *Func) const override;
391 void emitIAS(const Cfg *Func) const override; 395 void emitIAS(const Cfg *Func) const override;
392 void dump(const Cfg *Func) const override; 396 void dump(const Cfg *Func) const override;
393 static bool classof(const Inst *Inst) { return isClassof(Inst, Br); } 397 static bool classof(const Inst *Inst) { return isClassof(Inst, Br); }
394 398
395 private: 399 private:
396 InstX8632Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse, 400 InstX8632Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse,
397 const InstX8632Label *Label, CondX86::BrCond Condition); 401 const InstX8632Label *Label, CondX86::BrCond Condition);
398 ~InstX8632Br() override {} 402 ~InstX8632Br() override {}
399 CondX86::BrCond Condition; 403 CondX86::BrCond Condition;
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1541 template <> void InstX8632Pinsr::emitIAS(const Cfg *Func) const; 1545 template <> void InstX8632Pinsr::emitIAS(const Cfg *Func) const;
1542 template <> void InstX8632Movsx::emitIAS(const Cfg *Func) const; 1546 template <> void InstX8632Movsx::emitIAS(const Cfg *Func) const;
1543 template <> void InstX8632Movzx::emitIAS(const Cfg *Func) const; 1547 template <> void InstX8632Movzx::emitIAS(const Cfg *Func) const;
1544 template <> void InstX8632Pmull::emitIAS(const Cfg *Func) const; 1548 template <> void InstX8632Pmull::emitIAS(const Cfg *Func) const;
1545 template <> void InstX8632Pshufd::emitIAS(const Cfg *Func) const; 1549 template <> void InstX8632Pshufd::emitIAS(const Cfg *Func) const;
1546 template <> void InstX8632Shufps::emitIAS(const Cfg *Func) const; 1550 template <> void InstX8632Shufps::emitIAS(const Cfg *Func) const;
1547 1551
1548 } // end of namespace Ice 1552 } // end of namespace Ice
1549 1553
1550 #endif // SUBZERO_SRC_ICEINSTX8632_H 1554 #endif // SUBZERO_SRC_ICEINSTX8632_H
OLDNEW
« no previous file with comments | « src/IceInst.cpp ('k') | src/IceInstX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698