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

Side by Side Diff: src/IceTargetLoweringX8632.h

Issue 737513008: Subzero: Simplify the constant pools. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Better fix for the int8/uint8 tests 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/IceOperand.cpp ('k') | src/IceTargetLoweringX8632.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/IceTargetLoweringX8632.h - x86-32 lowering ---*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringX8632.h - x86-32 lowering ---*- 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 TargetLoweringX8632 class, which 10 // This file declares the TargetLoweringX8632 class, which
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 int32_t RegNum = Variable::NoRegister); 154 int32_t RegNum = Variable::NoRegister);
155 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister); 155 Variable *legalizeToVar(Operand *From, int32_t RegNum = Variable::NoRegister);
156 // Turn a pointer operand into a memory operand that can be 156 // Turn a pointer operand into a memory operand that can be
157 // used by a real load/store operation. Legalizes the operand as well. 157 // used by a real load/store operation. Legalizes the operand as well.
158 // This is a nop if the operand is already a legal memory operand. 158 // This is a nop if the operand is already a legal memory operand.
159 OperandX8632Mem *FormMemoryOperand(Operand *Ptr, Type Ty); 159 OperandX8632Mem *FormMemoryOperand(Operand *Ptr, Type Ty);
160 160
161 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); 161 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister);
162 InstCall *makeHelperCall(const IceString &Name, Variable *Dest, 162 InstCall *makeHelperCall(const IceString &Name, Variable *Dest,
163 SizeT MaxSrcs) { 163 SizeT MaxSrcs) {
164 bool SuppressMangling = true; 164 const bool SuppressMangling = true;
165 const Type FunctionPointerType = IceType_i32; 165 const bool HasTailCall = false;
166 Constant *CallTarget = 166 const RelocOffsetT Offset = 0;
167 Ctx->getConstantSym(FunctionPointerType, 0, Name, SuppressMangling); 167 Constant *CallTarget = Ctx->getConstantSym(Offset, Name, SuppressMangling);
168 InstCall *Call = InstCall::create(Func, MaxSrcs, Dest, CallTarget, false); 168 InstCall *Call =
169 InstCall::create(Func, MaxSrcs, Dest, CallTarget, HasTailCall);
169 return Call; 170 return Call;
170 } 171 }
171 static Type stackSlotType(); 172 static Type stackSlotType();
172 173
173 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); 174 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister);
174 175
175 // Returns a vector in a register with the given constant entries. 176 // Returns a vector in a register with the given constant entries.
176 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); 177 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister);
177 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister); 178 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister);
178 Variable *makeVectorOfMinusOnes(Type Ty, 179 Variable *makeVectorOfMinusOnes(Type Ty,
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 }; 510 };
510 511
511 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; 512 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const;
512 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; 513 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const;
513 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; 514 template <> void ConstantFloat::emit(GlobalContext *Ctx) const;
514 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; 515 template <> void ConstantDouble::emit(GlobalContext *Ctx) const;
515 516
516 } // end of namespace Ice 517 } // end of namespace Ice
517 518
518 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H 519 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H
OLDNEW
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698