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

Side by Side Diff: src/IceTargetLowering.h

Issue 1278173009: Inline memove for small constant sizes and refactor memcpy and memset. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 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/IceInstX86BaseImpl.h ('k') | src/IceTargetLowering.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/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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 344
345 void 345 void
346 _bundle_lock(InstBundleLock::Option BundleOption = InstBundleLock::Opt_None) { 346 _bundle_lock(InstBundleLock::Option BundleOption = InstBundleLock::Opt_None) {
347 Context.insert(InstBundleLock::create(Func, BundleOption)); 347 Context.insert(InstBundleLock::create(Func, BundleOption));
348 } 348 }
349 void _bundle_unlock() { Context.insert(InstBundleUnlock::create(Func)); } 349 void _bundle_unlock() { Context.insert(InstBundleUnlock::create(Func)); }
350 void _set_dest_nonkillable() { 350 void _set_dest_nonkillable() {
351 Context.getLastInserted()->setDestNonKillable(); 351 Context.getLastInserted()->setDestNonKillable();
352 } 352 }
353 353
354 bool shouldOptimizeMemIntrins();
355
354 Cfg *Func; 356 Cfg *Func;
355 GlobalContext *Ctx; 357 GlobalContext *Ctx;
356 bool HasComputedFrame = false; 358 bool HasComputedFrame = false;
357 bool CallsReturnsTwice = false; 359 bool CallsReturnsTwice = false;
358 /// StackAdjustment keeps track of the current stack offset from its 360 /// StackAdjustment keeps track of the current stack offset from its
359 /// natural location, as arguments are pushed for a function call. 361 /// natural location, as arguments are pushed for a function call.
360 int32_t StackAdjustment = 0; 362 int32_t StackAdjustment = 0;
361 SizeT NextLabelNumber = 0; 363 SizeT NextLabelNumber = 0;
362 SizeT NextJumpTableNumber = 0; 364 SizeT NextJumpTableNumber = 0;
363 LoweringContext Context; 365 LoweringContext Context;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 virtual void lower() {} 452 virtual void lower() {}
451 453
452 protected: 454 protected:
453 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {} 455 explicit TargetHeaderLowering(GlobalContext *Ctx) : Ctx(Ctx) {}
454 GlobalContext *Ctx; 456 GlobalContext *Ctx;
455 }; 457 };
456 458
457 } // end of namespace Ice 459 } // end of namespace Ice
458 460
459 #endif // SUBZERO_SRC_ICETARGETLOWERING_H 461 #endif // SUBZERO_SRC_ICETARGETLOWERING_H
OLDNEW
« no previous file with comments | « src/IceInstX86BaseImpl.h ('k') | src/IceTargetLowering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698