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

Side by Side Diff: src/IceTargetLowering.h

Issue 1141213004: Subzero: Fold icmp into br/select lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove unnecessary break statement Created 5 years, 7 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
OLDNEW
1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- C++ -*-===// 1 //===- subzero/src/IceTargetLowering.h - Lowering interface -----*- 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 TargetLowering, LoweringContext, and 10 // This file declares the TargetLowering, LoweringContext, and
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 virtual void emit(const ConstantUndef *C) const = 0; 215 virtual void emit(const ConstantUndef *C) const = 0;
216 virtual void emit(const ConstantInteger32 *C) const = 0; 216 virtual void emit(const ConstantInteger32 *C) const = 0;
217 virtual void emit(const ConstantInteger64 *C) const = 0; 217 virtual void emit(const ConstantInteger64 *C) const = 0;
218 virtual void emit(const ConstantFloat *C) const = 0; 218 virtual void emit(const ConstantFloat *C) const = 0;
219 virtual void emit(const ConstantDouble *C) const = 0; 219 virtual void emit(const ConstantDouble *C) const = 0;
220 220
221 // Performs target-specific argument lowering. 221 // Performs target-specific argument lowering.
222 virtual void lowerArguments() = 0; 222 virtual void lowerArguments() = 0;
223 223
224 virtual void initNodeForLowering(CfgNode *) {}
224 virtual void addProlog(CfgNode *Node) = 0; 225 virtual void addProlog(CfgNode *Node) = 0;
225 virtual void addEpilog(CfgNode *Node) = 0; 226 virtual void addEpilog(CfgNode *Node) = 0;
226 227
227 virtual ~TargetLowering() {} 228 virtual ~TargetLowering() {}
228 229
229 protected: 230 protected:
230 explicit TargetLowering(Cfg *Func); 231 explicit TargetLowering(Cfg *Func);
231 virtual void lowerAlloca(const InstAlloca *Inst) = 0; 232 virtual void lowerAlloca(const InstAlloca *Inst) = 0;
232 virtual void lowerArithmetic(const InstArithmetic *Inst) = 0; 233 virtual void lowerArithmetic(const InstArithmetic *Inst) = 0;
233 virtual void lowerAssign(const InstAssign *Inst) = 0; 234 virtual void lowerAssign(const InstAssign *Inst) = 0;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 virtual void lowerConstants() const = 0; 324 virtual void lowerConstants() const = 0;
324 325
325 protected: 326 protected:
326 explicit TargetDataLowering(GlobalContext *Ctx) : Ctx(Ctx) {} 327 explicit TargetDataLowering(GlobalContext *Ctx) : Ctx(Ctx) {}
327 GlobalContext *Ctx; 328 GlobalContext *Ctx;
328 }; 329 };
329 330
330 } // end of namespace Ice 331 } // end of namespace Ice
331 332
332 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 333 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW
« no previous file with comments | « src/IceInst.h ('k') | src/IceTargetLowering.cpp » ('j') | src/IceTargetLoweringX8632.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698