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 // This file declares the TargetLowering, LoweringContext, and | 10 // This file declares the TargetLowering, LoweringContext, and |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 virtual void lowerSwitch(const InstSwitch *Inst) = 0; | 247 virtual void lowerSwitch(const InstSwitch *Inst) = 0; |
248 virtual void lowerUnreachable(const InstUnreachable *Inst) = 0; | 248 virtual void lowerUnreachable(const InstUnreachable *Inst) = 0; |
249 | 249 |
250 virtual void doAddressOptLoad() {} | 250 virtual void doAddressOptLoad() {} |
251 virtual void doAddressOptStore() {} | 251 virtual void doAddressOptStore() {} |
252 virtual void randomlyInsertNop(float Probability) = 0; | 252 virtual void randomlyInsertNop(float Probability) = 0; |
253 // This gives the target an opportunity to post-process the lowered | 253 // This gives the target an opportunity to post-process the lowered |
254 // expansion before returning. | 254 // expansion before returning. |
255 virtual void postLower() {} | 255 virtual void postLower() {} |
256 | 256 |
| 257 // Find two-address non-SSA instructions and set the DestNonKillable flag |
| 258 // to keep liveness analysis consistent. |
| 259 void inferTwoAddress(); |
| 260 |
257 // Make a call to an external helper function. | 261 // Make a call to an external helper function. |
258 InstCall *makeHelperCall(const IceString &Name, Variable *Dest, | 262 InstCall *makeHelperCall(const IceString &Name, Variable *Dest, |
259 SizeT MaxSrcs); | 263 SizeT MaxSrcs); |
260 | 264 |
261 Cfg *Func; | 265 Cfg *Func; |
262 GlobalContext *Ctx; | 266 GlobalContext *Ctx; |
263 bool HasComputedFrame; | 267 bool HasComputedFrame; |
264 bool CallsReturnsTwice; | 268 bool CallsReturnsTwice; |
265 // StackAdjustment keeps track of the current stack offset from its | 269 // StackAdjustment keeps track of the current stack offset from its |
266 // natural location, as arguments are pushed for a function call. | 270 // natural location, as arguments are pushed for a function call. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 virtual void lowerConstants() const = 0; | 327 virtual void lowerConstants() const = 0; |
324 | 328 |
325 protected: | 329 protected: |
326 explicit TargetDataLowering(GlobalContext *Ctx) : Ctx(Ctx) {} | 330 explicit TargetDataLowering(GlobalContext *Ctx) : Ctx(Ctx) {} |
327 GlobalContext *Ctx; | 331 GlobalContext *Ctx; |
328 }; | 332 }; |
329 | 333 |
330 } // end of namespace Ice | 334 } // end of namespace Ice |
331 | 335 |
332 #endif // SUBZERO_SRC_ICETARGETLOWERING_H | 336 #endif // SUBZERO_SRC_ICETARGETLOWERING_H |
OLD | NEW |