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

Side by Side Diff: src/IceInstX86Base.h

Issue 1234803007: Introduction of improved switch lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Safer check for 0 size type Created 5 years, 5 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/IceInstARM32.cpp ('k') | src/IceInstX86BaseImpl.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/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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 ++Sum; 342 ++Sum;
343 if (getTargetTrue()) 343 if (getTargetTrue())
344 ++Sum; 344 ++Sum;
345 if (getTargetFalse()) 345 if (getTargetFalse())
346 ++Sum; 346 ++Sum;
347 return Sum; 347 return Sum;
348 } 348 }
349 bool isUnconditionalBranch() const override { 349 bool isUnconditionalBranch() const override {
350 return !Label && Condition == InstX86Base<Machine>::Traits::Cond::Br_None; 350 return !Label && Condition == InstX86Base<Machine>::Traits::Cond::Br_None;
351 } 351 }
352 bool repointEdge(CfgNode *OldNode, CfgNode *NewNode) override; 352 bool repointEdges(CfgNode *OldNode, CfgNode *NewNode) override;
353 void emit(const Cfg *Func) const override; 353 void emit(const Cfg *Func) const override;
354 void emitIAS(const Cfg *Func) const override; 354 void emitIAS(const Cfg *Func) const override;
355 void dump(const Cfg *Func) const override; 355 void dump(const Cfg *Func) const override;
356 static bool classof(const Inst *Inst) { 356 static bool classof(const Inst *Inst) {
357 return InstX86Base<Machine>::isClassof(Inst, InstX86Base<Machine>::Br); 357 return InstX86Base<Machine>::isClassof(Inst, InstX86Base<Machine>::Br);
358 } 358 }
359 359
360 private: 360 private:
361 InstX86Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse, 361 InstX86Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse,
362 const InstX86Label<Machine> *Label, 362 const InstX86Label<Machine> *Label,
(...skipping 2776 matching lines...) Expand 10 before | Expand all | Expand 10 after
3139 &InstX86Base<Machine>::Traits::Assembler::psrl}; \ 3139 &InstX86Base<Machine>::Traits::Assembler::psrl}; \
3140 } \ 3140 } \
3141 } 3141 }
3142 3142
3143 } // end of namespace X86Internal 3143 } // end of namespace X86Internal
3144 } // end of namespace Ice 3144 } // end of namespace Ice
3145 3145
3146 #include "IceInstX86BaseImpl.h" 3146 #include "IceInstX86BaseImpl.h"
3147 3147
3148 #endif // SUBZERO_SRC_ICEINSTX86BASE_H 3148 #endif // SUBZERO_SRC_ICEINSTX86BASE_H
OLDNEW
« no previous file with comments | « src/IceInstARM32.cpp ('k') | src/IceInstX86BaseImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698