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

Side by Side Diff: src/IceTargetLoweringX8632.h

Issue 577353003: Add call instructions to Subzero's bitcode reader. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix remaining issues raised. Created 6 years, 3 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/IceIntrinsics.cpp ('k') | src/PNaClTranslator.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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // This is a nop if the operand is already a legal memory operand. 162 // This is a nop if the operand is already a legal memory operand.
163 OperandX8632Mem *FormMemoryOperand(Operand *Ptr, Type Ty); 163 OperandX8632Mem *FormMemoryOperand(Operand *Ptr, Type Ty);
164 164
165 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister); 165 Variable *makeReg(Type Ty, int32_t RegNum = Variable::NoRegister);
166 InstCall *makeHelperCall(const IceString &Name, Variable *Dest, 166 InstCall *makeHelperCall(const IceString &Name, Variable *Dest,
167 SizeT MaxSrcs) { 167 SizeT MaxSrcs) {
168 bool SuppressMangling = true; 168 bool SuppressMangling = true;
169 const Type FunctionPointerType = IceType_i32; 169 const Type FunctionPointerType = IceType_i32;
170 Constant *CallTarget = 170 Constant *CallTarget =
171 Ctx->getConstantSym(FunctionPointerType, 0, Name, SuppressMangling); 171 Ctx->getConstantSym(FunctionPointerType, 0, Name, SuppressMangling);
172 InstCall *Call = InstCall::create(Func, MaxSrcs, Dest, CallTarget); 172 InstCall *Call = InstCall::create(Func, MaxSrcs, Dest, CallTarget, false);
173 return Call; 173 return Call;
174 } 174 }
175 static Type stackSlotType(); 175 static Type stackSlotType();
176 176
177 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister); 177 Variable *copyToReg(Operand *Src, int32_t RegNum = Variable::NoRegister);
178 178
179 // Returns a vector in a register with the given constant entries. 179 // Returns a vector in a register with the given constant entries.
180 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister); 180 Variable *makeVectorOfZeros(Type Ty, int32_t RegNum = Variable::NoRegister);
181 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister); 181 Variable *makeVectorOfOnes(Type Ty, int32_t RegNum = Variable::NoRegister);
182 Variable *makeVectorOfMinusOnes(Type Ty, 182 Variable *makeVectorOfMinusOnes(Type Ty,
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 }; 511 };
512 512
513 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; 513 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const;
514 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; 514 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const;
515 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; 515 template <> void ConstantFloat::emit(GlobalContext *Ctx) const;
516 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; 516 template <> void ConstantDouble::emit(GlobalContext *Ctx) const;
517 517
518 } // end of namespace Ice 518 } // end of namespace Ice
519 519
520 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H 520 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H
OLDNEW
« no previous file with comments | « src/IceIntrinsics.cpp ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698