Fix miscompile of MS inline assembly with stack realignment
[oota-llvm.git] / include / llvm / CodeGen / MachineFrameInfo.h
1 //===-- CodeGen/MachineFrameInfo.h - Abstract Stack Frame Rep. --*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // The file defines the MachineFrameInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_CODEGEN_MACHINEFRAMEINFO_H
15 #define LLVM_CODEGEN_MACHINEFRAMEINFO_H
16
17 #include "llvm/ADT/SmallVector.h"
18 #include "llvm/Support/DataTypes.h"
19 #include <cassert>
20 #include <vector>
21
22 namespace llvm {
23 class raw_ostream;
24 class DataLayout;
25 class TargetRegisterClass;
26 class Type;
27 class MachineFunction;
28 class MachineBasicBlock;
29 class TargetFrameLowering;
30 class TargetMachine;
31 class BitVector;
32 class Value;
33 class AllocaInst;
34
35 /// The CalleeSavedInfo class tracks the information need to locate where a
36 /// callee saved register is in the current frame.
37 class CalleeSavedInfo {
38   unsigned Reg;
39   int FrameIdx;
40
41 public:
42   explicit CalleeSavedInfo(unsigned R, int FI = 0)
43   : Reg(R), FrameIdx(FI) {}
44
45   // Accessors.
46   unsigned getReg()                        const { return Reg; }
47   int getFrameIdx()                        const { return FrameIdx; }
48   void setFrameIdx(int FI)                       { FrameIdx = FI; }
49 };
50
51 /// The MachineFrameInfo class represents an abstract stack frame until
52 /// prolog/epilog code is inserted.  This class is key to allowing stack frame
53 /// representation optimizations, such as frame pointer elimination.  It also
54 /// allows more mundane (but still important) optimizations, such as reordering
55 /// of abstract objects on the stack frame.
56 ///
57 /// To support this, the class assigns unique integer identifiers to stack
58 /// objects requested clients.  These identifiers are negative integers for
59 /// fixed stack objects (such as arguments passed on the stack) or nonnegative
60 /// for objects that may be reordered.  Instructions which refer to stack
61 /// objects use a special MO_FrameIndex operand to represent these frame
62 /// indexes.
63 ///
64 /// Because this class keeps track of all references to the stack frame, it
65 /// knows when a variable sized object is allocated on the stack.  This is the
66 /// sole condition which prevents frame pointer elimination, which is an
67 /// important optimization on register-poor architectures.  Because original
68 /// variable sized alloca's in the source program are the only source of
69 /// variable sized stack objects, it is safe to decide whether there will be
70 /// any variable sized objects before all stack objects are known (for
71 /// example, register allocator spill code never needs variable sized
72 /// objects).
73 ///
74 /// When prolog/epilog code emission is performed, the final stack frame is
75 /// built and the machine instructions are modified to refer to the actual
76 /// stack offsets of the object, eliminating all MO_FrameIndex operands from
77 /// the program.
78 ///
79 /// @brief Abstract Stack Frame Information
80 class MachineFrameInfo {
81
82   // StackObject - Represent a single object allocated on the stack.
83   struct StackObject {
84     // SPOffset - The offset of this object from the stack pointer on entry to
85     // the function.  This field has no meaning for a variable sized element.
86     int64_t SPOffset;
87
88     // The size of this object on the stack. 0 means a variable sized object,
89     // ~0ULL means a dead object.
90     uint64_t Size;
91
92     // Alignment - The required alignment of this stack slot.
93     unsigned Alignment;
94
95     // isImmutable - If true, the value of the stack object is set before
96     // entering the function and is not modified inside the function. By
97     // default, fixed objects are immutable unless marked otherwise.
98     bool isImmutable;
99
100     // isSpillSlot - If true the stack object is used as spill slot. It
101     // cannot alias any other memory objects.
102     bool isSpillSlot;
103
104     // MayNeedSP - If true the stack object triggered the creation of the stack
105     // protector. We should allocate this object right after the stack
106     // protector.
107     bool MayNeedSP;
108
109     /// Alloca - If this stack object is originated from an Alloca instruction
110     /// this value saves the original IR allocation. Can be NULL.
111     const AllocaInst *Alloca;
112
113     // PreAllocated - If true, the object was mapped into the local frame
114     // block and doesn't need additional handling for allocation beyond that.
115     bool PreAllocated;
116
117     StackObject(uint64_t Sz, unsigned Al, int64_t SP, bool IM,
118                 bool isSS, bool NSP, const AllocaInst *Val)
119       : SPOffset(SP), Size(Sz), Alignment(Al), isImmutable(IM),
120         isSpillSlot(isSS), MayNeedSP(NSP), Alloca(Val), PreAllocated(false) {}
121   };
122
123   const TargetMachine &TM;
124
125   /// Objects - The list of stack objects allocated...
126   ///
127   std::vector<StackObject> Objects;
128
129   /// NumFixedObjects - This contains the number of fixed objects contained on
130   /// the stack.  Because fixed objects are stored at a negative index in the
131   /// Objects list, this is also the index to the 0th object in the list.
132   ///
133   unsigned NumFixedObjects;
134
135   /// HasVarSizedObjects - This boolean keeps track of whether any variable
136   /// sized objects have been allocated yet.
137   ///
138   bool HasVarSizedObjects;
139
140   /// FrameAddressTaken - This boolean keeps track of whether there is a call
141   /// to builtin \@llvm.frameaddress.
142   bool FrameAddressTaken;
143
144   /// ReturnAddressTaken - This boolean keeps track of whether there is a call
145   /// to builtin \@llvm.returnaddress.
146   bool ReturnAddressTaken;
147
148   /// StackSize - The prolog/epilog code inserter calculates the final stack
149   /// offsets for all of the fixed size objects, updating the Objects list
150   /// above.  It then updates StackSize to contain the number of bytes that need
151   /// to be allocated on entry to the function.
152   ///
153   uint64_t StackSize;
154
155   /// OffsetAdjustment - The amount that a frame offset needs to be adjusted to
156   /// have the actual offset from the stack/frame pointer.  The exact usage of
157   /// this is target-dependent, but it is typically used to adjust between
158   /// SP-relative and FP-relative offsets.  E.G., if objects are accessed via
159   /// SP then OffsetAdjustment is zero; if FP is used, OffsetAdjustment is set
160   /// to the distance between the initial SP and the value in FP.  For many
161   /// targets, this value is only used when generating debug info (via
162   /// TargetRegisterInfo::getFrameIndexOffset); when generating code, the
163   /// corresponding adjustments are performed directly.
164   int OffsetAdjustment;
165
166   /// MaxAlignment - The prolog/epilog code inserter may process objects
167   /// that require greater alignment than the default alignment the target
168   /// provides. To handle this, MaxAlignment is set to the maximum alignment
169   /// needed by the objects on the current frame.  If this is greater than the
170   /// native alignment maintained by the compiler, dynamic alignment code will
171   /// be needed.
172   ///
173   unsigned MaxAlignment;
174
175   /// AdjustsStack - Set to true if this function adjusts the stack -- e.g.,
176   /// when calling another function. This is only valid during and after
177   /// prolog/epilog code insertion.
178   bool AdjustsStack;
179
180   /// HasCalls - Set to true if this function has any function calls.
181   bool HasCalls;
182
183   /// StackProtectorIdx - The frame index for the stack protector.
184   int StackProtectorIdx;
185
186   /// FunctionContextIdx - The frame index for the function context. Used for
187   /// SjLj exceptions.
188   int FunctionContextIdx;
189
190   /// MaxCallFrameSize - This contains the size of the largest call frame if the
191   /// target uses frame setup/destroy pseudo instructions (as defined in the
192   /// TargetFrameInfo class).  This information is important for frame pointer
193   /// elimination.  If is only valid during and after prolog/epilog code
194   /// insertion.
195   ///
196   unsigned MaxCallFrameSize;
197
198   /// CSInfo - The prolog/epilog code inserter fills in this vector with each
199   /// callee saved register saved in the frame.  Beyond its use by the prolog/
200   /// epilog code inserter, this data used for debug info and exception
201   /// handling.
202   std::vector<CalleeSavedInfo> CSInfo;
203
204   /// CSIValid - Has CSInfo been set yet?
205   bool CSIValid;
206
207   /// LocalFrameObjects - References to frame indices which are mapped
208   /// into the local frame allocation block. <FrameIdx, LocalOffset>
209   SmallVector<std::pair<int, int64_t>, 32> LocalFrameObjects;
210
211   /// LocalFrameSize - Size of the pre-allocated local frame block.
212   int64_t LocalFrameSize;
213
214   /// Required alignment of the local object blob, which is the strictest
215   /// alignment of any object in it.
216   unsigned LocalFrameMaxAlign;
217
218   /// Whether the local object blob needs to be allocated together. If not,
219   /// PEI should ignore the isPreAllocated flags on the stack objects and
220   /// just allocate them normally.
221   bool UseLocalStackAllocationBlock;
222
223   /// Whether the "realign-stack" option is on.
224   bool RealignOption;
225
226   /// True if the function includes inline assembly that adjusts the stack
227   /// pointer.
228   bool HasInlineAsmWithSPAdjust;
229
230   const TargetFrameLowering *getFrameLowering() const;
231 public:
232     explicit MachineFrameInfo(const TargetMachine &TM, bool RealignOpt)
233     : TM(TM), RealignOption(RealignOpt) {
234     StackSize = NumFixedObjects = OffsetAdjustment = MaxAlignment = 0;
235     HasVarSizedObjects = false;
236     FrameAddressTaken = false;
237     ReturnAddressTaken = false;
238     AdjustsStack = false;
239     HasCalls = false;
240     StackProtectorIdx = -1;
241     FunctionContextIdx = -1;
242     MaxCallFrameSize = 0;
243     CSIValid = false;
244     LocalFrameSize = 0;
245     LocalFrameMaxAlign = 0;
246     UseLocalStackAllocationBlock = false;
247   }
248
249   /// hasStackObjects - Return true if there are any stack objects in this
250   /// function.
251   ///
252   bool hasStackObjects() const { return !Objects.empty(); }
253
254   /// hasVarSizedObjects - This method may be called any time after instruction
255   /// selection is complete to determine if the stack frame for this function
256   /// contains any variable sized objects.
257   ///
258   bool hasVarSizedObjects() const { return HasVarSizedObjects; }
259
260   /// getStackProtectorIndex/setStackProtectorIndex - Return the index for the
261   /// stack protector object.
262   ///
263   int getStackProtectorIndex() const { return StackProtectorIdx; }
264   void setStackProtectorIndex(int I) { StackProtectorIdx = I; }
265
266   /// getFunctionContextIndex/setFunctionContextIndex - Return the index for the
267   /// function context object. This object is used for SjLj exceptions.
268   int getFunctionContextIndex() const { return FunctionContextIdx; }
269   void setFunctionContextIndex(int I) { FunctionContextIdx = I; }
270
271   /// isFrameAddressTaken - This method may be called any time after instruction
272   /// selection is complete to determine if there is a call to
273   /// \@llvm.frameaddress in this function.
274   bool isFrameAddressTaken() const { return FrameAddressTaken; }
275   void setFrameAddressIsTaken(bool T) { FrameAddressTaken = T; }
276
277   /// isReturnAddressTaken - This method may be called any time after
278   /// instruction selection is complete to determine if there is a call to
279   /// \@llvm.returnaddress in this function.
280   bool isReturnAddressTaken() const { return ReturnAddressTaken; }
281   void setReturnAddressIsTaken(bool s) { ReturnAddressTaken = s; }
282
283   /// getObjectIndexBegin - Return the minimum frame object index.
284   ///
285   int getObjectIndexBegin() const { return -NumFixedObjects; }
286
287   /// getObjectIndexEnd - Return one past the maximum frame object index.
288   ///
289   int getObjectIndexEnd() const { return (int)Objects.size()-NumFixedObjects; }
290
291   /// getNumFixedObjects - Return the number of fixed objects.
292   unsigned getNumFixedObjects() const { return NumFixedObjects; }
293
294   /// getNumObjects - Return the number of objects.
295   ///
296   unsigned getNumObjects() const { return Objects.size(); }
297
298   /// mapLocalFrameObject - Map a frame index into the local object block
299   void mapLocalFrameObject(int ObjectIndex, int64_t Offset) {
300     LocalFrameObjects.push_back(std::pair<int, int64_t>(ObjectIndex, Offset));
301     Objects[ObjectIndex + NumFixedObjects].PreAllocated = true;
302   }
303
304   /// getLocalFrameObjectMap - Get the local offset mapping for a for an object
305   std::pair<int, int64_t> getLocalFrameObjectMap(int i) {
306     assert (i >= 0 && (unsigned)i < LocalFrameObjects.size() &&
307             "Invalid local object reference!");
308     return LocalFrameObjects[i];
309   }
310
311   /// getLocalFrameObjectCount - Return the number of objects allocated into
312   /// the local object block.
313   int64_t getLocalFrameObjectCount() { return LocalFrameObjects.size(); }
314
315   /// setLocalFrameSize - Set the size of the local object blob.
316   void setLocalFrameSize(int64_t sz) { LocalFrameSize = sz; }
317
318   /// getLocalFrameSize - Get the size of the local object blob.
319   int64_t getLocalFrameSize() const { return LocalFrameSize; }
320
321   /// setLocalFrameMaxAlign - Required alignment of the local object blob,
322   /// which is the strictest alignment of any object in it.
323   void setLocalFrameMaxAlign(unsigned Align) { LocalFrameMaxAlign = Align; }
324
325   /// getLocalFrameMaxAlign - Return the required alignment of the local
326   /// object blob.
327   unsigned getLocalFrameMaxAlign() const { return LocalFrameMaxAlign; }
328
329   /// getUseLocalStackAllocationBlock - Get whether the local allocation blob
330   /// should be allocated together or let PEI allocate the locals in it
331   /// directly.
332   bool getUseLocalStackAllocationBlock() {return UseLocalStackAllocationBlock;}
333
334   /// setUseLocalStackAllocationBlock - Set whether the local allocation blob
335   /// should be allocated together or let PEI allocate the locals in it
336   /// directly.
337   void setUseLocalStackAllocationBlock(bool v) {
338     UseLocalStackAllocationBlock = v;
339   }
340
341   /// isObjectPreAllocated - Return true if the object was pre-allocated into
342   /// the local block.
343   bool isObjectPreAllocated(int ObjectIdx) const {
344     assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
345            "Invalid Object Idx!");
346     return Objects[ObjectIdx+NumFixedObjects].PreAllocated;
347   }
348
349   /// getObjectSize - Return the size of the specified object.
350   ///
351   int64_t getObjectSize(int ObjectIdx) const {
352     assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
353            "Invalid Object Idx!");
354     return Objects[ObjectIdx+NumFixedObjects].Size;
355   }
356
357   /// setObjectSize - Change the size of the specified stack object.
358   void setObjectSize(int ObjectIdx, int64_t Size) {
359     assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
360            "Invalid Object Idx!");
361     Objects[ObjectIdx+NumFixedObjects].Size = Size;
362   }
363
364   /// getObjectAlignment - Return the alignment of the specified stack object.
365   unsigned getObjectAlignment(int ObjectIdx) const {
366     assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
367            "Invalid Object Idx!");
368     return Objects[ObjectIdx+NumFixedObjects].Alignment;
369   }
370
371   /// setObjectAlignment - Change the alignment of the specified stack object.
372   void setObjectAlignment(int ObjectIdx, unsigned Align) {
373     assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
374            "Invalid Object Idx!");
375     Objects[ObjectIdx+NumFixedObjects].Alignment = Align;
376     ensureMaxAlignment(Align);
377   }
378
379   /// getObjectAllocation - Return the underlying Alloca of the specified
380   /// stack object if it exists. Returns 0 if none exists.
381   const AllocaInst* getObjectAllocation(int ObjectIdx) const {
382     assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
383            "Invalid Object Idx!");
384     return Objects[ObjectIdx+NumFixedObjects].Alloca;
385   }
386
387   /// NeedsStackProtector - Returns true if the object may need stack
388   /// protectors.
389   bool MayNeedStackProtector(int ObjectIdx) const {
390     assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
391            "Invalid Object Idx!");
392     return Objects[ObjectIdx+NumFixedObjects].MayNeedSP;
393   }
394
395   /// getObjectOffset - Return the assigned stack offset of the specified object
396   /// from the incoming stack pointer.
397   ///
398   int64_t getObjectOffset(int ObjectIdx) const {
399     assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
400            "Invalid Object Idx!");
401     assert(!isDeadObjectIndex(ObjectIdx) &&
402            "Getting frame offset for a dead object?");
403     return Objects[ObjectIdx+NumFixedObjects].SPOffset;
404   }
405
406   /// setObjectOffset - Set the stack frame offset of the specified object.  The
407   /// offset is relative to the stack pointer on entry to the function.
408   ///
409   void setObjectOffset(int ObjectIdx, int64_t SPOffset) {
410     assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
411            "Invalid Object Idx!");
412     assert(!isDeadObjectIndex(ObjectIdx) &&
413            "Setting frame offset for a dead object?");
414     Objects[ObjectIdx+NumFixedObjects].SPOffset = SPOffset;
415   }
416
417   /// getStackSize - Return the number of bytes that must be allocated to hold
418   /// all of the fixed size frame objects.  This is only valid after
419   /// Prolog/Epilog code insertion has finalized the stack frame layout.
420   ///
421   uint64_t getStackSize() const { return StackSize; }
422
423   /// setStackSize - Set the size of the stack...
424   ///
425   void setStackSize(uint64_t Size) { StackSize = Size; }
426
427   /// Estimate and return the size of the stack frame.
428   unsigned estimateStackSize(const MachineFunction &MF) const;
429
430   /// getOffsetAdjustment - Return the correction for frame offsets.
431   ///
432   int getOffsetAdjustment() const { return OffsetAdjustment; }
433
434   /// setOffsetAdjustment - Set the correction for frame offsets.
435   ///
436   void setOffsetAdjustment(int Adj) { OffsetAdjustment = Adj; }
437
438   /// getMaxAlignment - Return the alignment in bytes that this function must be
439   /// aligned to, which is greater than the default stack alignment provided by
440   /// the target.
441   ///
442   unsigned getMaxAlignment() const { return MaxAlignment; }
443
444   /// ensureMaxAlignment - Make sure the function is at least Align bytes
445   /// aligned.
446   void ensureMaxAlignment(unsigned Align);
447
448   /// AdjustsStack - Return true if this function adjusts the stack -- e.g.,
449   /// when calling another function. This is only valid during and after
450   /// prolog/epilog code insertion.
451   bool adjustsStack() const { return AdjustsStack; }
452   void setAdjustsStack(bool V) { AdjustsStack = V; }
453
454   /// hasCalls - Return true if the current function has any function calls.
455   bool hasCalls() const { return HasCalls; }
456   void setHasCalls(bool V) { HasCalls = V; }
457
458   /// Returns true if the function contains any stack-adjusting inline assembly.
459   bool hasInlineAsmWithSPAdjust() const { return HasInlineAsmWithSPAdjust; }
460   void setHasInlineAsmWithSPAdjust(bool B) { HasInlineAsmWithSPAdjust = B; }
461
462   /// getMaxCallFrameSize - Return the maximum size of a call frame that must be
463   /// allocated for an outgoing function call.  This is only available if
464   /// CallFrameSetup/Destroy pseudo instructions are used by the target, and
465   /// then only during or after prolog/epilog code insertion.
466   ///
467   unsigned getMaxCallFrameSize() const { return MaxCallFrameSize; }
468   void setMaxCallFrameSize(unsigned S) { MaxCallFrameSize = S; }
469
470   /// CreateFixedObject - Create a new object at a fixed location on the stack.
471   /// All fixed objects should be created before other objects are created for
472   /// efficiency. By default, fixed objects are immutable. This returns an
473   /// index with a negative value.
474   ///
475   int CreateFixedObject(uint64_t Size, int64_t SPOffset, bool Immutable);
476
477
478   /// isFixedObjectIndex - Returns true if the specified index corresponds to a
479   /// fixed stack object.
480   bool isFixedObjectIndex(int ObjectIdx) const {
481     return ObjectIdx < 0 && (ObjectIdx >= -(int)NumFixedObjects);
482   }
483
484   /// isImmutableObjectIndex - Returns true if the specified index corresponds
485   /// to an immutable object.
486   bool isImmutableObjectIndex(int ObjectIdx) const {
487     assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
488            "Invalid Object Idx!");
489     return Objects[ObjectIdx+NumFixedObjects].isImmutable;
490   }
491
492   /// isSpillSlotObjectIndex - Returns true if the specified index corresponds
493   /// to a spill slot..
494   bool isSpillSlotObjectIndex(int ObjectIdx) const {
495     assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
496            "Invalid Object Idx!");
497     return Objects[ObjectIdx+NumFixedObjects].isSpillSlot;
498   }
499
500   /// isDeadObjectIndex - Returns true if the specified index corresponds to
501   /// a dead object.
502   bool isDeadObjectIndex(int ObjectIdx) const {
503     assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
504            "Invalid Object Idx!");
505     return Objects[ObjectIdx+NumFixedObjects].Size == ~0ULL;
506   }
507
508   /// CreateStackObject - Create a new statically sized stack object, returning
509   /// a nonnegative identifier to represent it.
510   ///
511   int CreateStackObject(uint64_t Size, unsigned Alignment, bool isSS,
512                         bool MayNeedSP = false, const AllocaInst *Alloca = 0);
513
514   /// CreateSpillStackObject - Create a new statically sized stack object that
515   /// represents a spill slot, returning a nonnegative identifier to represent
516   /// it.
517   ///
518   int CreateSpillStackObject(uint64_t Size, unsigned Alignment);
519
520   /// RemoveStackObject - Remove or mark dead a statically sized stack object.
521   ///
522   void RemoveStackObject(int ObjectIdx) {
523     // Mark it dead.
524     Objects[ObjectIdx+NumFixedObjects].Size = ~0ULL;
525   }
526
527   /// CreateVariableSizedObject - Notify the MachineFrameInfo object that a
528   /// variable sized object has been created.  This must be created whenever a
529   /// variable sized object is created, whether or not the index returned is
530   /// actually used.
531   ///
532   int CreateVariableSizedObject(unsigned Alignment);
533
534   /// getCalleeSavedInfo - Returns a reference to call saved info vector for the
535   /// current function.
536   const std::vector<CalleeSavedInfo> &getCalleeSavedInfo() const {
537     return CSInfo;
538   }
539
540   /// setCalleeSavedInfo - Used by prolog/epilog inserter to set the function's
541   /// callee saved information.
542   void setCalleeSavedInfo(const std::vector<CalleeSavedInfo> &CSI) {
543     CSInfo = CSI;
544   }
545
546   /// isCalleeSavedInfoValid - Has the callee saved info been calculated yet?
547   bool isCalleeSavedInfoValid() const { return CSIValid; }
548
549   void setCalleeSavedInfoValid(bool v) { CSIValid = v; }
550
551   /// getPristineRegs - Return a set of physical registers that are pristine on
552   /// entry to the MBB.
553   ///
554   /// Pristine registers hold a value that is useless to the current function,
555   /// but that must be preserved - they are callee saved registers that have not
556   /// been saved yet.
557   ///
558   /// Before the PrologueEpilogueInserter has placed the CSR spill code, this
559   /// method always returns an empty set.
560   BitVector getPristineRegs(const MachineBasicBlock *MBB) const;
561
562   /// print - Used by the MachineFunction printer to print information about
563   /// stack objects. Implemented in MachineFunction.cpp
564   ///
565   void print(const MachineFunction &MF, raw_ostream &OS) const;
566
567   /// dump - Print the function to stderr.
568   void dump(const MachineFunction &MF) const;
569 };
570
571 } // End llvm namespace
572
573 #endif