Lines Matching refs:AP
41 void beginAssembly(Module &M, GCModuleInfo &Info, AsmPrinter &AP) override;
42 void finishAssembly(Module &M, GCModuleInfo &Info, AsmPrinter &AP) override;
52 static void EmitCamlGlobal(const Module &M, AsmPrinter &AP, const char *Id) { in EmitCamlGlobal() argument
68 MCSymbol *Sym = AP.OutContext.getOrCreateSymbol(TmpStr); in EmitCamlGlobal()
70 AP.OutStreamer->EmitSymbolAttribute(Sym, MCSA_Global); in EmitCamlGlobal()
71 AP.OutStreamer->EmitLabel(Sym); in EmitCamlGlobal()
75 AsmPrinter &AP) { in beginAssembly() argument
76 AP.OutStreamer->SwitchSection(AP.getObjFileLowering().getTextSection()); in beginAssembly()
77 EmitCamlGlobal(M, AP, "code_begin"); in beginAssembly()
79 AP.OutStreamer->SwitchSection(AP.getObjFileLowering().getDataSection()); in beginAssembly()
80 EmitCamlGlobal(M, AP, "data_begin"); in beginAssembly()
100 AsmPrinter &AP) { in finishAssembly() argument
103 AP.OutStreamer->SwitchSection(AP.getObjFileLowering().getTextSection()); in finishAssembly()
104 EmitCamlGlobal(M, AP, "code_end"); in finishAssembly()
106 AP.OutStreamer->SwitchSection(AP.getObjFileLowering().getDataSection()); in finishAssembly()
107 EmitCamlGlobal(M, AP, "data_end"); in finishAssembly()
110 AP.OutStreamer->EmitIntValue(0, IntPtrSize); in finishAssembly()
112 AP.OutStreamer->SwitchSection(AP.getObjFileLowering().getDataSection()); in finishAssembly()
113 EmitCamlGlobal(M, AP, "frametable"); in finishAssembly()
132 AP.emitInt16(NumDescriptors); in finishAssembly()
133 AP.EmitAlignment(IntPtrSize == 4 ? 2 : 3); in finishAssembly()
154 AP.OutStreamer->AddComment("live roots for " + in finishAssembly()
156 AP.OutStreamer->AddBlankLine(); in finishAssembly()
168 AP.OutStreamer->EmitSymbolValue(J->Label, IntPtrSize); in finishAssembly()
169 AP.emitInt16(FrameSize); in finishAssembly()
170 AP.emitInt16(LiveCount); in finishAssembly()
181 AP.emitInt16(K->StackOffset); in finishAssembly()
184 AP.EmitAlignment(IntPtrSize == 4 ? 2 : 3); in finishAssembly()