1 //===- MCStreamer.h - High-level Streaming Machine Code Output --*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares the MCStreamer class.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_MC_MCSTREAMER_H
15 #define LLVM_MC_MCSTREAMER_H
17 #include "llvm/Support/DataTypes.h"
18 #include "llvm/MC/MCDirectives.h"
19 #include "llvm/MC/MCDwarf.h"
20 #include "llvm/MC/MCWin64EH.h"
21 #include "llvm/ADT/ArrayRef.h"
22 #include "llvm/ADT/SmallVector.h"
35 class TargetLoweringObjectFile;
38 class formatted_raw_ostream;
40 /// MCStreamer - Streaming machine code generation interface. This interface
41 /// is intended to provide a programatic interface that is very similar to the
42 /// level that an assembler .s file provides. It has callbacks to emit bytes,
43 /// handle directives, etc. The implementation of this interface retains
44 /// state to know what the current section is etc.
46 /// There are multiple implementations of this interface: one for writing out
47 /// a .s file, and implementations that write out .o files of various formats.
52 MCStreamer(const MCStreamer&); // DO NOT IMPLEMENT
53 MCStreamer &operator=(const MCStreamer&); // DO NOT IMPLEMENT
58 std::vector<MCDwarfFrameInfo> FrameInfos;
59 MCDwarfFrameInfo *getCurrentFrameInfo();
60 void EnsureValidFrame();
62 std::vector<MCWin64EHUnwindInfo *> W64UnwindInfos;
63 MCWin64EHUnwindInfo *CurrentW64UnwindInfo;
64 void setCurrentW64UnwindInfo(MCWin64EHUnwindInfo *Frame);
65 void EnsureValidW64UnwindInfo();
69 /// SectionStack - This is stack of current and previous section
70 /// values saved by PushSection.
71 SmallVector<std::pair<const MCSection *,
72 const MCSection *>, 4> SectionStack;
74 unsigned UniqueCodeBeginSuffix;
75 unsigned UniqueDataBeginSuffix;
78 /// Indicator of whether the previous data-or-code indicator was for
79 /// code or not. Used to determine when we need to emit a new indicator.
87 DataType RegionIndicator;
90 MCStreamer(MCContext &Ctx);
92 const MCExpr *BuildSymbolDiff(MCContext &Context, const MCSymbol *A,
95 const MCExpr *ForceExpAbs(const MCExpr* Expr);
97 void EmitFrames(bool usingCFI);
99 MCWin64EHUnwindInfo *getCurrentW64UnwindInfo(){return CurrentW64UnwindInfo;}
100 void EmitW64Tables();
103 virtual ~MCStreamer();
105 MCContext &getContext() const { return Context; }
107 unsigned getNumFrameInfos() {
108 return FrameInfos.size();
111 const MCDwarfFrameInfo &getFrameInfo(unsigned i) {
112 return FrameInfos[i];
115 ArrayRef<MCDwarfFrameInfo> getFrameInfos() {
119 unsigned getNumW64UnwindInfos() {
120 return W64UnwindInfos.size();
123 MCWin64EHUnwindInfo &getW64UnwindInfo(unsigned i) {
124 return *W64UnwindInfos[i];
127 /// @name Assembly File Formatting.
130 /// isVerboseAsm - Return true if this streamer supports verbose assembly
131 /// and if it is enabled.
132 virtual bool isVerboseAsm() const { return false; }
134 /// hasRawTextSupport - Return true if this asm streamer supports emitting
135 /// unformatted text to the .s file with EmitRawText.
136 virtual bool hasRawTextSupport() const { return false; }
138 /// AddComment - Add a comment that can be emitted to the generated .s
139 /// file if applicable as a QoI issue to make the output of the compiler
140 /// more readable. This only affects the MCAsmStreamer, and only when
141 /// verbose assembly output is enabled.
143 /// If the comment includes embedded \n's, they will each get the comment
144 /// prefix as appropriate. The added comment should not end with a \n.
145 virtual void AddComment(const Twine &T) {}
147 /// GetCommentOS - Return a raw_ostream that comments can be written to.
148 /// Unlike AddComment, you are required to terminate comments with \n if you
150 virtual raw_ostream &GetCommentOS();
152 /// AddBlankLine - Emit a blank line to a .s file to pretty it up.
153 virtual void AddBlankLine() {}
157 /// @name Symbol & Section Management
160 /// getCurrentSection - Return the current section that the streamer is
161 /// emitting code to.
162 const MCSection *getCurrentSection() const {
163 if (!SectionStack.empty())
164 return SectionStack.back().first;
168 /// getPreviousSection - Return the previous section that the streamer is
169 /// emitting code to.
170 const MCSection *getPreviousSection() const {
171 if (!SectionStack.empty())
172 return SectionStack.back().second;
176 /// ChangeSection - Update streamer for a new active section.
178 /// This is called by PopSection and SwitchSection, if the current
180 virtual void ChangeSection(const MCSection *) = 0;
182 /// pushSection - Save the current and previous section on the
185 SectionStack.push_back(std::make_pair(getCurrentSection(),
186 getPreviousSection()));
189 /// popSection - Restore the current and previous section from
190 /// the section stack. Calls ChangeSection as needed.
192 /// Returns false if the stack was empty.
194 if (SectionStack.size() <= 1)
196 const MCSection *oldSection = SectionStack.pop_back_val().first;
197 const MCSection *curSection = SectionStack.back().first;
199 if (oldSection != curSection)
200 ChangeSection(curSection);
204 /// SwitchSection - Set the current section where code is being emitted to
205 /// @p Section. This is required to update CurSection.
207 /// This corresponds to assembler directives like .section, .text, etc.
208 void SwitchSection(const MCSection *Section) {
209 assert(Section && "Cannot switch to a null section!");
210 const MCSection *curSection = SectionStack.back().first;
211 SectionStack.back().second = curSection;
212 if (Section != curSection) {
213 SectionStack.back().first = Section;
214 ChangeSection(Section);
218 /// SwitchSectionNoChange - Set the current section where code is being
219 /// emitted to @p Section. This is required to update CurSection. This
220 /// version does not call ChangeSection.
221 void SwitchSectionNoChange(const MCSection *Section) {
222 assert(Section && "Cannot switch to a null section!");
223 const MCSection *curSection = SectionStack.back().first;
224 SectionStack.back().second = curSection;
225 if (Section != curSection)
226 SectionStack.back().first = Section;
229 /// InitSections - Create the default sections and set the initial one.
230 virtual void InitSections() = 0;
232 /// EmitLabel - Emit a label for @p Symbol into the current section.
234 /// This corresponds to an assembler statement such as:
237 /// @param Symbol - The symbol to emit. A given symbol should only be
238 /// emitted as a label once, and symbols emitted as a label should never be
239 /// used in an assignment.
240 virtual void EmitLabel(MCSymbol *Symbol);
242 /// EmitDataRegion - Emit a label that marks the beginning of a data
244 /// On ELF targets, this corresponds to an assembler statement such as:
246 virtual void EmitDataRegion();
248 /// EmitJumpTable8Region - Emit a label that marks the beginning of a
249 /// jump table composed of 8-bit offsets.
250 /// On ELF targets, this corresponds to an assembler statement such as:
252 virtual void EmitJumpTable8Region();
254 /// EmitJumpTable16Region - Emit a label that marks the beginning of a
255 /// jump table composed of 16-bit offsets.
256 /// On ELF targets, this corresponds to an assembler statement such as:
258 virtual void EmitJumpTable16Region();
260 /// EmitJumpTable32Region - Emit a label that marks the beginning of a
261 /// jump table composed of 32-bit offsets.
262 /// On ELF targets, this corresponds to an assembler statement such as:
264 virtual void EmitJumpTable32Region();
266 /// EmitCodeRegion - Emit a label that marks the beginning of a code
268 /// On ELF targets, this corresponds to an assembler statement such as:
270 virtual void EmitCodeRegion();
272 /// ForceCodeRegion - Forcibly sets the current region mode to code. Used
273 /// at function entry points.
274 void ForceCodeRegion() { RegionIndicator = Code; }
277 virtual void EmitEHSymAttributes(const MCSymbol *Symbol,
280 /// EmitAssemblerFlag - Note in the output the specified @p Flag
281 virtual void EmitAssemblerFlag(MCAssemblerFlag Flag) = 0;
283 /// EmitThumbFunc - Note in the output that the specified @p Func is
284 /// a Thumb mode function (ARM target only).
285 virtual void EmitThumbFunc(MCSymbol *Func) = 0;
287 /// EmitAssignment - Emit an assignment of @p Value to @p Symbol.
289 /// This corresponds to an assembler statement such as:
292 /// The assignment generates no code, but has the side effect of binding the
293 /// value in the current context. For the assembly streamer, this prints the
294 /// binding into the .s file.
296 /// @param Symbol - The symbol being assigned to.
297 /// @param Value - The value for the symbol.
298 virtual void EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) = 0;
300 /// EmitWeakReference - Emit an weak reference from @p Alias to @p Symbol.
302 /// This corresponds to an assembler statement such as:
303 /// .weakref alias, symbol
305 /// @param Alias - The alias that is being created.
306 /// @param Symbol - The symbol being aliased.
307 virtual void EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) = 0;
309 /// EmitSymbolAttribute - Add the given @p Attribute to @p Symbol.
310 virtual void EmitSymbolAttribute(MCSymbol *Symbol,
311 MCSymbolAttr Attribute) = 0;
313 /// EmitSymbolDesc - Set the @p DescValue for the @p Symbol.
315 /// @param Symbol - The symbol to have its n_desc field set.
316 /// @param DescValue - The value to set into the n_desc field.
317 virtual void EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) = 0;
319 /// BeginCOFFSymbolDef - Start emitting COFF symbol definition
321 /// @param Symbol - The symbol to have its External & Type fields set.
322 virtual void BeginCOFFSymbolDef(const MCSymbol *Symbol) = 0;
324 /// EmitCOFFSymbolStorageClass - Emit the storage class of the symbol.
326 /// @param StorageClass - The storage class the symbol should have.
327 virtual void EmitCOFFSymbolStorageClass(int StorageClass) = 0;
329 /// EmitCOFFSymbolType - Emit the type of the symbol.
331 /// @param Type - A COFF type identifier (see COFF::SymbolType in X86COFF.h)
332 virtual void EmitCOFFSymbolType(int Type) = 0;
334 /// EndCOFFSymbolDef - Marks the end of the symbol definition.
335 virtual void EndCOFFSymbolDef() = 0;
337 /// EmitELFSize - Emit an ELF .size directive.
339 /// This corresponds to an assembler statement such as:
340 /// .size symbol, expression
342 virtual void EmitELFSize(MCSymbol *Symbol, const MCExpr *Value) = 0;
344 /// EmitCommonSymbol - Emit a common symbol.
346 /// @param Symbol - The common symbol to emit.
347 /// @param Size - The size of the common symbol.
348 /// @param ByteAlignment - The alignment of the symbol if
349 /// non-zero. This must be a power of 2.
350 virtual void EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
351 unsigned ByteAlignment) = 0;
353 /// EmitLocalCommonSymbol - Emit a local common (.lcomm) symbol.
355 /// @param Symbol - The common symbol to emit.
356 /// @param Size - The size of the common symbol.
357 /// @param ByteAlignment - The alignment of the common symbol in bytes.
358 virtual void EmitLocalCommonSymbol(MCSymbol *Symbol, uint64_t Size,
359 unsigned ByteAlignment) = 0;
361 /// EmitZerofill - Emit the zerofill section and an optional symbol.
363 /// @param Section - The zerofill section to create and or to put the symbol
364 /// @param Symbol - The zerofill symbol to emit, if non-NULL.
365 /// @param Size - The size of the zerofill symbol.
366 /// @param ByteAlignment - The alignment of the zerofill symbol if
367 /// non-zero. This must be a power of 2 on some targets.
368 virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0,
369 unsigned Size = 0,unsigned ByteAlignment = 0) = 0;
371 /// EmitTBSSSymbol - Emit a thread local bss (.tbss) symbol.
373 /// @param Section - The thread local common section.
374 /// @param Symbol - The thread local common symbol to emit.
375 /// @param Size - The size of the symbol.
376 /// @param ByteAlignment - The alignment of the thread local common symbol
377 /// if non-zero. This must be a power of 2 on some targets.
378 virtual void EmitTBSSSymbol(const MCSection *Section, MCSymbol *Symbol,
379 uint64_t Size, unsigned ByteAlignment = 0) = 0;
382 /// @name Generating Data
385 /// EmitBytes - Emit the bytes in \arg Data into the output.
387 /// This is used to implement assembler directives such as .byte, .ascii,
389 virtual void EmitBytes(StringRef Data, unsigned AddrSpace) = 0;
391 /// EmitValue - Emit the expression @p Value into the output as a native
392 /// integer of the given @p Size bytes.
394 /// This is used to implement assembler directives such as .word, .quad,
397 /// @param Value - The value to emit.
398 /// @param Size - The size of the integer (in bytes) to emit. This must
399 /// match a native machine width.
400 virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
401 unsigned AddrSpace) = 0;
403 void EmitValue(const MCExpr *Value, unsigned Size, unsigned AddrSpace = 0);
405 /// EmitIntValue - Special case of EmitValue that avoids the client having
406 /// to pass in a MCExpr for constant integers.
407 virtual void EmitIntValue(uint64_t Value, unsigned Size,
408 unsigned AddrSpace = 0);
410 /// EmitAbsValue - Emit the Value, but try to avoid relocations. On MachO
411 /// this is done by producing
414 void EmitAbsValue(const MCExpr *Value, unsigned Size,
415 unsigned AddrSpace = 0);
417 virtual void EmitULEB128Value(const MCExpr *Value) = 0;
419 virtual void EmitSLEB128Value(const MCExpr *Value) = 0;
421 /// EmitULEB128Value - Special case of EmitULEB128Value that avoids the
422 /// client having to pass in a MCExpr for constant integers.
423 void EmitULEB128IntValue(uint64_t Value, unsigned AddrSpace = 0);
425 /// EmitSLEB128Value - Special case of EmitSLEB128Value that avoids the
426 /// client having to pass in a MCExpr for constant integers.
427 void EmitSLEB128IntValue(int64_t Value, unsigned AddrSpace = 0);
429 /// EmitSymbolValue - Special case of EmitValue that avoids the client
430 /// having to pass in a MCExpr for MCSymbols.
431 void EmitSymbolValue(const MCSymbol *Sym, unsigned Size,
432 unsigned AddrSpace = 0);
434 /// EmitGPRel32Value - Emit the expression @p Value into the output as a
435 /// gprel32 (32-bit GP relative) value.
437 /// This is used to implement assembler directives such as .gprel32 on
438 /// targets that support them.
439 virtual void EmitGPRel32Value(const MCExpr *Value);
441 /// EmitFill - Emit NumBytes bytes worth of the value specified by
442 /// FillValue. This implements directives such as '.space'.
443 virtual void EmitFill(uint64_t NumBytes, uint8_t FillValue,
446 /// EmitZeros - Emit NumBytes worth of zeros. This is a convenience
447 /// function that just wraps EmitFill.
448 void EmitZeros(uint64_t NumBytes, unsigned AddrSpace) {
449 EmitFill(NumBytes, 0, AddrSpace);
453 /// EmitValueToAlignment - Emit some number of copies of @p Value until
454 /// the byte alignment @p ByteAlignment is reached.
456 /// If the number of bytes need to emit for the alignment is not a multiple
457 /// of @p ValueSize, then the contents of the emitted fill bytes is
460 /// This used to implement the .align assembler directive.
462 /// @param ByteAlignment - The alignment to reach. This must be a power of
463 /// two on some targets.
464 /// @param Value - The value to use when filling bytes.
465 /// @param ValueSize - The size of the integer (in bytes) to emit for
466 /// @p Value. This must match a native machine width.
467 /// @param MaxBytesToEmit - The maximum numbers of bytes to emit, or 0. If
468 /// the alignment cannot be reached in this many bytes, no bytes are
470 virtual void EmitValueToAlignment(unsigned ByteAlignment, int64_t Value = 0,
471 unsigned ValueSize = 1,
472 unsigned MaxBytesToEmit = 0) = 0;
474 /// EmitCodeAlignment - Emit nops until the byte alignment @p ByteAlignment
477 /// This used to align code where the alignment bytes may be executed. This
478 /// can emit different bytes for different sizes to optimize execution.
480 /// @param ByteAlignment - The alignment to reach. This must be a power of
481 /// two on some targets.
482 /// @param MaxBytesToEmit - The maximum numbers of bytes to emit, or 0. If
483 /// the alignment cannot be reached in this many bytes, no bytes are
485 virtual void EmitCodeAlignment(unsigned ByteAlignment,
486 unsigned MaxBytesToEmit = 0) = 0;
488 /// EmitValueToOffset - Emit some number of copies of @p Value until the
489 /// byte offset @p Offset is reached.
491 /// This is used to implement assembler directives such as .org.
493 /// @param Offset - The offset to reach. This may be an expression, but the
494 /// expression must be associated with the current section.
495 /// @param Value - The value to use when filling bytes.
496 virtual void EmitValueToOffset(const MCExpr *Offset,
497 unsigned char Value = 0) = 0;
501 /// EmitFileDirective - Switch to a new logical file. This is used to
502 /// implement the '.file "foo.c"' assembler directive.
503 virtual void EmitFileDirective(StringRef Filename) = 0;
505 /// EmitDwarfFileDirective - Associate a filename with a specified logical
506 /// file number. This implements the DWARF2 '.file 4 "foo.c"' assembler
508 virtual bool EmitDwarfFileDirective(unsigned FileNo, StringRef Directory,
511 /// EmitDwarfLocDirective - This implements the DWARF2
512 // '.loc fileno lineno ...' assembler directive.
513 virtual void EmitDwarfLocDirective(unsigned FileNo, unsigned Line,
514 unsigned Column, unsigned Flags,
516 unsigned Discriminator,
519 virtual void EmitDwarfAdvanceLineAddr(int64_t LineDelta,
520 const MCSymbol *LastLabel,
521 const MCSymbol *Label,
522 unsigned PointerSize) = 0;
524 virtual void EmitDwarfAdvanceFrameAddr(const MCSymbol *LastLabel,
525 const MCSymbol *Label) {
528 void EmitDwarfSetLineAddr(int64_t LineDelta, const MCSymbol *Label,
531 virtual void EmitCompactUnwindEncoding(uint32_t CompactUnwindEncoding);
532 virtual void EmitCFISections(bool EH, bool Debug);
533 virtual void EmitCFIStartProc();
534 virtual void EmitCFIEndProc();
535 virtual void EmitCFIDefCfa(int64_t Register, int64_t Offset);
536 virtual void EmitCFIDefCfaOffset(int64_t Offset);
537 virtual void EmitCFIDefCfaRegister(int64_t Register);
538 virtual void EmitCFIOffset(int64_t Register, int64_t Offset);
539 virtual void EmitCFIPersonality(const MCSymbol *Sym, unsigned Encoding);
540 virtual void EmitCFILsda(const MCSymbol *Sym, unsigned Encoding);
541 virtual void EmitCFIRememberState();
542 virtual void EmitCFIRestoreState();
543 virtual void EmitCFISameValue(int64_t Register);
544 virtual void EmitCFIRelOffset(int64_t Register, int64_t Offset);
545 virtual void EmitCFIAdjustCfaOffset(int64_t Adjustment);
547 virtual void EmitWin64EHStartProc(const MCSymbol *Symbol);
548 virtual void EmitWin64EHEndProc();
549 virtual void EmitWin64EHStartChained();
550 virtual void EmitWin64EHEndChained();
551 virtual void EmitWin64EHHandler(const MCSymbol *Sym, bool Unwind,
553 virtual void EmitWin64EHHandlerData();
554 virtual void EmitWin64EHPushReg(unsigned Register);
555 virtual void EmitWin64EHSetFrame(unsigned Register, unsigned Offset);
556 virtual void EmitWin64EHAllocStack(unsigned Size);
557 virtual void EmitWin64EHSaveReg(unsigned Register, unsigned Offset);
558 virtual void EmitWin64EHSaveXMM(unsigned Register, unsigned Offset);
559 virtual void EmitWin64EHPushFrame(bool Code);
560 virtual void EmitWin64EHEndProlog();
562 /// EmitInstruction - Emit the given @p Instruction into the current
564 virtual void EmitInstruction(const MCInst &Inst) = 0;
566 /// EmitRawText - If this file is backed by a assembly streamer, this dumps
567 /// the specified string in the output .s file. This capability is
568 /// indicated by the hasRawTextSupport() predicate. By default this aborts.
569 virtual void EmitRawText(StringRef String);
570 void EmitRawText(const Twine &String);
572 /// ARM-related methods.
573 /// FIXME: Eventually we should have some "target MC streamer" and move
574 /// these methods there.
575 virtual void EmitFnStart();
576 virtual void EmitFnEnd();
577 virtual void EmitCantUnwind();
578 virtual void EmitPersonality(const MCSymbol *Personality);
579 virtual void EmitHandlerData();
580 virtual void EmitSetFP(unsigned FpReg, unsigned SpReg, int64_t Offset = 0);
581 virtual void EmitPad(int64_t Offset);
582 virtual void EmitRegSave(const SmallVectorImpl<unsigned> &RegList,
585 /// Finish - Finish emission of machine code.
586 virtual void Finish() = 0;
589 /// createNullStreamer - Create a dummy machine code streamer, which does
590 /// nothing. This is useful for timing the assembler front end.
591 MCStreamer *createNullStreamer(MCContext &Ctx);
593 /// createAsmStreamer - Create a machine code streamer which will print out
594 /// assembly for the native target, suitable for compiling with a native
597 /// \param InstPrint - If given, the instruction printer to use. If not given
598 /// the MCInst representation will be printed. This method takes ownership of
601 /// \param CE - If given, a code emitter to use to show the instruction
602 /// encoding inline with the assembly. This method takes ownership of \arg CE.
604 /// \param TAB - If given, a target asm backend to use to show the fixup
605 /// information in conjunction with encoding information. This method takes
606 /// ownership of \arg TAB.
608 /// \param ShowInst - Whether to show the MCInst representation inline with
611 /// \param DecodeLSDA - If true, emit comments that translates the LSDA into a
612 /// human readable format. Only usable with CFI.
613 MCStreamer *createAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
617 bool useDwarfDirectory,
618 MCInstPrinter *InstPrint = 0,
619 MCCodeEmitter *CE = 0,
620 MCAsmBackend *TAB = 0,
621 bool ShowInst = false);
623 /// createMachOStreamer - Create a machine code streamer which will generate
624 /// Mach-O format object files.
626 /// Takes ownership of \arg TAB and \arg CE.
627 MCStreamer *createMachOStreamer(MCContext &Ctx, MCAsmBackend &TAB,
628 raw_ostream &OS, MCCodeEmitter *CE,
629 bool RelaxAll = false);
631 /// createWinCOFFStreamer - Create a machine code streamer which will
632 /// generate Microsoft COFF format object files.
634 /// Takes ownership of \arg TAB and \arg CE.
635 MCStreamer *createWinCOFFStreamer(MCContext &Ctx,
637 MCCodeEmitter &CE, raw_ostream &OS,
638 bool RelaxAll = false);
640 /// createELFStreamer - Create a machine code streamer which will generate
641 /// ELF format object files.
642 MCStreamer *createELFStreamer(MCContext &Ctx, MCAsmBackend &TAB,
643 raw_ostream &OS, MCCodeEmitter *CE,
644 bool RelaxAll, bool NoExecStack);
646 /// createLoggingStreamer - Create a machine code streamer which just logs the
647 /// API calls and then dispatches to another streamer.
649 /// The new streamer takes ownership of the \arg Child.
650 MCStreamer *createLoggingStreamer(MCStreamer *Child, raw_ostream &OS);
652 /// createPureStreamer - Create a machine code streamer which will generate
653 /// "pure" MC object files, for use with MC-JIT and testing tools.
655 /// Takes ownership of \arg TAB and \arg CE.
656 MCStreamer *createPureStreamer(MCContext &Ctx, MCAsmBackend &TAB,
657 raw_ostream &OS, MCCodeEmitter *CE);
659 } // end namespace llvm