Home
last modified time | relevance | path

Searched refs:MST (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/MIR/
H A DMachineMetadata.cpp50 void addHooks(ModuleSlotTracker &MST, const MachineOperand &MO) { in addHooks() argument
126 ModuleSlotTracker MST(M.get()); in TEST_F() local
127 addHooks(MST, MO); in TEST_F()
164 ModuleSlotTracker MST(M.get()); in TEST_F() local
165 addHooks(MST, MO); in TEST_F()
256 MachineModuleSlotTracker MST(MF); in TEST_F() local
271 MST.collectMachineMDNodes(MDList); in TEST_F()
406 MachineModuleSlotTracker MST(MF); in TEST_F() local
421 MST.collectMachineMDNodes(MDList); in TEST_F()
504 MachineModuleSlotTracker MST(MF); in TEST_F() local
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMIRPrinter.cpp137 ModuleSlotTracker &MST; member in llvm::MIPrinter
150 : OS(OS), MST(MST), RegisterMaskIds(RegisterMaskIds), in MIPrinter()
218 MachineModuleSlotTracker MST(&MF); in print() local
219 MST.incorporateFunction(MF.getFunction()); in print()
221 convertStackObjects(YamlMF, MF, MST); in print()
222 convertCallSiteObjects(YamlMF, MF, MST); in print()
298 Metas[i]->printAsOperand(StrOS, MST); in printStackObjectDbgInfo()
546 MST.collectMachineMDNodes(MDList); in convertMachineMetadataNodes()
664 &MST); in print()
835 DL->printAsOperand(OS, MST); in print()
[all …]
H A DMachineOperand.cpp455 ModuleSlotTracker &MST) { in printIRBlockReference() argument
463 if (F == MST.getCurrentFunction()) { in printIRBlockReference()
464 Slot = MST.getLocalSlot(&BB); in printIRBlockReference()
874 MST); in print()
926 getMetadata()->printAsOperand(OS, MST); in print()
1136 MIRFormatter::printIRValue(OS, *Val, MST); in print()
1162 OS, /*PrintType=*/false, MST); in print()
1195 AAInfo.TBAA->printAsOperand(OS, MST); in print()
1199 AAInfo.Scope->printAsOperand(OS, MST); in print()
1203 AAInfo.NoAlias->printAsOperand(OS, MST); in print()
[all …]
H A DMachineInstr.cpp1533 ModuleSlotTracker MST(M); in print() local
1535 MST.incorporateFunction(*F); in print()
1536 print(OS, MST, IsStandalone, SkipOpers, SkipDebugLoc, AddNewLine, TII); in print()
1539 void MachineInstr::print(raw_ostream &OS, ModuleSlotTracker &MST, in print() argument
1575 MO.print(OS, MST, TypeToPrint, StartOp, /*PrintDef=*/false, IsStandalone, in print()
1671 MO.print(OS, MST, TypeToPrint, i, /*PrintDef=*/true, IsStandalone, in print()
1682 MO.print(OS, MST, TypeToPrint, i, /*PrintDef=*/true, IsStandalone, in print()
1720 MO.print(OS, MST, TypeToPrint, i, /*PrintDef=*/true, IsStandalone, in print()
1749 HeapAllocMarker->printAsOperand(OS, MST); in print()
1763 DL->printAsOperand(OS, MST); in print()
[all …]
H A DMachineBasicBlock.cpp339 ModuleSlotTracker MST(M); in print() local
340 MST.incorporateFunction(F); in print()
341 print(OS, MST, Indexes, IsStandalone); in print()
344 void MachineBasicBlock::print(raw_ostream &OS, ModuleSlotTracker &MST, in print() argument
357 printName(OS, PrintNameIr | PrintNameAttributes, &MST); in print()
438 MI.print(OS, MST, IsStandalone, /*SkipOpers=*/false, /*SkipDebugLoc=*/false, in print()
H A DMachineFunction.cpp599 ModuleSlotTracker MST(getFunction().getParent()); in print() local
600 MST.incorporateFunction(getFunction()); in print()
604 BB.print(OS, MST, Indexes, /*IsStandalone=*/true); in print()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DValueTest.cpp146 ModuleSlotTracker MST(M.get()); in TEST() local
159 INST->print(OS, MST); \ in TEST()
178 INST->printAsOperand(OS, TYPE, MST); \ in TEST()
218 ModuleSlotTracker MST(M.get()); in TEST() local
219 MST.incorporateFunction(*F); in TEST()
220 EXPECT_EQ(MST.getLocalSlot(I0), 0); in TEST()
221 EXPECT_EQ(MST.getLocalSlot(I1), 1); in TEST()
222 EXPECT_EQ(MST.getLocalSlot(&EntryBB), -1); in TEST()
223 EXPECT_EQ(MST.getLocalSlot(BB2), 2); in TEST()
246 ModuleSlotTracker MST(M.get()); in TEST() local
[all …]
H A DMetadataTest.cpp365 ModuleSlotTracker MST(&M); in TEST_F() local
366 EXPECT_PRINTER_EQ("!0 = distinct !{}", N0->print(OS, MST)); in TEST_F()
367 EXPECT_PRINTER_EQ("!1 = distinct !{}", N1->print(OS, MST)); in TEST_F()
397 ModuleSlotTracker MST(&M); in TEST_F() local
398 EXPECT_PRINTER_EQ("!0 = distinct !{}", MAV0->print(OS, MST)); in TEST_F()
399 EXPECT_PRINTER_EQ("!1 = distinct !{}", MAV1->print(OS, MST)); in TEST_F()
400 EXPECT_PRINTER_EQ("!0", MAV0->printAsOperand(OS, false, MST)); in TEST_F()
401 EXPECT_PRINTER_EQ("!1", MAV1->printAsOperand(OS, false, MST)); in TEST_F()
402 EXPECT_PRINTER_EQ("metadata !0", MAV0->printAsOperand(OS, true, MST)); in TEST_F()
423 ModuleSlotTracker MST(&M); in TEST_F() local
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DSSAContext.cpp44 ModuleSlotTracker MST{BB->getParent()->getParent(), false}; in print() local
45 MST.incorporateFunction(*BB->getParent()); in print()
46 Out << MST.getLocalSlot(BB); in print()
H A DAsmWriter.cpp4523 if (auto *ST = MST.getMachine()) in print()
4594 print(ROS, MST, IsForDebug); in print()
4602 MST.getMachine() ? *MST.getMachine() : EmptySlotTable; in print()
4605 MST.incorporateFunction(*F); in print()
4659 TypePrinting TypePrinter(MST.getModule()); in printAsOperandImpl()
4665 AsmWriterContext WriterCtx(&TypePrinter, MST.getMachine(), MST.getModule()); in printAsOperandImpl()
4680 ModuleSlotTracker MST(Machine, M); in printAsOperand() local
4687 if (printWithoutType(*this, O, MST.getMachine(), MST.getModule())) in printAsOperand()
4776 ModuleSlotTracker MST(M, isa<MDNode>(this)); in printAsOperand() local
4787 ModuleSlotTracker MST(M, isa<MDNode>(this)); in print() local
[all …]
H A DVerifier.cpp127 ModuleSlotTracker MST; member
140 : OS(OS), M(M), MST(&M), TT(M.getTargetTriple()), DL(M.getDataLayout()), in VerifierSupport()
155 V.print(*OS, MST); in Write()
158 V.printAsOperand(*OS, true, MST); in Write()
166 MD->print(*OS, MST, &M); in Write()
177 NMD->print(*OS, MST); in Write()
384 BB.printAsOperand(*OS, true, MST); in verify()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DMIRFormatter.h56 printCustomPseudoSourceValue(raw_ostream &OS, ModuleSlotTracker &MST, in printCustomPseudoSourceValue() argument
73 ModuleSlotTracker &MST);
H A DMachineMemOperand.h332 void print(raw_ostream &OS, ModuleSlotTracker &MST,
H A DMachineOperand.h301 void print(raw_ostream &os, ModuleSlotTracker &MST, LLT TypeToPrint,
H A DMachineBasicBlock.h1072 void print(raw_ostream &OS, ModuleSlotTracker &MST,
H A DMachineInstr.h1681 void print(raw_ostream &OS, ModuleSlotTracker &MST, bool IsStandalone = true,
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DGCOVProfiling.cpp739 MST.addEdge(SrcBB, InstrBB, 0); in getInstrBB()
740 MST.addEdge(InstrBB, DestBB, 0).InMST = true; in getInstrBB()
749 for (auto &E : make_pointee_range(MST.AllEdges)) { in dumpEdges()
818 auto &E = *MST.AllEdges[I]; in emitProfileNotes()
823 E.Place = getInstrBB(MST, E, ExecBlocks); in emitProfileNotes()
838 MST.AllEdges.begin(), MST.AllEdges.end(), in emitProfileNotes()
840 MST.AllEdges.begin(); in emitProfileNotes()
842 Edge &E = *MST.AllEdges[I]; in emitProfileNotes()
851 MST.AllEdges.begin(), MST.AllEdges.begin() + Measured, in emitProfileNotes()
869 LLVM_DEBUG(dumpEdges(MST, Func)); in emitProfileNotes()
[all …]
H A DPGOInstrumentation.cpp511 CFGMST<Edge, BBInfo> MST; member in __anoncdb75a9b0211::FuncPGOInstrumentation
541 MST(F, InstrumentFuncEntry, BPI, BFI) { in FuncPGOInstrumentation()
548 NumOfPGOBB += MST.BBInfos.size(); in FuncPGOInstrumentation()
553 NumOfCSPGOBB += MST.BBInfos.size(); in FuncPGOInstrumentation()
562 for (auto &E : MST.AllEdges) { in FuncPGOInstrumentation()
616 updateJCH((uint64_t)MST.AllEdges.size()); in computeCFGHash()
711 EdgeList.reserve(MST.AllEdges.size()); in getInstrumentBBs()
712 for (auto &E : MST.AllEdges) in getInstrumentBBs()
722 for (auto &E : MST.AllEdges) { in getInstrumentBBs()
781 MST.addEdge(SrcBB, InstrBB, 0); in getInstrBB()
[all …]
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DMachineOperandTest.cpp298 ModuleSlotTracker MST(&M); in TEST() local
314 MO.print(OS, MST, LLT{}, /*OpIdx*/~0U, /*PrintDef=*/false, /*IsStandalone=*/false, in TEST()
/llvm-project-15.0.7/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp344 static void mapValueToSlot(const Value *V, ModuleSlotTracker &MST, in mapValueToSlot() argument
346 int Slot = MST.getLocalSlot(V); in mapValueToSlot()
355 ModuleSlotTracker MST(F.getParent(), /*ShouldInitializeAllMetadata=*/false); in initSlots2Values() local
356 MST.incorporateFunction(F); in initSlots2Values()
358 mapValueToSlot(&Arg, MST, Slots2Values); in initSlots2Values()
360 mapValueToSlot(&BB, MST, Slots2Values); in initSlots2Values()
362 mapValueToSlot(&I, MST, Slots2Values); in initSlots2Values()
3384 ModuleSlotTracker MST(F.getParent(), /*ShouldInitializeAllMetadata=*/false); in initSlots2BasicBlocks() local
3385 MST.incorporateFunction(F); in initSlots2BasicBlocks()
3389 int Slot = MST.getLocalSlot(&BB); in initSlots2BasicBlocks()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DMetadata.h126 void print(raw_ostream &OS, ModuleSlotTracker &MST, const Module *M = nullptr,
138 void printAsOperand(raw_ostream &OS, ModuleSlotTracker &MST,
1190 void printTree(raw_ostream &OS, ModuleSlotTracker &MST,
1667 void print(raw_ostream &ROS, ModuleSlotTracker &MST,
H A DValue.h237 void print(raw_ostream &O, ModuleSlotTracker &MST,
251 ModuleSlotTracker &MST) const;
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGDumper.cpp527 ModuleSlotTracker MST(M); in printMemOperand() local
529 MST.incorporateFunction(MF->getFunction()); in printMemOperand()
531 MMO.print(OS, MST, SSNs, Ctx, MFI, TII); in printMemOperand()
H A DLegalizeVectorTypes.cpp5916 MaskedStoreSDNode *MST = cast<MaskedStoreSDNode>(N); in WidenVecOp_MSTORE() local
5917 SDValue Mask = MST->getMask(); in WidenVecOp_MSTORE()
5919 SDValue StVal = MST->getValue(); in WidenVecOp_MSTORE()
5947 return DAG.getMaskedStore(MST->getChain(), dl, StVal, MST->getBasePtr(), in WidenVecOp_MSTORE()
5948 MST->getOffset(), Mask, MST->getMemoryVT(), in WidenVecOp_MSTORE()
5949 MST->getMemOperand(), MST->getAddressingMode(), in WidenVecOp_MSTORE()
5950 false, MST->isCompressingStore()); in WidenVecOp_MSTORE()
H A DDAGCombiner.cpp10656 SDValue Mask = MST->getMask(); in visitMSTORE()
10657 SDValue Chain = MST->getChain(); in visitMSTORE()
10658 SDValue Value = MST->getValue(); in visitMSTORE()
10659 SDValue Ptr = MST->getBasePtr(); in visitMSTORE()
10669 !MST->isCompressingStore() && !MST->isTruncatingStore()) in visitMSTORE()
10670 return DAG.getStore(MST->getChain(), SDLoc(N), MST->getValue(), in visitMSTORE()
10671 MST->getBasePtr(), MST->getPointerInfo(), in visitMSTORE()
10679 if (MST->isTruncatingStore() && MST->isUnindexed() && in visitMSTORE()
10704 MST->isUnindexed() && in visitMSTORE()
10710 MST->getOffset(), Mask, MST->getMemoryVT(), in visitMSTORE()
[all …]

12