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

Side by Side Diff: src/IceTargetLowering.h

Issue 1900543002: Subzero: Allow per-method controls. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More cleanup Created 4 years, 8 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/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 /// \file 10 /// \file
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // Each target must define a public static method: 174 // Each target must define a public static method:
175 // static void staticInit(GlobalContext *Ctx); 175 // static void staticInit(GlobalContext *Ctx);
176 static bool shouldBePooled(const class Constant *C); 176 static bool shouldBePooled(const class Constant *C);
177 177
178 static std::unique_ptr<TargetLowering> createLowering(TargetArch Target, 178 static std::unique_ptr<TargetLowering> createLowering(TargetArch Target,
179 Cfg *Func); 179 Cfg *Func);
180 180
181 virtual std::unique_ptr<Assembler> createAssembler() const = 0; 181 virtual std::unique_ptr<Assembler> createAssembler() const = 0;
182 182
183 void translate() { 183 void translate() {
184 switch (getFlags().getOptLevel()) { 184 switch (Func->getOptLevel()) {
185 case Opt_m1: 185 case Opt_m1:
186 translateOm1(); 186 translateOm1();
187 break; 187 break;
188 case Opt_0: 188 case Opt_0:
189 translateO0(); 189 translateO0();
190 break; 190 break;
191 case Opt_1: 191 case Opt_1:
192 translateO1(); 192 translateO1();
193 break; 193 break;
194 case Opt_2: 194 case Opt_2:
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 virtual void lower() {} 618 virtual void lower() {}
619 619
620 protected: 620 protected:
621 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {} 621 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {}
622 GlobalContext *Ctx; 622 GlobalContext *Ctx;
623 }; 623 };
624 624
625 } // end of namespace Ice 625 } // end of namespace Ice
626 626
627 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 627 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW
« src/IceStringPool.h ('K') | « src/IceStringPool.h ('k') | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698