Lines Matching refs:AP
40 void beginAssembly(Module &M, GCModuleInfo &Info, AsmPrinter &AP) override;
41 void finishAssembly(Module &M, GCModuleInfo &Info, AsmPrinter &AP) override;
51 static void EmitCamlGlobal(const Module &M, AsmPrinter &AP, const char *Id) { in EmitCamlGlobal() argument
67 MCSymbol *Sym = AP.OutContext.getOrCreateSymbol(TmpStr); in EmitCamlGlobal()
69 AP.OutStreamer->emitSymbolAttribute(Sym, MCSA_Global); in EmitCamlGlobal()
70 AP.OutStreamer->emitLabel(Sym); in EmitCamlGlobal()
74 AsmPrinter &AP) { in beginAssembly() argument
75 AP.OutStreamer->switchSection(AP.getObjFileLowering().getTextSection()); in beginAssembly()
76 EmitCamlGlobal(M, AP, "code_begin"); in beginAssembly()
78 AP.OutStreamer->switchSection(AP.getObjFileLowering().getDataSection()); in beginAssembly()
79 EmitCamlGlobal(M, AP, "data_begin"); in beginAssembly()
99 AsmPrinter &AP) { in finishAssembly() argument
102 AP.OutStreamer->switchSection(AP.getObjFileLowering().getTextSection()); in finishAssembly()
103 EmitCamlGlobal(M, AP, "code_end"); in finishAssembly()
105 AP.OutStreamer->switchSection(AP.getObjFileLowering().getDataSection()); in finishAssembly()
106 EmitCamlGlobal(M, AP, "data_end"); in finishAssembly()
109 AP.OutStreamer->emitIntValue(0, IntPtrSize); in finishAssembly()
111 AP.OutStreamer->switchSection(AP.getObjFileLowering().getDataSection()); in finishAssembly()
112 EmitCamlGlobal(M, AP, "frametable"); in finishAssembly()
127 AP.emitInt16(NumDescriptors); in finishAssembly()
128 AP.emitAlignment(IntPtrSize == 4 ? Align(4) : Align(8)); in finishAssembly()
148 AP.OutStreamer->AddComment("live roots for " + in finishAssembly()
150 AP.OutStreamer->addBlankLine(); in finishAssembly()
163 AP.OutStreamer->emitSymbolValue(J->Label, IntPtrSize); in finishAssembly()
164 AP.emitInt16(FrameSize); in finishAssembly()
165 AP.emitInt16(LiveCount); in finishAssembly()
176 AP.emitInt16(K->StackOffset); in finishAssembly()
179 AP.emitAlignment(IntPtrSize == 4 ? Align(4) : Align(8)); in finishAssembly()