| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |