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

Side by Side Diff: src/IceTargetLowering.h

Issue 291213003: Subzero: Fix x86 floating-point constant emission (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: "Fix" static casting Created 6 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
« no previous file with comments | « src/IceOperand.h ('k') | src/IceTargetLoweringX8632.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/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 and LoweringContext 10 // This file declares the TargetLowering and LoweringContext
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 virtual llvm::SmallBitVector getRegisterSet(RegSetMask Include, 142 virtual llvm::SmallBitVector getRegisterSet(RegSetMask Include,
143 RegSetMask Exclude) const = 0; 143 RegSetMask Exclude) const = 0;
144 virtual const llvm::SmallBitVector &getRegisterSetForType(Type Ty) const = 0; 144 virtual const llvm::SmallBitVector &getRegisterSetForType(Type Ty) const = 0;
145 void regAlloc(); 145 void regAlloc();
146 146
147 virtual void emitVariable(const Variable *Var, const Cfg *Func) const = 0; 147 virtual void emitVariable(const Variable *Var, const Cfg *Func) const = 0;
148 148
149 virtual void addProlog(CfgNode *Node) = 0; 149 virtual void addProlog(CfgNode *Node) = 0;
150 virtual void addEpilog(CfgNode *Node) = 0; 150 virtual void addEpilog(CfgNode *Node) = 0;
151 151
152 virtual void emitConstants() const = 0;
153
152 virtual ~TargetLowering() {} 154 virtual ~TargetLowering() {}
153 155
154 protected: 156 protected:
155 TargetLowering(Cfg *Func) 157 TargetLowering(Cfg *Func)
156 : Func(Func), Ctx(Func->getContext()), HasComputedFrame(false), 158 : Func(Func), Ctx(Func->getContext()), HasComputedFrame(false),
157 StackAdjustment(0) {} 159 StackAdjustment(0) {}
158 virtual void lowerAlloca(const InstAlloca *Inst) = 0; 160 virtual void lowerAlloca(const InstAlloca *Inst) = 0;
159 virtual void lowerArithmetic(const InstArithmetic *Inst) = 0; 161 virtual void lowerArithmetic(const InstArithmetic *Inst) = 0;
160 virtual void lowerAssign(const InstAssign *Inst) = 0; 162 virtual void lowerAssign(const InstAssign *Inst) = 0;
161 virtual void lowerBr(const InstBr *Inst) = 0; 163 virtual void lowerBr(const InstBr *Inst) = 0;
(...skipping 26 matching lines...) Expand all
188 LoweringContext Context; 190 LoweringContext Context;
189 191
190 private: 192 private:
191 TargetLowering(const TargetLowering &) LLVM_DELETED_FUNCTION; 193 TargetLowering(const TargetLowering &) LLVM_DELETED_FUNCTION;
192 TargetLowering &operator=(const TargetLowering &) LLVM_DELETED_FUNCTION; 194 TargetLowering &operator=(const TargetLowering &) LLVM_DELETED_FUNCTION;
193 }; 195 };
194 196
195 } // end of namespace Ice 197 } // end of namespace Ice
196 198
197 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 199 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW
« no previous file with comments | « src/IceOperand.h ('k') | src/IceTargetLoweringX8632.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698