| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MachineModuleInfo.cpp | 60 : TM(std::move(MMI.TM)), in MachineModuleInfo() 61 Context(MMI.TM.getTargetTriple(), MMI.TM.getMCAsmInfo(), in MachineModuleInfo() 62 MMI.TM.getMCRegisterInfo(), MMI.TM.getMCSubtargetInfo(), nullptr, in MachineModuleInfo() 66 ObjFileMMI = MMI.ObjFileMMI; in MachineModuleInfo() 69 TheModule = MMI.TheModule; in MachineModuleInfo() 160 MachineModuleInfo &MMI = in runOnFunction() local 222 MMI.initialize(); in doInitialization() 223 MMI.TheModule = &M; in doInitialization() 242 MMI.finalize(); in doFinalization() 251 MMI.TheModule = &M; in run() [all …]
|
| H A D | MachineOutliner.cpp | 438 MachineModuleInfo &MMI); 655 MachineFunction &MF = MMI.getOrCreateMachineFunction(*F); in createOutlinedFunction() 877 MachineModuleInfo &MMI) { in populateMapper() argument 889 MachineFunction *MF = MMI.getMachineFunction(F); in populateMapper() 934 const Module &M, const MachineModuleInfo &MMI, in initSizeRemarkInfo() argument 939 MachineFunction *MF = MMI.getMachineFunction(F); in initSizeRemarkInfo() 950 const Module &M, const MachineModuleInfo &MMI, in emitInstrCountChangedRemark() argument 956 MachineFunction *MF = MMI.getMachineFunction(F); in emitInstrCountChangedRemark() 1052 populateMapper(Mapper, M, MMI); in doOutline() 1070 initSizeRemarkInfo(M, MMI, FunctionToInstrCount); in doOutline() [all …]
|
| /llvm-project-15.0.7/polly/lib/Transform/ |
| H A D | MatmulOptimizer.cpp | 288 if (isMatMulOperandAcc(StmtDomain, AccMap, MMI.i, MMI.j) && !MMI.ReadFromC) { in isMatMulNonScalarReadAccess() 292 if (isMatMulOperandAcc(StmtDomain, AccMap, MMI.i, MMI.k) && !MMI.A) { in isMatMulNonScalarReadAccess() 293 MMI.A = MemAccess; in isMatMulNonScalarReadAccess() 296 if (isMatMulOperandAcc(StmtDomain, AccMap, MMI.k, MMI.j) && !MMI.B) { in isMatMulNonScalarReadAccess() 297 MMI.B = MemAccess; in isMatMulNonScalarReadAccess() 416 if (!isMatMulOperandAcc(Stmt->getDomain(), AccMap, MMI.i, MMI.j)) in containsMatrMult() 425 if (!MMI.WriteToC || !containsOnlyMatrMultAcc(PartialSchedule, MMI)) in containsMatrMult() 428 if (!MMI.A || !MMI.B || !MMI.ReadFromC) in containsMatrMult() 964 int NewJ = MMI.j == DimOutNum - 3 ? MMI.i : MMI.j; in optimizeMatMulPattern() 965 int NewK = MMI.k == DimOutNum - 3 ? MMI.i : MMI.k; in optimizeMatMulPattern() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AVR/ |
| H A D | AVRAsmPrinter.cpp | 248 const AVRTargetMachine &TM = (const AVRTargetMachine &)MMI->getTarget(); in emitStartOfAsmFile() 255 MMI->getContext().getOrCreateSymbol(StringRef("__tmp_reg__")), in emitStartOfAsmFile() 259 MMI->getContext().getOrCreateSymbol(StringRef("__zero_reg__")), in emitStartOfAsmFile() 263 MMI->getContext().getOrCreateSymbol(StringRef("__SREG__")), in emitStartOfAsmFile() 264 MCConstantExpr::create(SubTM->getIORegSREG(), MMI->getContext())); in emitStartOfAsmFile() 268 MMI->getContext().getOrCreateSymbol(StringRef("__SP_H__")), in emitStartOfAsmFile() 269 MCConstantExpr::create(SubTM->getIORegSPH(), MMI->getContext())); in emitStartOfAsmFile() 272 MMI->getContext().getOrCreateSymbol(StringRef("__SP_L__")), in emitStartOfAsmFile() 273 MCConstantExpr::create(SubTM->getIORegSPL(), MMI->getContext())); in emitStartOfAsmFile() 277 MMI->getContext().getOrCreateSymbol(StringRef("__EIND__")), in emitStartOfAsmFile() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | IndirectThunks.h | 30 void createThunkFunction(MachineModuleInfo &MMI, StringRef Name, 39 bool run(MachineModuleInfo &MMI, MachineFunction &MF); 43 void ThunkInserter<Derived>::createThunkFunction(MachineModuleInfo &MMI, in createThunkFunction() argument 48 Module &M = const_cast<Module &>(*MMI.getModule()); in createThunkFunction() 75 MachineFunction &MF = MMI.getOrCreateMachineFunction(*F); in createThunkFunction() 86 bool ThunkInserter<Derived>::run(MachineModuleInfo &MMI, MachineFunction &MF) { in run() argument 103 getDerived().insertThunks(MMI); in run()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86IndirectThunks.cpp | 70 void insertThunks(MachineModuleInfo &MMI); 79 void insertThunks(MachineModuleInfo &MMI) { in insertThunks() 80 createThunkFunction(MMI, R11LVIThunkName); in insertThunks() 124 static bool runTIs(MachineModuleInfo &MMI, MachineFunction &MF, in runTIs() argument 128 Modified |= std::get<ThunkInserterT>(ThunkInserters).run(MMI, MF)...}; in runTIs() 135 void RetpolineThunkInserter::insertThunks(MachineModuleInfo &MMI) { in insertThunks() argument 136 if (MMI.getTarget().getTargetTriple().getArch() == Triple::x86_64) in insertThunks() 137 createThunkFunction(MMI, R11RetpolineName); in insertThunks() 141 createThunkFunction(MMI, Name); in insertThunks() 268 auto &MMI = getAnalysis<MachineModuleInfoWrapperPass>().getMMI(); in runOnMachineFunction() local [all …]
|
| H A D | X86TargetObjectFile.cpp | 20 MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getTTypeGlobalReference() argument 33 GV, Encoding, TM, MMI, Streamer); in getTTypeGlobalReference() 38 MachineModuleInfo *MMI) const { in getCFIPersonalitySymbol() 44 int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getIndirectSymViaGOTPCRel() argument
|
| H A D | X86TargetObjectFile.h | 23 MachineModuleInfo *MMI, 30 MachineModuleInfo *MMI) const override; 35 MachineModuleInfo *MMI,
|
| /llvm-project-15.0.7/llvm/unittests/MIR/ |
| H A D | MachineMetadata.cpp | 229 MachineModuleInfo MMI(TM.get()); in TEST_F() local 230 M = parseMIR(*TM, MIRString, "test0", MMI); in TEST_F() 340 MachineModuleInfo MMI(TM.get()); in TEST_F() local 341 M = parseMIR(*TM, MIRString, "test0", MMI); in TEST_F() 378 MachineModuleInfo MMI(TM.get()); in TEST_F() local 379 M = parseMIR(*TM, MIRString, "test0", MMI); in TEST_F() 476 MachineModuleInfo MMI(TM.get()); in TEST_F() local 565 MachineModuleInfo MMI(TM.get()); in TEST_F() local 566 M = parseMIR(*TM, MIRString, "foo", MMI); in TEST_F() 596 MachineModuleInfo MMI(TM.get()); in TEST_F() local [all …]
|
| /llvm-project-15.0.7/bolt/include/bolt/Profile/ |
| H A D | DataAggregator.h | 419 void adjustAddress(uint64_t &Address, const MMapInfo &MMI) const { in adjustAddress() argument 420 if (Address >= MMI.MMapAddress && Address < MMI.MMapAddress + MMI.Size) { in adjustAddress() 421 Address -= MMI.BaseAddress; in adjustAddress() 422 } else if (Address < MMI.Size) { in adjustAddress() 429 void adjustLBR(LBREntry &LBR, const MMapInfo &MMI) const { in adjustLBR() argument 430 adjustAddress(LBR.From, MMI); in adjustLBR() 431 adjustAddress(LBR.To, MMI); in adjustLBR()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64LowerHomogeneousPrologEpilog.cpp | 47 AArch64LowerHomogeneousPE(Module *M, MachineModuleInfo *MMI) in AArch64LowerHomogeneousPE() argument 48 : M(M), MMI(MMI) {} in AArch64LowerHomogeneousPE() 55 MachineModuleInfo *MMI; member in __anon4a0fb9dc0111::AArch64LowerHomogeneousPE 106 MachineModuleInfo *MMI = in runOnModule() local 108 return AArch64LowerHomogeneousPE(&M, MMI).run(); in runOnModule() 117 MachineFunction *MF = MMI->getMachineFunction(F); in run() 177 MachineFunction &MF = MMI->getOrCreateMachineFunction(*F); in createFrameHelperMachineFunction() 282 auto &MF = createFrameHelperMachineFunction(M, MMI, Name); in getOrCreateFrameHelper() 463 getOrCreateFrameHelper(M, MMI, Regs, FrameHelperType::Epilog); in lowerEpilog() 533 M, MMI, Regs, FrameHelperType::PrologFrame, *FpOffset); in lowerProlog() [all …]
|
| H A D | AArch64TargetObjectFile.cpp | 34 MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getTTypeGlobalReference() argument 50 GV, Encoding, TM, MMI, Streamer); in getTTypeGlobalReference() 55 MachineModuleInfo *MMI) const { in getCFIPersonalitySymbol() 61 int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getIndirectSymViaGOTPCRel() argument
|
| H A D | AArch64TargetObjectFile.h | 35 MachineModuleInfo *MMI, 40 MachineModuleInfo *MMI) const override; 45 MachineModuleInfo *MMI,
|
| H A D | AArch64SLSHardening.cpp | 194 void insertThunks(MachineModuleInfo &MMI); 202 void SLSBLRThunkInserter::insertThunks(MachineModuleInfo &MMI) { in insertThunks() argument 207 createThunkFunction(MMI, T.Name, ComdatThunks); in insertThunks() 421 static bool runTIs(MachineModuleInfo &MMI, MachineFunction &MF, in runTIs() argument 425 Modified |= std::get<ThunkInserterT>(ThunkInserters).run(MMI, MF)...}; in runTIs() 445 auto &MMI = getAnalysis<MachineModuleInfoWrapperPass>().getMMI(); in runOnMachineFunction() local 446 return runTIs(MMI, MF, TIs); in runOnMachineFunction()
|
| /llvm-project-15.0.7/llvm/unittests/CodeGen/GlobalISel/ |
| H A D | GISelMITest.h | 60 MachineModuleInfo &MMI) { in parseMIR() argument 73 if (MIR->parseMachineFunctions(*M, MMI)) in parseMIR() 82 auto MMI = std::make_unique<MachineModuleInfo>(&TM); in createDummyModule() local 84 parseMIR(Context, MIR, TM, MIRString, FuncName, *MMI); in createDummyModule() 85 return make_pair(std::move(M), std::move(MMI)); in createDummyModule() 89 const MachineModuleInfo *MMI) { in getMFFromMMI() argument 91 auto *MF = MMI->getMachineFunction(*F); in getMFFromMMI()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DebugHandlerBase.cpp | 101 DebugHandlerBase::DebugHandlerBase(AsmPrinter *A) : Asm(A), MMI(Asm->MMI) {} in DebugHandlerBase() 236 static bool hasDebugInfo(const MachineModuleInfo *MMI, in hasDebugInfo() argument 238 if (!MMI->hasDebugInfo()) in hasDebugInfo() 253 if (!Asm || !hasDebugInfo(MMI, MF)) { in beginFunction() 349 if (!Asm || !MMI->hasDebugInfo()) in beginInstruction() 368 PrevLabel = MMI->getContext().createTempSymbol(); in beginInstruction() 375 if (!Asm || !MMI->hasDebugInfo()) in endInstruction() 402 PrevLabel = MMI->getContext().createTempSymbol(); in endInstruction() 410 if (Asm && hasDebugInfo(MMI, MF)) in endFunction()
|
| H A D | AsmPrinterInlineAsm.cpp | 46 MCContext &Context = MMI->getContext(); in addInlineAsmDiagBuffer() 98 SourceMgr &SrcMgr = *MMI->getContext().getInlineSourceManager(); in emitInlineAsm() 133 MachineModuleInfo *MMI, const MCAsmInfo *MAI, in EmitInlineAsmStr() argument 151 AsmPrinterVariant = MMI->getTarget().unqualifiedInlineAsmVariant(); in EmitInlineAsmStr() 300 MMI->getContext().registerInlineAsmLabel(Sym); in EmitInlineAsmStr() 316 MMI->getModule()->getContext().emitError(LocCookie, Msg.str()); in EmitInlineAsmStr() 377 EmitInlineAsmStr(AsmStr, MI, MMI, MAI, AP, LocCookie, OS); in emitInlineAsm() 410 MMI->getModule()->getContext().diagnose(DiagnosticInfoInlineAsm( in emitInlineAsm() 412 MMI->getModule()->getContext().diagnose( in emitInlineAsm()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUMachineModuleInfo.cpp | 20 AMDGPUMachineModuleInfo::AMDGPUMachineModuleInfo(const MachineModuleInfo &MMI) in AMDGPUMachineModuleInfo() argument 21 : MachineModuleInfoELF(MMI) { in AMDGPUMachineModuleInfo() 22 LLVMContext &CTX = MMI.getModule()->getContext(); in AMDGPUMachineModuleInfo()
|
| /llvm-project-15.0.7/llvm/unittests/Target/WebAssembly/ |
| H A D | WebAssemblyExceptionInfoTest.cpp | 45 const char *FuncName, MachineModuleInfo &MMI) { in parseMIR() argument 58 if (MIR->parseMachineFunctions(*M, MMI)) in parseMIR() 158 MachineModuleInfo MMI(TM.get()); in TEST() local 160 parseMIR(Context, MIR, *TM, MIRString, "test0", MMI); in TEST() 164 auto *MF = MMI.getMachineFunction(*F); in TEST() 333 MachineModuleInfo MMI(TM.get()); in TEST() local 335 parseMIR(Context, MIR, *TM, MIRString, "test1", MMI); in TEST() 339 auto *MF = MMI.getMachineFunction(*F); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Target/Sparc/ |
| H A D | SparcTargetObjectFile.cpp | 25 MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getTTypeGlobalReference() argument 28 MachineModuleInfoELF &ELFMMI = MMI->getObjFileInfo<MachineModuleInfoELF>(); in getTTypeGlobalReference() 46 MMI, Streamer); in getTTypeGlobalReference()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyMCLowerPrePass.cpp | 76 MachineModuleInfo &MMI = MMIWP->getMMI(); in runOnModule() local 77 MachineModuleInfoWasm &MMIW = MMI.getObjFileInfo<MachineModuleInfoWasm>(); in runOnModule() 80 MachineFunction *MF = MMI.getMachineFunction(F); in runOnModule()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVDuplicatesTracker.cpp | 35 MachineModuleInfo *MMI = nullptr) { in buildDepsGraph() argument 74 if (MMI) { in buildDepsGraph() 75 const Module *M = MMI->getModule(); in buildDepsGraph() 77 const MachineFunction *MF = MMI->getMachineFunction(*F); in buildDepsGraph()
|
| /llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceIRReferences.cpp | 40 if (auto *MF = WorkItem.MMI->getMachineFunction(F)) in stripIRFromInstructions() 47 if (auto *MF = WorkItem.MMI->getMachineFunction(F)) { in stripIRFromBlocks() 59 if (auto *MF = WorkItem.MMI->getMachineFunction(F)) { in stripIRFromFunctions()
|
| /llvm-project-15.0.7/llvm/tools/llvm-reduce/ |
| H A D | ReducerWorkItem.cpp | 437 MMM->MMI = std::make_unique<MachineModuleInfo>(LLVMTM); in parseReducerWorkItem() 438 MParser->parseMachineFunctions(*M, *MMM->MMI); in parseReducerWorkItem() 484 CloneMMM->MMI = std::make_unique<MachineModuleInfo>(LLVMTM); in cloneReducerWorkItem() 487 if (auto *MF = MMM.MMI->getMachineFunction(F)) in cloneReducerWorkItem() 488 CloneMMM->MMI->insertFunction(F, cloneMF(MF, *CloneMMM->MMI)); in cloneReducerWorkItem() 500 if (!MMM.MMI) in verifyReducerWorkItem() 504 if (const MachineFunction *MF = MMM.MMI->getMachineFunction(F)) { in verifyReducerWorkItem() 514 if (MMI) { in print() 517 if (auto *MF = MMI->getMachineFunction(F)) in print() 602 if (auto *MF = MMI->getMachineFunction(F)) in computeMIRComplexityScore()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMSLSHardening.cpp | 173 void insertThunks(MachineModuleInfo &MMI); 181 void SLSBLRThunkInserter::insertThunks(MachineModuleInfo &MMI) { in insertThunks() argument 186 createThunkFunction(MMI, T.Name, ComdatThunks); in insertThunks() 394 static bool runTIs(MachineModuleInfo &MMI, MachineFunction &MF, in runTIs() argument 398 Modified |= std::get<ThunkInserterT>(ThunkInserters).run(MMI, MF)...}; in runTIs() 418 auto &MMI = getAnalysis<MachineModuleInfoWrapperPass>().getMMI(); in runOnMachineFunction() local 419 return runTIs(MMI, MF, TIs); in runOnMachineFunction()
|