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

Side by Side Diff: src/IceTargetLoweringX86Base.h

Issue 2380023002: [SubZero] Vector types support for MIPS (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 2 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/IceTargetLoweringX86Base.h - x86 lowering ----*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringX86Base.h - x86 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 /// \file 10 /// \file
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 return MaxOutArgsSizeBytes; 176 return MaxOutArgsSizeBytes;
177 } 177 }
178 virtual void updateMaxOutArgsSizeBytes(uint32_t Size) { 178 virtual void updateMaxOutArgsSizeBytes(uint32_t Size) {
179 MaxOutArgsSizeBytes = std::max(MaxOutArgsSizeBytes, Size); 179 MaxOutArgsSizeBytes = std::max(MaxOutArgsSizeBytes, Size);
180 } 180 }
181 181
182 bool shouldSplitToVariable64On32(Type Ty) const override { 182 bool shouldSplitToVariable64On32(Type Ty) const override {
183 return Traits::Is64Bit ? false : Ty == IceType_i64; 183 return Traits::Is64Bit ? false : Ty == IceType_i64;
184 } 184 }
185 185
186 bool shouldSplitToVariableVecOn32(Type Ty) const override {
187 (void)Ty;
188 return false;
189 }
190
186 ConstantRelocatable *createGetIPForRegister(const Variable *Dest) { 191 ConstantRelocatable *createGetIPForRegister(const Variable *Dest) {
187 assert(Dest->hasReg()); 192 assert(Dest->hasReg());
188 const std::string RegName = Traits::getRegName(Dest->getRegNum()); 193 const std::string RegName = Traits::getRegName(Dest->getRegNum());
189 return llvm::cast<ConstantRelocatable>(Ctx->getConstantExternSym( 194 return llvm::cast<ConstantRelocatable>(Ctx->getConstantExternSym(
190 Ctx->getGlobalString(H_getIP_prefix + RegName))); 195 Ctx->getGlobalString(H_getIP_prefix + RegName)));
191 } 196 }
192 197
193 SizeT getMinJumpTableSize() const override { return 4; } 198 SizeT getMinJumpTableSize() const override { return 4; }
194 199
195 void emitVariable(const Variable *Var) const override; 200 void emitVariable(const Variable *Var) const override;
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 1184
1180 explicit TargetHeaderX86(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} 1185 explicit TargetHeaderX86(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {}
1181 }; 1186 };
1182 1187
1183 } // end of namespace X86NAMESPACE 1188 } // end of namespace X86NAMESPACE
1184 } // end of namespace Ice 1189 } // end of namespace Ice
1185 1190
1186 #include "IceTargetLoweringX86BaseImpl.h" 1191 #include "IceTargetLoweringX86BaseImpl.h"
1187 1192
1188 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H 1193 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698