Home | History | Annotate | Download | only in AsmPrinter

Lines Matching defs:AP

36     void beginAssembly(AsmPrinter &AP);
37 void finishAssembly(AsmPrinter &AP);
47 static void EmitCamlGlobal(const Module &M, AsmPrinter &AP, const char *Id) {
61 AP.Mang->getNameWithPrefix(TmpStr, SymName);
63 MCSymbol *Sym = AP.OutContext.GetOrCreateSymbol(TmpStr);
65 AP.OutStreamer.EmitSymbolAttribute(Sym, MCSA_Global);
66 AP.OutStreamer.EmitLabel(Sym);
69 void OcamlGCMetadataPrinter::beginAssembly(AsmPrinter &AP) {
70 AP.OutStreamer.SwitchSection(AP.getObjFileLowering().getTextSection());
71 EmitCamlGlobal(getModule(), AP, "code_begin");
73 AP.OutStreamer.SwitchSection(AP.getObjFileLowering().getDataSection());
74 EmitCamlGlobal(getModule(), AP, "data_begin");
93 void OcamlGCMetadataPrinter::finishAssembly(AsmPrinter &AP) {
94 unsigned IntPtrSize = AP.TM.getDataLayout()->getPointerSize();
96 AP.OutStreamer.SwitchSection(AP.getObjFileLowering().getTextSection());
97 EmitCamlGlobal(getModule(), AP, "code_end");
99 AP.OutStreamer.SwitchSection(AP.getObjFileLowering().getDataSection());
100 EmitCamlGlobal(getModule(), AP, "data_end");
103 AP.OutStreamer.EmitIntValue(0, IntPtrSize);
105 AP.OutStreamer.SwitchSection(AP.getObjFileLowering().getDataSection());
106 EmitCamlGlobal(getModule(), AP, "frametable");
120 AP.EmitInt16(NumDescriptors);
121 AP.EmitAlignment(IntPtrSize == 4 ? 2 : 3);
135 AP.OutStreamer.AddComment("live roots for " +
137 AP.OutStreamer.AddBlankLine();
148 AP.OutStreamer.EmitSymbolValue(J->Label, IntPtrSize);
149 AP.EmitInt16(FrameSize);
150 AP.EmitInt16(LiveCount);
160 AP.EmitInt16(K->StackOffset);
163 AP.EmitAlignment(IntPtrSize == 4 ? 2 : 3);