Home
last modified time | relevance | path

Searched refs:getCodeGenOpts (Results 1 – 25 of 71) sorted by relevance

123

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp86 shouldEmitLifetimeMarkers(CGM.getCodeGenOpts(), CGM.getLangOpts())) { in CodeGenFunction()
434 if (CGM.getCodeGenOpts().InstrumentFunctions) in FinishFunction()
436 if (CGM.getCodeGenOpts().InstrumentFunctionsAfterInlining) in FinishFunction()
508 if (CGM.getCodeGenOpts().EmitDeclMetadata) in FinishFunction()
577 if (!CGM.getCodeGenOpts().InstrumentFunctions && in ShouldInstrumentFunction()
578 !CGM.getCodeGenOpts().InstrumentFunctionsAfterInlining && in ShouldInstrumentFunction()
579 !CGM.getCodeGenOpts().InstrumentFunctionEntryBare) in ShouldInstrumentFunction()
595 return CGM.getCodeGenOpts().XRayInstrumentFunctions; in ShouldXRayInstrumentFunction()
601 return CGM.getCodeGenOpts().XRayInstrumentFunctions && in AlwaysEmitXRayCustomEvents()
602 (CGM.getCodeGenOpts().XRayAlwaysEmitCustomEvents || in AlwaysEmitXRayCustomEvents()
[all …]
H A DCGCXX.cpp33 if (!getCodeGenOpts().CXXCtorDtorAliases) in TryEmitBaseDestructorAsAlias()
38 if (getCodeGenOpts().OptimizationLevel == 0) in TryEmitBaseDestructorAsAlias()
48 if (getCodeGenOpts().SanitizeMemoryUseAfterDtor && in TryEmitBaseDestructorAsAlias()
267 CGM.getCodeGenOpts().PointerAuth.CXXVirtualFunctionPointers) { in BuildAppleKextVirtualCall()
H A DObjectFilePCHContainerWriter.cpp163 CodeGenOpts.setDebuggerTuning(CI.getCodeGenOpts().getDebuggerTuning()); in PCHContainerGenerator()
164 CodeGenOpts.DwarfVersion = CI.getCodeGenOpts().DwarfVersion; in PCHContainerGenerator()
166 CI.getInvocation().getCodeGenOpts().DebugCompilationDir; in PCHContainerGenerator()
168 CI.getInvocation().getCodeGenOpts().DebugPrefixMap; in PCHContainerGenerator()
169 CodeGenOpts.DebugStrictDwarf = CI.getCodeGenOpts().DebugStrictDwarf; in PCHContainerGenerator()
H A DCGDebugInfo.cpp120 : CGM(CGM), DebugKind(CGM.getCodeGenOpts().getDebugInfo()), in CGDebugInfo()
121 DebugTypeExtRefs(CGM.getCodeGenOpts().DebugTypeExtRefs), in CGDebugInfo()
170 if (!Group || !CGM.getCodeGenOpts().DebugKeyInstructions) in addInstToSpecificSourceAtom()
389 if (CGM.getCodeGenOpts().EmitCodeView) { in getPrintingPolicy()
456 if (CGM.getCodeGenOpts().EmitCodeView) { in getClassName()
501 if (!CGM.getCodeGenOpts().EmitCodeView && in computeChecksum()
502 CGM.getCodeGenOpts().DwarfVersion < 5) in computeChecksum()
511 switch (CGM.getCodeGenOpts().getDebugSrcHash()) { in computeChecksum()
529 if (!CGM.getCodeGenOpts().EmbedSource) in getSource()
626 for (auto &[From, To] : llvm::reverse(CGM.getCodeGenOpts().DebugPrefixMap)) in remapDIPath()
[all …]
H A DCodeGenAction.cpp117 : CI(CI), Diags(CI.getDiagnostics()), CodeGenOpts(CI.getCodeGenOpts()), in BackendConsumer()
122 CI.getCodeGenOpts(), C, CoverageInfo)), in BackendConsumer()
316 emitBackendOutput(CI, CI.getCodeGenOpts(), in HandleTranslationUnit()
883 CI.getCodeGenOpts().LinkBitcodeFiles) { in loadLinkModules()
974 if (CI.getCodeGenOpts().CoverageMapping) in CreateASTConsumer()
985 if (CI.getCodeGenOpts().getDebugInfo() != codegenoptions::NoDebugInfo && in CreateASTConsumer()
986 CI.getCodeGenOpts().MacroDebugInfo) { in CreateASTConsumer()
1023 if (!CI.getCodeGenOpts().ThinLTOIndexFile.empty()) { in loadModule()
1118 auto &CodeGenOpts = CI.getCodeGenOpts(); in ExecuteAction()
1187 emitBackendOutput(CI, CI.getCodeGenOpts(), in ExecuteAction()
H A DCGClass.cpp1311 if (CGM.getCodeGenOpts().StrictVTablePointers && in EmitCtorPrologue()
1312 CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCtorPrologue()
1328 if (CGM.getCodeGenOpts().StrictVTablePointers && in EmitCtorPrologue()
1329 CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCtorPrologue()
1526 if (CGM.getCodeGenOpts().StrictVTablePointers && in EmitDestructorBody()
1527 CGM.getCodeGenOpts().OptimizationLevel > 0) in EmitDestructorBody()
1892 if (CGM.getCodeGenOpts().SanitizeMemoryUseAfterDtor && in EnterDtorCleanups()
1907 if (CGM.getCodeGenOpts().SanitizeMemoryUseAfterDtor && in EnterDtorCleanups()
1924 if (CGM.getCodeGenOpts().SanitizeMemoryUseAfterDtor && in EnterDtorCleanups()
1938 if (CGM.getCodeGenOpts().SanitizeMemoryUseAfterDtor && in EnterDtorCleanups()
[all …]
H A DCodeGenPGO.cpp42 Name, Linkage, CGM.getCodeGenOpts().MainFileName, in setFuncName()
46 if (CGM.getCodeGenOpts().hasProfileClangInstr()) in setFuncName()
1023 bool InstrumentRegions = CGM.getCodeGenOpts().hasProfileClangInstr(); in assignRegionCounters()
1055 if (CGM.getCodeGenOpts().CoverageMapping) in assignRegionCounters()
1084 (CGM.getCodeGenOpts().MCDCCoverage ? CGM.getCodeGenOpts().MCDCMaxConds in mapRegionCounters()
1229 return (CGM.getCodeGenOpts().hasProfileClangInstr() && in canEmitMCDCCoverage()
1230 CGM.getCodeGenOpts().MCDCCoverage && Builder.GetInsertBlock()); in canEmitMCDCCoverage()
1340 if (CGM.getCodeGenOpts().hasProfileClangInstr()) in setValueProfilingFlag()
1346 if (CGM.getCodeGenOpts().hasProfileClangInstr() && in setProfileVersion()
1386 bool InstrumentValueSites = CGM.getCodeGenOpts().hasProfileClangInstr(); in valueProfile()
[all …]
H A DTargetInfo.cpp176 if (CGM.getCodeGenOpts().StackProbeSize != 4096) in addStackProbeTargetAttributes()
178 llvm::utostr(CGM.getCodeGenOpts().StackProbeSize)); in addStackProbeTargetAttributes()
179 if (CGM.getCodeGenOpts().NoStackArgProbe) in addStackProbeTargetAttributes()
H A DCGBlocks.cpp93 if (CGM.getCodeGenOpts().ObjCAutoRefCountExceptions) in getBlockDescriptorName()
125 if (!CGM.getCodeGenOpts().DisableBlockSignatureString) { in getBlockDescriptorName()
191 auto &Schema = CGM.getCodeGenOpts().PointerAuth.BlockHelperFunctionPointers; in buildBlockDescriptor()
208 if (CGM.getCodeGenOpts().DisableBlockSignatureString) { in buildBlockDescriptor()
821 if (!CGM.getCodeGenOpts().DisableBlockSignatureString) in EmitBlockLiteral()
872 isa, CGM.getCodeGenOpts().PointerAuth.ObjCIsaPointers, GlobalDecl(), in EmitBlockLiteral()
896 CGM.getCodeGenOpts().PointerAuth.BlockInvocationFunctionPointers, in EmitBlockLiteral()
900 descriptor, CGM.getCodeGenOpts().PointerAuth.BlockDescriptorPointers, in EmitBlockLiteral()
1009 CGM.getCodeGenOpts().OptimizationLevel != 0) { in EmitBlockLiteral()
1076 CGM.getCodeGenOpts().OptimizationLevel != 0) { in EmitBlockLiteral()
[all …]
H A DCGVTables.cpp497 return CGM.getCodeGenOpts().OptimizationLevel && !IsUnprototyped; in shouldEmitVTableThunk()
846 if (CGM.getCodeGenOpts().PointerAuth.CXXVirtualFunctionPointers) { in addVTableComponent()
855 if (CGM.getCodeGenOpts().PointerAuth.CXXVirtualFunctionPointers) in addVTableComponent()
875 CGM.getCodeGenOpts().PointerAuth.CXXVirtualFunctionPointers) in addVTableComponent()
1078 return CGM.getCodeGenOpts().OptimizationLevel > 0 && in shouldEmitAvailableExternallyVTable()
1293 if (!getCodeGenOpts().LTOVisibilityPublicStd) in AlwaysHasLTOVisibilityPublic()
1364 if (!getCodeGenOpts().LTOUnit && !getCodeGenOpts().hasProfileIRInstr()) in EmitVTableTypeMetadata()
1412 if (getCodeGenOpts().VirtualFunctionElimination || in EmitVTableTypeMetadata()
1413 getCodeGenOpts().WholeProgramVTables) { in EmitVTableTypeMetadata()
H A DCGStmt.cpp743 if (CGM.getCodeGenOpts().hasReducedDebugInfo()) { in EmitLabel()
951 CGM.getCodeGenOpts().OptimizationLevel) in EmitIfStmt()
960 if (!CGM.getCodeGenOpts().MCDCCoverage) { in EmitIfStmt()
1014 if (CGM.getCodeGenOpts().getFiniteLoops() == in checkIfLoopMustProgress()
1041 if (CGM.getCodeGenOpts().getFiniteLoops() == in checkIfLoopMustProgress()
1117 LoopStack.push(LoopHeader.getBlock(), CGM.getContext(), CGM.getCodeGenOpts(), in EmitWhileStmt()
1134 if (!Weights && CGM.getCodeGenOpts().OptimizationLevel) in EmitWhileStmt()
1249 LoopStack.push(LoopBody, CGM.getContext(), CGM.getCodeGenOpts(), DoAttrs, in EmitDoStmt()
1311 LoopStack.push(CondBlock, CGM.getContext(), CGM.getCodeGenOpts(), ForAttrs, in EmitForStmt()
1367 if (!Weights && CGM.getCodeGenOpts().OptimizationLevel) in EmitForStmt()
[all …]
H A DCodeGenModule.cpp111 const CodeGenOptions &CodeGenOpts = CGM.getCodeGenOpts(); in createTargetCodeGenInfo()
797 getCodeGenOpts(), Diags, Location); in checkAliases()
998 PGOStats.reportDiagnostics(getDiags(), getCodeGenOpts().MainFileName); in Release()
1464 if (getCodeGenOpts().CodeModel.size() > 0) { in Release()
1465 unsigned CM = llvm::StringSwitch<unsigned>(getCodeGenOpts().CodeModel) in Release()
1479 getModule().setLargeDataThreshold(getCodeGenOpts().LargeDataThreshold); in Release()
1512 if (getCodeGenOpts().EmitDeclMetadata) in Release()
1515 if (getCodeGenOpts().CoverageNotesFile.size() || in Release()
1516 getCodeGenOpts().CoverageDataFile.size()) in Release()
1522 if (getCodeGenOpts().EmitVersionIdentMetadata) in Release()
[all …]
H A DABIInfo.cpp32 const CodeGenOptions &ABIInfo::getCodeGenOpts() const { in getCodeGenOpts() function in ABIInfo
33 return CGT.getCodeGenOpts(); in getCodeGenOpts()
H A DCGExpr.cpp450 if (CGF.CGM.getCodeGenOpts().MergeAllConstants && in createReferenceTemporary()
604 !CGM.getCodeGenOpts().SanitizeAddressUseAfterScope) || in EmitMaterializeTemporaryExpr()
1931 if (!getRangeForType(*this, Ty, Min, End, CGM.getCodeGenOpts().StrictEnums, in getRangeForLoadFromType()
1944 } else if (CGM.getCodeGenOpts().OptimizationLevel > 0) { in maybeAttachRangeForLoad()
2320 if (CGM.getCodeGenOpts().OptimizationLevel > 0) { in EmitLoadOfLValue()
2512 if (CGM.getCodeGenOpts().OptimizationLevel > 0) { in EmitStoreThroughLValue()
2622 CGM.getCodeGenOpts().AAPCSBitfieldWidth && Dst.isVolatileQualified() && in EmitStoreThroughBitfieldLValue()
2658 CGM.getCodeGenOpts().ForceAAPCSBitfieldLoad) in EmitStoreThroughBitfieldLValue()
2938 !CGM.getCodeGenOpts().NullPointerIsValid) in EmitLoadOfReference()
3585 CGM.getCodeGenOpts().EmitCheckPathComponentsToStrip; in EmitCheckSourceLocation()
[all …]
H A DItaniumCXXABI.cpp199 if (!CGM.getCodeGenOpts().AssumeUniqueVTables || in hasUniqueVTablePointer()
707 bool ShouldEmitVFEInfo = CGM.getCodeGenOpts().VirtualFunctionElimination && in EmitLoadOfMemberFunctionPointer()
710 CGM.getCodeGenOpts().WholeProgramVTables && in EmitLoadOfMemberFunctionPointer()
787 if (CGM.getCodeGenOpts().SanitizeTrap.has(SanitizerKind::CFIMFCall)) { in EmitLoadOfMemberFunctionPointer()
856 CGM.getCodeGenOpts().PointerAuth.CXXMemberFunctionPointers) { in EmitLoadOfMemberFunctionPointer()
1185 CGM.getCodeGenOpts().PointerAuth.CXXMemberFunctionPointers; in BuildMemberPointer()
1652 if (CGM.getCodeGenOpts().PointerAuth.CXXVTablePointers) { in emitDynamicCastCall()
2057 CGM.getCodeGenOpts().WholeProgramVTables) { in emitVTableDefinitions()
2063 assert(CGM.getCodeGenOpts().WholeProgramVTables); in emitVTableDefinitions()
2150 if (auto &Schema = CGF.CGM.getCodeGenOpts().PointerAuth.CXXVTTVTablePointers) { in getVTableAddressPointInStructorWithVTT()
[all …]
H A DABIInfo.h66 const CodeGenOptions &getCodeGenOpts() const;
H A DBackendUtil.cpp362 const auto &CodeGenOpts = CI.getCodeGenOpts(); in initTargetOptions()
1206 if (CI.getCodeGenOpts().TimePasses) { in RunOptimizationPipeline()
1211 if (CI.getCodeGenOpts().TimePasses) in RunOptimizationPipeline()
1256 if (CI.getCodeGenOpts().TimePasses) { in RunCodegenPipeline()
1261 if (CI.getCodeGenOpts().TimePasses) in RunCodegenPipeline()
1298 const auto &CGOpts = CI.getCodeGenOpts(); in runThinLTOBackend()
/freebsd/contrib/llvm-project/clang/lib/CIR/FrontendAction/
H A DCIRGenAction.cpp73 CI.getCodeGenOpts())), in CIRGenConsumer()
136 CI, CI.getCodeGenOpts(), C.getTargetInfo().getDataLayoutString(), in HandleTranslationUnit()
189 Action, CI, CI.getCodeGenOpts(), std::move(Out)); in CreateASTConsumer()
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DCompilerInvocation.h139 const CodeGenOptions &getCodeGenOpts() const { return *CodeGenOpts; } in getCodeGenOpts() function
240 using CompilerInvocationBase::getCodeGenOpts;
257 CodeGenOptions &getCodeGenOpts() { return *CodeGenOpts; } in getCodeGenOpts() function
H A DCompilerInstance.h275 CodeGenOptions &getCodeGenOpts() { in getCodeGenOpts() function
276 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
278 const CodeGenOptions &getCodeGenOpts() const { in getCodeGenOpts() function
279 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenClass.cpp237 if (cgm.getCodeGenOpts().StrictVTablePointers && in emitCtorPrologue()
238 cgm.getCodeGenOpts().OptimizationLevel > 0 && in emitCtorPrologue()
507 if (cgm.getCodeGenOpts().OptimizationLevel != 0 && !crd->isDynamicClass() && in emitCXXConstructorCall()
508 type != Ctor_Base && cgm.getCodeGenOpts().StrictVTablePointers) in emitCXXConstructorCall()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangExpressionParser.cpp819 m_compiler->getCodeGenOpts().EmitDeclMetadata = true; in ClangExpressionParser()
820 m_compiler->getCodeGenOpts().InstrumentFunctions = false; in ClangExpressionParser()
821 m_compiler->getCodeGenOpts().setFramePointer( in ClangExpressionParser()
824 m_compiler->getCodeGenOpts().setDebugInfo(codegenoptions::FullDebugInfo); in ClangExpressionParser()
826 m_compiler->getCodeGenOpts().setDebugInfo(codegenoptions::NoDebugInfo); in ClangExpressionParser()
900 m_compiler->getPreprocessorOpts(), m_compiler->getCodeGenOpts(), in ClangExpressionParser()
1233 should_create_file |= m_compiler->getCodeGenOpts().getDebugInfo() == in ParseInternal()
/freebsd/contrib/llvm-project/clang/tools/driver/
H A Dcc1_main.cpp293 bool TimePasses = Clang->getCodeGenOpts().TimePasses; in cc1_main()
303 if (Clang->getCodeGenOpts().TimePassesJson) { in cc1_main()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DPPC.cpp283 llvm::binary_search(M.getCodeGenOpts().TocDataVarsUserSpecified, GVId); in setTargetAttributes()
287 ((M.getCodeGenOpts().AllTocData) && in setTargetAttributes()
288 !llvm::binary_search(M.getCodeGenOpts().NoTocDataVars, GVId))) { in setTargetAttributes()
323 (M.getCodeGenOpts().AllTocData && !GV->hasLocalLinkage())) in setTargetAttributes()
1047 CGM.getTriple(), CGM.getCodeGenOpts()); in createPPC32TargetCodeGenInfo()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DDeviceOffload.cpp32 CodeGenOpts(HostInstance.getCodeGenOpts()), in IncrementalCUDADeviceParser()

123