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

Side by Side Diff: src/IceTargetLowering.h

Issue 1222943003: ARM32: Lower more integer intrinsics and test. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: move to TargetLowering Created 5 years, 5 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/IceInstMIPS32.cpp ('k') | src/IceTargetLoweringARM32.h » ('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/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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 /// Make a call to an external helper function. 315 /// Make a call to an external helper function.
316 InstCall *makeHelperCall(const IceString &Name, Variable *Dest, 316 InstCall *makeHelperCall(const IceString &Name, Variable *Dest,
317 SizeT MaxSrcs); 317 SizeT MaxSrcs);
318 318
319 void 319 void
320 _bundle_lock(InstBundleLock::Option BundleOption = InstBundleLock::Opt_None) { 320 _bundle_lock(InstBundleLock::Option BundleOption = InstBundleLock::Opt_None) {
321 Context.insert(InstBundleLock::create(Func, BundleOption)); 321 Context.insert(InstBundleLock::create(Func, BundleOption));
322 } 322 }
323 void _bundle_unlock() { Context.insert(InstBundleUnlock::create(Func)); } 323 void _bundle_unlock() { Context.insert(InstBundleUnlock::create(Func)); }
324 void _set_dest_nonkillable() {
325 Context.getLastInserted()->setDestNonKillable();
326 }
324 327
325 Cfg *Func; 328 Cfg *Func;
326 GlobalContext *Ctx; 329 GlobalContext *Ctx;
327 bool HasComputedFrame = false; 330 bool HasComputedFrame = false;
328 bool CallsReturnsTwice = false; 331 bool CallsReturnsTwice = false;
329 /// StackAdjustment keeps track of the current stack offset from its 332 /// StackAdjustment keeps track of the current stack offset from its
330 /// natural location, as arguments are pushed for a function call. 333 /// natural location, as arguments are pushed for a function call.
331 int32_t StackAdjustment = 0; 334 int32_t StackAdjustment = 0;
332 SizeT NextLabelNumber = 0; 335 SizeT NextLabelNumber = 0;
333 LoweringContext Context; 336 LoweringContext Context;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 virtual void lower() {} 422 virtual void lower() {}
420 423
421 protected: 424 protected:
422 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {} 425 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {}
423 GlobalContext *Ctx; 426 GlobalContext *Ctx;
424 }; 427 };
425 428
426 } // end of namespace Ice 429 } // end of namespace Ice
427 430
428 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 431 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW
« no previous file with comments | « src/IceInstMIPS32.cpp ('k') | src/IceTargetLoweringARM32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698