Home
last modified time | relevance | path

Searched refs:getModule (Results 1 – 25 of 228) sorted by relevance

12345678910

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.cpp511 !getModule().getSourceFileName().empty()) { in CodeGenModule()
512 std::string Path = getModule().getSourceFileName(); in CodeGenModule()
524 getModule().addModuleFlag(llvm::Module::Error, "NumRegisterParameters", in CodeGenModule()
994 getModule().setProfileSummary( in Release()
1009 CodeGenPGO(*this).setValueProfilingFlag(getModule()); in Release()
1010 CodeGenPGO(*this).setProfileVersion(getModule()); in Release()
1029 getModule().addModuleFlag(llvm::Module::Error, in Release()
1041 getModule().addModuleFlag(llvm::Module::Error, "amdgpu_printf_kind", in Release()
1065 getModule(), ATy, false, llvm::GlobalValue::InternalLinkage, in Release()
1073 getModule(), Int8Ty, false, llvm::GlobalValue::ExternalLinkage, in Release()
[all …]
H A DCGHLSLRuntime.cpp179 CGM.getModule() in emitBufferGlobalsAndMetadata()
270 CGM.getModule().insertGlobalVariable(BufGV); in addBuffer()
301 llvm::Module &M = CGM.getModule(); in finishCodeGen()
421 return createSPIRVBuiltinLoad(B, CGM.getModule(), Ty, "sv_position", in emitInputSemantic()
431 llvm::Module &M = CGM.getModule(); in emitEntryFunction()
518 llvm::Module &M = CGM.getModule(); in generateGlobalCtorDtorCalls()
571 ("_init_buffer_" + GV->getName()).str(), CGM.getModule()); in initializeBuffer()
577 const DataLayout &DL = CGM.getModule().getDataLayout(); in initializeBuffer()
H A DCGHLSLBuiltins.cpp658 Intrinsic::getOrInsertDeclaration(&CGM.getModule(), ID), {Op}); in EmitHLSLBuiltinExpr()
667 Intrinsic::getOrInsertDeclaration(&CGM.getModule(), ID), {Op}); in EmitHLSLBuiltinExpr()
673 Intrinsic::getOrInsertDeclaration(&CGM.getModule(), ID), in EmitHLSLBuiltinExpr()
684 &CGM.getModule(), IID, {OpExpr->getType()}), in EmitHLSLBuiltinExpr()
695 &CGM.getModule(), IID, {OpExpr->getType()}), in EmitHLSLBuiltinExpr()
705 &CGM.getModule(), Intrinsic::dx_wave_getlaneindex)); in EmitHLSLBuiltinExpr()
718 Intrinsic::getOrInsertDeclaration(&CGM.getModule(), ID)); in EmitHLSLBuiltinExpr()
723 Intrinsic::getOrInsertDeclaration(&CGM.getModule(), ID)); in EmitHLSLBuiltinExpr()
732 &CGM.getModule(), CGM.getHLSLRuntime().getWaveReadLaneAtIntrinsic(), in EmitHLSLBuiltinExpr()
794 Intrinsic::getOrInsertDeclaration(&CGM.getModule(), ID)); in EmitHLSLBuiltinExpr()
[all …]
H A DMicrosoftCXXABI.cpp366 if (auto *VDispMap = CGM.getModule().getNamedGlobal(MangledName)) in getAddrOfVirtualDisplacementMap()
396 CGM.getModule(), VDispMapTy, /*isConstant=*/true, Linkage, in getAddrOfVirtualDisplacementMap()
562 if (llvm::GlobalVariable *GV = CGM.getModule().getNamedGlobal(Name)) in getImageBase()
565 auto *GV = new llvm::GlobalVariable(CGM.getModule(), CGM.Int8Ty, in getImageBase()
1878 CGM.getModule().getNamedGlobal(VFTableName)) { in getAddrOfVTable()
1899 VTable = new llvm::GlobalVariable(CGM.getModule(), VTableType, in getAddrOfVTable()
1907 C = CGM.getModule().getOrInsertComdat(VFTableName.str()); in getAddrOfVTable()
1928 &CGM.getModule()); in getAddrOfVTable()
2069 if (llvm::GlobalValue *GV = CGM.getModule().getNamedValue(ThunkName)) in EmitVirtualMemPtrThunk()
2078 ThunkName.str(), &CGM.getModule()); in EmitVirtualMemPtrThunk()
[all …]
H A DConstantInitBuilder.cpp73 auto GV = new llvm::GlobalVariable(CGM.getModule(), in createGlobal()
158 auto dummy = new llvm::GlobalVariable(Builder.CGM.getModule(), type, true, in getAddrOfPosition()
172 new llvm::GlobalVariable(Builder.CGM.getModule(), type, true, in getAddrOfCurrentPosition()
H A DCGOpenMPRuntimeGPU.cpp785 const auto &DL = CGM.getModule().getDataLayout(); in emitKernelDeinit()
1068 CGM.getModule(), OMPRTL___kmpc_alloc_shared), in emitGenericVarsProlog()
1134 CGM.getModule(), OMPRTL___kmpc_alloc_shared), in getKmpcAllocShared()
1147 CGM.getModule(), OMPRTL___kmpc_free_shared), in getKmpcFreeShared()
1162 CGM.getModule(), OMPRTL___kmpc_free_shared), in emitGenericVarsEpilog()
1173 CGM.getModule(), OMPRTL___kmpc_free_shared), in emitGenericVarsEpilog()
1276 CGM.getModule(), OMPRTL___kmpc_parallel_51), in emitParallelCall()
1295 CGM.getModule(), OMPRTL___kmpc_barrier_simple_spmd), in syncCTAThreads()
1312 CGM.getModule(), OMPRTL___kmpc_barrier), in emitBarrierCall()
1330 CGM.getModule(), OMPRTL___kmpc_warp_active_thread_mask)); in emitCriticalRegion()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTrace.cpp31 Module *Trace::getModule() const { in getModule() function in Trace
41 (*i)->printAsOperand(O, true, getModule()); in print()
H A DCallGraphSCCPass.cpp126 Module &M = CG.getModule(); in RunPassOnSCC()
463 uint64_t RefHash = P->structuralHash(CG.getModule()); in RunAllPassesOnSCC()
473 if (!LocalChanged && (RefHash != P->structuralHash(CG.getModule()))) { in RunAllPassesOnSCC()
554 Changed |= ((FPPassManager*)PM)->doInitialization(CG.getModule()); in doInitialization()
569 Changed |= ((FPPassManager*)PM)->doFinalization(CG.getModule()); in doFinalization()
689 SCC.getCallGraph().getModule().print(OS, nullptr); in runOnSCC()
710 SCC.getCallGraph().getModule().print(OS, nullptr); in runOnSCC()
/freebsd/contrib/llvm-project/llvm/include/llvm/LTO/legacy/
H A DLTOModule.h116 const Module &getModule() const { return *Mod; } in getModule() function
117 Module &getModule() { return *Mod; } in getModule() function
122 const Triple &getTargetTriple() { return getModule().getTargetTriple(); } in getTargetTriple()
125 void setTargetTriple(Triple T) { getModule().setTargetTriple(T); } in setTargetTriple()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenerator.cpp64 mlir::ModuleOp mod = cgm->getModule(); in Initialize()
72 mlir::ModuleOp CIRGenerator::getModule() const { return cgm->getModule(); } in getModule() function in CIRGenerator
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMatrixBuilder.h35 Module *getModule() { return B.GetInsertBlock()->getParent()->getParent(); } in getModule() function
76 getModule(), Intrinsic::matrix_column_major_load, OverloadedTypes);
99 getModule(), Intrinsic::matrix_column_major_store, OverloadedTypes);
119 getModule(), Intrinsic::matrix_transpose, OverloadedTypes);
140 getModule(), Intrinsic::matrix_multiply, OverloadedTypes);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DAMDGPUEmitPrintf.cpp56 auto M = Builder.GetInsertBlock()->getModule(); in callPrintfBegin()
67 auto M = Builder.GetInsertBlock()->getModule(); in callAppendArgs()
89 Module *M = Prev->getModule(); in getStrlenWithNull()
158 auto M = Builder.GetInsertBlock()->getModule(); in callAppendStringN()
226 Module *M = Builder.GetInsertBlock()->getModule(); in callBufferedPrintfStart()
377 Module *M = Builder.GetInsertBlock()->getModule(); in callBufferedPrintfArgPush()
440 Module *M = Builder.GetInsertBlock()->getModule(); in emitAMDGPUPrintfCall()
H A DInjectTLIMappings.cpp42 Module *M = CI.getModule(); in addVariantDeclaration()
91 Module *M = CI.getModule(); in addMappingsFromTLI()
H A DBuildLibCalls.cpp1593 const Module *M = B.GetInsertBlock()->getModule(); in getSizeTTy()
1602 Module *M = B.GetInsertBlock()->getModule(); in emitLibCall()
1691 Module *M = B.GetInsertBlock()->getModule(); in emitMemCpyChk()
1870 Module *M = B.GetInsertBlock()->getModule(); in emitUnaryFloatFnCallHelper()
1904 Module *M = B.GetInsertBlock()->getModule(); in emitUnaryFloatFnCall()
1919 Module *M = B.GetInsertBlock()->getModule(); in emitBinaryFloatFnCallHelper()
1958 Module *M = B.GetInsertBlock()->getModule(); in emitBinaryFloatFnCall()
1970 Module *M = B.GetInsertBlock()->getModule(); in emitPutChar()
1989 Module *M = B.GetInsertBlock()->getModule(); in emitPutS()
2007 Module *M = B.GetInsertBlock()->getModule(); in emitFPutC()
[all …]
H A DSimplifyLibCalls.cpp403 TLI->getAsSizeT(Len + 1, *B.GetInsertBlock()->getModule())); in emitStrLenMemCpy()
499 unsigned SizeTBits = TLI->getSizeTSize(*CI->getModule()); in optimizeStrChr()
551 unsigned SizeTBits = TLI->getSizeTSize(*CI->getModule()); in optimizeStrRChr()
594 TLI->getAsSizeT(std::min(Len1, Len2), *CI->getModule()), in optimizeStrCmp()
602 TLI->getAsSizeT(Len2, *CI->getModule()), in optimizeStrCmp()
607 TLI->getAsSizeT(Len1, *CI->getModule()), in optimizeStrCmp()
676 TLI->getAsSizeT(Len2, *CI->getModule()), in optimizeStrNCmp()
682 TLI->getAsSizeT(Len1, *CI->getModule()), in optimizeStrNCmp()
718 TLI->getAsSizeT(Len, *CI->getModule())); in optimizeStrCpy()
742 Value *LenV = TLI->getAsSizeT(Len, *CI->getModule()); in optimizeStpCpy()
[all …]
H A DAssumeBundleBuilder.cpp253 unsigned DerefSize = MemInst->getModule() in addAccessedPtr()
287 AssumeBuilderState Builder(I->getModule()); in buildAssumeFromInst()
297 AssumeBuilderState Builder(I->getModule(), I, AC, DT); in salvageKnowledge()
312 AssumeBuilderState Builder(CtxI->getModule(), CtxI, AC, DT); in buildAssumeFromKnowledge()
322 AssumeBuilderState Builder(Assume->getModule(), Assume, AC, DT); in simplifyRetainedKnowledge()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInterleavedAccess.cpp207 SI->getModule(), FixedVssegIntrIds[Factor - 2], {VTy, PtrTy, XLenTy}); in lowerInterleavedStore()
330 SI->getModule(), FixedVssegIntrIds[Factor - 2], {InVTy, PtrTy, XLenTy}); in lowerInterleaveIntrinsicToStore()
354 SI->getModule(), IntrIds[Factor - 2], {VecTupTy, PtrTy, XLenTy}); in lowerInterleaveIntrinsicToStore()
433 auto &DL = Load->getModule()->getDataLayout(); in lowerInterleavedVPLoad()
472 Load->getModule(), ScalableVlsegIntrIds[Factor - 2], in lowerInterleavedVPLoad()
489 Load->getModule(), Intrinsic::riscv_tuple_extract, {VTy, VecTupTy}); in lowerInterleavedVPLoad()
581 Store->getModule(), Intrinsic::riscv_tuple_insert, {VecTupTy, VTy}); in lowerInterleavedVPStore()
588 Store->getModule(), ScalableVssegIntrIds[Factor - 2], in lowerInterleavedVPStore()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangExternalASTSourceCallbacks.cpp77 if (clang::Module *module = getModule(id)) in getSourceDescriptor()
82 clang::Module *ClangExternalASTSourceCallbacks::getModule(unsigned id) { in getModule() function in ClangExternalASTSourceCallbacks
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp98 Module *M = Intrinsic->getModule(); in lowerIntrinsicToFunction()
282 Module *M = FSHIntrinsic->getModule(); in lowerFunnelShifts()
350 II->getModule(), Intrinsic::SPVIntrinsics::spv_assume); in lowerExpectAssume()
354 II->getModule(), Intrinsic::SPVIntrinsics::spv_expect, in lowerExpectAssume()
366 F = Intrinsic::getOrInsertDeclaration(II->getModule(), NewID); in toSpvOverloadedIntrinsic()
371 F = Intrinsic::getOrInsertDeclaration(II->getModule(), NewID, Tys); in toSpvOverloadedIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Atomic/
H A DAtomic.cpp44 Module *M = Builder->GetInsertBlock()->getModule(); in EmitAtomicLibcall()
113 Module *M = Builder->GetInsertBlock()->getModule(); in EmitAtomicLoadLibcall()
152 Module *M = Builder->GetInsertBlock()->getModule(); in EmitAtomicStoreLibcall()
/freebsd/contrib/llvm-project/llvm/lib/Linker/
H A DLinkModules.cpp82 Module &DstM = Mover.getModule(); in getLinkedToGlobal()
156 Module &DstM = Mover.getModule(); in computeResultingSelectionKind()
222 Module &DstM = Mover.getModule(); in getComdatResult()
463 Module &DstM = Mover.getModule(); in run()
569 if (Var->getParent() != &Mover.getModule()) in run()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMachineModuleInfo.cpp22 LLVMContext &CTX = MMI.getModule()->getContext(); in AMDGPUMachineModuleInfo()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/CFGuard/
H A DCFGuard.cpp177 assert(CB->getModule()->getTargetTriple().isOSWindows() && in insertCFGuardCheck()
206 assert(CB->getModule()->getTargetTriple().isOSWindows() && in insertCFGuardDispatch()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCallGraph.h101 Module &getModule() const { return M; } in getModule() function
351 Module &getModule() const { return G->getModule(); } in getModule() function
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DRandomIRBuilder.cpp264 buildTargetLegalLoad(AccessTy, Ptr, IP, BB.getModule(), "L"); in newSource()
380 I.getModule()); in connectToSink()
404 Module *M = BB.getModule(); in connectToSink()
430 BB.getModule()); in newSink()

12345678910