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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |