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

Side by Side Diff: src/IceTargetLoweringX86Base.h

Issue 2172313002: Subzero : Live Range Splitting after initial Register Allocation (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add comment Created 4 years, 4 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/IceTargetLowering.cpp ('k') | src/IceTimerTree.def » ('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/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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 bool needSandboxing() const { return NeedSandboxing; } 86 bool needSandboxing() const { return NeedSandboxing; }
87 87
88 void translateOm1() override; 88 void translateOm1() override;
89 void translateO2() override; 89 void translateO2() override;
90 void doLoadOpt(); 90 void doLoadOpt();
91 bool doBranchOpt(Inst *I, const CfgNode *NextNode) override; 91 bool doBranchOpt(Inst *I, const CfgNode *NextNode) override;
92 92
93 SizeT getNumRegisters() const override { 93 SizeT getNumRegisters() const override {
94 return Traits::RegisterSet::Reg_NUM; 94 return Traits::RegisterSet::Reg_NUM;
95 } 95 }
96
97 Inst *createLoweredMove(Variable *Dest, Variable *SrcVar) override {
98 if (isVectorType(Dest->getType())) {
99 return Traits::Insts::Movp::create(Func, Dest, SrcVar);
100 }
101 return Traits::Insts::Mov::create(Func, Dest, SrcVar);
102 (void)Dest;
103 (void)SrcVar;
104 return nullptr;
105 }
106
96 Variable *getPhysicalRegister(RegNumT RegNum, 107 Variable *getPhysicalRegister(RegNumT RegNum,
97 Type Ty = IceType_void) override; 108 Type Ty = IceType_void) override;
98 const char *getRegName(RegNumT RegNum, Type Ty) const override; 109 const char *getRegName(RegNumT RegNum, Type Ty) const override;
99 static const char *getRegClassName(RegClass C) { 110 static const char *getRegClassName(RegClass C) {
100 auto ClassNum = static_cast<RegClassX86>(C); 111 auto ClassNum = static_cast<RegClassX86>(C);
101 assert(ClassNum < RCX86_NUM); 112 assert(ClassNum < RCX86_NUM);
102 switch (ClassNum) { 113 switch (ClassNum) {
103 default: 114 default:
104 assert(C < RC_Target); 115 assert(C < RC_Target);
105 return regClassString(C); 116 return regClassString(C);
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 1180
1170 explicit TargetHeaderX86(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} 1181 explicit TargetHeaderX86(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {}
1171 }; 1182 };
1172 1183
1173 } // end of namespace X86NAMESPACE 1184 } // end of namespace X86NAMESPACE
1174 } // end of namespace Ice 1185 } // end of namespace Ice
1175 1186
1176 #include "IceTargetLoweringX86BaseImpl.h" 1187 #include "IceTargetLoweringX86BaseImpl.h"
1177 1188
1178 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H 1189 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H
OLDNEW
« no previous file with comments | « src/IceTargetLowering.cpp ('k') | src/IceTimerTree.def » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698