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

Side by Side Diff: src/IceInst.h

Issue 1837663002: Initial Subzero WASM prototype. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review feedback and merging master Created 4 years, 8 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/IceDefs.h ('k') | src/IceTranslator.h » ('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/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 /// \file 10 /// \file
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 InstPhi &operator=(const InstPhi &) = delete; 617 InstPhi &operator=(const InstPhi &) = delete;
618 618
619 public: 619 public:
620 static InstPhi *create(Cfg *Func, SizeT MaxSrcs, Variable *Dest) { 620 static InstPhi *create(Cfg *Func, SizeT MaxSrcs, Variable *Dest) {
621 return new (Func->allocate<InstPhi>()) InstPhi(Func, MaxSrcs, Dest); 621 return new (Func->allocate<InstPhi>()) InstPhi(Func, MaxSrcs, Dest);
622 } 622 }
623 void addArgument(Operand *Source, CfgNode *Label); 623 void addArgument(Operand *Source, CfgNode *Label);
624 Operand *getOperandForTarget(CfgNode *Target) const; 624 Operand *getOperandForTarget(CfgNode *Target) const;
625 void clearOperandForTarget(CfgNode *Target); 625 void clearOperandForTarget(CfgNode *Target);
626 CfgNode *getLabel(SizeT Index) const { return Labels[Index]; } 626 CfgNode *getLabel(SizeT Index) const { return Labels[Index]; }
627 void setLabel(SizeT Index, CfgNode *Label) { Labels[Index] = Label; }
627 void livenessPhiOperand(LivenessBV &Live, CfgNode *Target, 628 void livenessPhiOperand(LivenessBV &Live, CfgNode *Target,
628 Liveness *Liveness); 629 Liveness *Liveness);
629 Inst *lower(Cfg *Func); 630 Inst *lower(Cfg *Func);
630 void dump(const Cfg *Func) const override; 631 void dump(const Cfg *Func) const override;
631 static bool classof(const Inst *Instr) { return Instr->getKind() == Phi; } 632 static bool classof(const Inst *Instr) { return Instr->getKind() == Phi; }
632 633
633 private: 634 private:
634 InstPhi(Cfg *Func, SizeT MaxSrcs, Variable *Dest); 635 InstPhi(Cfg *Func, SizeT MaxSrcs, Variable *Dest);
635 void destroy(Cfg *Func) override { 636 void destroy(Cfg *Func) override {
636 Func->deallocateArrayOf<CfgNode *>(Labels); 637 Func->deallocateArrayOf<CfgNode *>(Labels);
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
1001 static void noteHead(Ice::Inst *, Ice::Inst *) {} 1002 static void noteHead(Ice::Inst *, Ice::Inst *) {}
1002 void deleteNode(Ice::Inst *) {} 1003 void deleteNode(Ice::Inst *) {}
1003 1004
1004 private: 1005 private:
1005 mutable ilist_half_node<Ice::Inst> Sentinel; 1006 mutable ilist_half_node<Ice::Inst> Sentinel;
1006 }; 1007 };
1007 1008
1008 } // end of namespace llvm 1009 } // end of namespace llvm
1009 1010
1010 #endif // SUBZERO_SRC_ICEINST_H 1011 #endif // SUBZERO_SRC_ICEINST_H
OLDNEW
« no previous file with comments | « src/IceDefs.h ('k') | src/IceTranslator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698