/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CodeGenFunction.cpp | 84 shouldEmitLifetimeMarkers(CGM.getCodeGenOpts(), CGM.getLangOpts())) { in CodeGenFunction() 430 if (CGM.getCodeGenOpts().InstrumentFunctions) in FinishFunction() 432 if (CGM.getCodeGenOpts().InstrumentFunctionsAfterInlining) in FinishFunction() 502 if (CGM.getCodeGenOpts().EmitDeclMetadata) in FinishFunction() 579 if (!CGM.getCodeGenOpts().InstrumentFunctions && in ShouldInstrumentFunction() 580 !CGM.getCodeGenOpts().InstrumentFunctionsAfterInlining && in ShouldInstrumentFunction() 581 !CGM.getCodeGenOpts().InstrumentFunctionEntryBare) in ShouldInstrumentFunction() 597 return CGM.getCodeGenOpts().XRayInstrumentFunctions; in ShouldXRayInstrumentFunction() 603 return CGM.getCodeGenOpts().XRayInstrumentFunctions && in AlwaysEmitXRayCustomEvents() 604 (CGM.getCodeGenOpts().XRayAlwaysEmitCustomEvents || in AlwaysEmitXRayCustomEvents() [all …]
|
H A D | CGCXX.cpp | 35 if (!getCodeGenOpts().CXXCtorDtorAliases) in TryEmitBaseDestructorAsAlias() 40 if (getCodeGenOpts().OptimizationLevel == 0) in TryEmitBaseDestructorAsAlias() 50 if (getCodeGenOpts().SanitizeMemoryUseAfterDtor && in TryEmitBaseDestructorAsAlias() 269 CGM.getCodeGenOpts().PointerAuth.CXXVirtualFunctionPointers) { in BuildAppleKextVirtualCall()
|
H A D | CGDebugInfo.cpp | 83 : CGM(CGM), DebugKind(CGM.getCodeGenOpts().getDebugInfo()), in CGDebugInfo() 84 DebugTypeExtRefs(CGM.getCodeGenOpts().DebugTypeExtRefs), in CGDebugInfo() 251 if (CGM.getCodeGenOpts().EmitCodeView) { in getPrintingPolicy() 317 if (CGM.getCodeGenOpts().EmitCodeView) { in getClassName() 362 if (!CGM.getCodeGenOpts().EmitCodeView && in computeChecksum() 363 CGM.getCodeGenOpts().DwarfVersion < 5) in computeChecksum() 372 switch (CGM.getCodeGenOpts().getDebugSrcHash()) { in computeChecksum() 388 if (!CGM.getCodeGenOpts().EmbedSource) in getSource() 485 for (auto &[From, To] : llvm::reverse(CGM.getCodeGenOpts().DebugPrefixMap)) in remapDIPath() 500 if (!Force && !CGM.getCodeGenOpts().DebugColumnInfo) in getColumnNumber() [all …]
|
H A D | TargetInfo.cpp | 165 if (CGM.getCodeGenOpts().StackProbeSize != 4096) in addStackProbeTargetAttributes() 167 llvm::utostr(CGM.getCodeGenOpts().StackProbeSize)); in addStackProbeTargetAttributes() 168 if (CGM.getCodeGenOpts().NoStackArgProbe) in addStackProbeTargetAttributes()
|
H A D | CGClass.cpp | 1309 if (CGM.getCodeGenOpts().StrictVTablePointers && in EmitCtorPrologue() 1310 CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCtorPrologue() 1326 if (CGM.getCodeGenOpts().StrictVTablePointers && in EmitCtorPrologue() 1327 CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCtorPrologue() 1523 if (CGM.getCodeGenOpts().StrictVTablePointers && in EmitDestructorBody() 1524 CGM.getCodeGenOpts().OptimizationLevel > 0) in EmitDestructorBody() 1888 if (CGM.getCodeGenOpts().SanitizeMemoryUseAfterDtor && in EnterDtorCleanups() 1903 if (CGM.getCodeGenOpts().SanitizeMemoryUseAfterDtor && in EnterDtorCleanups() 1920 if (CGM.getCodeGenOpts().SanitizeMemoryUseAfterDtor && in EnterDtorCleanups() 1934 if (CGM.getCodeGenOpts().SanitizeMemoryUseAfterDtor && in EnterDtorCleanups() [all …]
|
H A D | CodeGenPGO.cpp | 42 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() 1217 return (CGM.getCodeGenOpts().hasProfileClangInstr() && in canEmitMCDCCoverage() 1218 CGM.getCodeGenOpts().MCDCCoverage && Builder.GetInsertBlock()); in canEmitMCDCCoverage() 1328 if (CGM.getCodeGenOpts().hasProfileClangInstr()) in setValueProfilingFlag() 1334 if (CGM.getCodeGenOpts().hasProfileClangInstr() && in setProfileVersion() 1371 bool InstrumentValueSites = CGM.getCodeGenOpts().hasProfileClangInstr(); in valueProfile()
|
H A D | CGVTables.cpp | 497 return CGM.getCodeGenOpts().OptimizationLevel && !IsUnprototyped; in shouldEmitVTableThunk() 841 if (CGM.getCodeGenOpts().PointerAuth.CXXVirtualFunctionPointers) { in addVTableComponent() 850 if (CGM.getCodeGenOpts().PointerAuth.CXXVirtualFunctionPointers) in addVTableComponent() 870 CGM.getCodeGenOpts().PointerAuth.CXXVirtualFunctionPointers) in addVTableComponent() 1070 return CGM.getCodeGenOpts().OptimizationLevel > 0 && in shouldEmitAvailableExternallyVTable() 1283 if (!getCodeGenOpts().LTOVisibilityPublicStd) in AlwaysHasLTOVisibilityPublic() 1354 if (!getCodeGenOpts().LTOUnit && !getCodeGenOpts().hasProfileIRInstr()) in EmitVTableTypeMetadata() 1403 if (getCodeGenOpts().VirtualFunctionElimination || in EmitVTableTypeMetadata() 1404 getCodeGenOpts().WholeProgramVTables) { in EmitVTableTypeMetadata()
|
H A D | CodeGenAction.cpp | 923 CI.getCodeGenOpts().LinkBitcodeFiles) { in loadLinkModules() 1014 if (CI.getCodeGenOpts().CoverageMapping) in CreateASTConsumer() 1020 CI.getHeaderSearchOpts(), CI.getPreprocessorOpts(), CI.getCodeGenOpts(), in CreateASTConsumer() 1027 if (CI.getCodeGenOpts().getDebugInfo() != codegenoptions::NoDebugInfo && in CreateASTConsumer() 1028 CI.getCodeGenOpts().MacroDebugInfo) { in CreateASTConsumer() 1065 if (!CI.getCodeGenOpts().ThinLTOIndexFile.empty()) { in loadModule() 1151 auto &CodeGenOpts = CI.getCodeGenOpts(); in ExecuteAction() 1192 CI.getCodeGenOpts(), CI.getTargetOpts(), in ExecuteAction()
|
H A D | CGStmt.cpp | 679 if (CGM.getCodeGenOpts().hasReducedDebugInfo()) { in EmitLabel() 863 CGM.getCodeGenOpts().OptimizationLevel) in EmitIfStmt() 872 if (!CGM.getCodeGenOpts().MCDCCoverage) in EmitIfStmt() 923 if (CGM.getCodeGenOpts().getFiniteLoops() == in checkIfLoopMustProgress() 950 if (CGM.getCodeGenOpts().getFiniteLoops() == in checkIfLoopMustProgress() 1024 LoopStack.push(LoopHeader.getBlock(), CGM.getContext(), CGM.getCodeGenOpts(), in EmitWhileStmt() 1041 if (!Weights && CGM.getCodeGenOpts().OptimizationLevel) in EmitWhileStmt() 1149 LoopStack.push(LoopBody, CGM.getContext(), CGM.getCodeGenOpts(), DoAttrs, in EmitDoStmt() 1203 LoopStack.push(CondBlock, CGM.getContext(), CGM.getCodeGenOpts(), ForAttrs, in EmitForStmt() 1256 if (!Weights && CGM.getCodeGenOpts().OptimizationLevel) in EmitForStmt() [all …]
|
H A D | CodeGenModule.cpp | 113 const CodeGenOptions &CodeGenOpts = CGM.getCodeGenOpts(); in createTargetCodeGenInfo() 689 getCodeGenOpts(), Diags, Location); in checkAliases() 890 PGOStats.reportDiagnostics(getDiags(), getCodeGenOpts().MainFileName); in Release() 1307 if (getCodeGenOpts().CodeModel.size() > 0) { in Release() 1308 unsigned CM = llvm::StringSwitch<unsigned>(getCodeGenOpts().CodeModel) in Release() 1322 getModule().setLargeDataThreshold(getCodeGenOpts().LargeDataThreshold); in Release() 1355 if (getCodeGenOpts().EmitDeclMetadata) in Release() 1358 if (getCodeGenOpts().CoverageNotesFile.size() || in Release() 1359 getCodeGenOpts().CoverageDataFile.size()) in Release() 1365 if (getCodeGenOpts().EmitVersionIdentMetadata) in Release() [all …]
|
H A D | ABIInfo.cpp | 32 const CodeGenOptions &ABIInfo::getCodeGenOpts() const { in getCodeGenOpts() function in ABIInfo 33 return CGT.getCodeGenOpts(); in getCodeGenOpts()
|
H A D | CGBlocks.cpp | 94 if (CGM.getCodeGenOpts().ObjCAutoRefCountExceptions) in getBlockDescriptorName() 126 if (!CGM.getCodeGenOpts().DisableBlockSignatureString) { in getBlockDescriptorName() 208 if (CGM.getCodeGenOpts().DisableBlockSignatureString) { in buildBlockDescriptor() 825 if (!CGM.getCodeGenOpts().DisableBlockSignatureString) in EmitBlockLiteral() 980 CGM.getCodeGenOpts().OptimizationLevel != 0) { in EmitBlockLiteral() 1047 CGM.getCodeGenOpts().OptimizationLevel != 0) { in EmitBlockLiteral() 1313 if (!CGM.getCodeGenOpts().DisableBlockSignatureString) in buildGlobalBlock() 1395 if (CGM.getCodeGenOpts().hasReducedDebugInfo()) { in setBlockContextParameter() 1503 if (CGM.getCodeGenOpts().OptimizationLevel == 0) { in GenerateBlockFunction() 1568 if (CGM.getCodeGenOpts().hasReducedDebugInfo()) { in GenerateBlockFunction() [all …]
|
H A D | ItaniumCXXABI.cpp | 200 if (!CGM.getCodeGenOpts().AssumeUniqueVTables || in hasUniqueVTablePointer() 701 bool ShouldEmitVFEInfo = CGM.getCodeGenOpts().VirtualFunctionElimination && in EmitLoadOfMemberFunctionPointer() 704 CGM.getCodeGenOpts().WholeProgramVTables && in EmitLoadOfMemberFunctionPointer() 778 if (CGM.getCodeGenOpts().SanitizeTrap.has(SanitizerKind::CFIMFCall)) { in EmitLoadOfMemberFunctionPointer() 847 CGM.getCodeGenOpts().PointerAuth.CXXMemberFunctionPointers) { in EmitLoadOfMemberFunctionPointer() 1174 CGM.getCodeGenOpts().PointerAuth.CXXMemberFunctionPointers; in BuildMemberPointer() 1638 if (CGM.getCodeGenOpts().PointerAuth.CXXVTablePointers) { in emitDynamicCastCall() 2043 CGM.getCodeGenOpts().WholeProgramVTables) { in emitVTableDefinitions() 2049 assert(CGM.getCodeGenOpts().WholeProgramVTables); in emitVTableDefinitions() 2131 if (auto &Schema = CGF.CGM.getCodeGenOpts().PointerAuth.CXXVTTVTablePointers) { in getVTableAddressPointInStructorWithVTT() [all …]
|
H A D | CGExpr.cpp | 414 if (CGF.CGM.getCodeGenOpts().MergeAllConstants && in createReferenceTemporary() 559 !CGM.getCodeGenOpts().SanitizeAddressUseAfterScope) || in EmitMaterializeTemporaryExpr() 1882 if (!getRangeForType(*this, Ty, Min, End, CGM.getCodeGenOpts().StrictEnums, in getRangeForLoadFromType() 1972 if (!CGM.getCodeGenOpts().PreserveVec3Type && VTy->getNumElements() == 3) { in EmitLoadOfScalar() 2008 } else if (CGM.getCodeGenOpts().OptimizationLevel > 0) in EmitLoadOfScalar() 2114 if (!CGM.getCodeGenOpts().PreserveVec3Type) { in EmitStoreOfScalar() 2238 if (CGM.getCodeGenOpts().OptimizationLevel > 0) { in EmitLoadOfLValue() 2401 if (CGM.getCodeGenOpts().OptimizationLevel > 0) { in EmitStoreThroughLValue() 2503 CGM.getCodeGenOpts().AAPCSBitfieldWidth && Dst.isVolatileQualified() && in EmitStoreThroughBitfieldLValue() 2539 CGM.getCodeGenOpts().ForceAAPCSBitfieldLoad) in EmitStoreThroughBitfieldLValue() [all …]
|
H A D | ABIInfo.h | 65 const CodeGenOptions &getCodeGenOpts() const;
|
H A D | CGPointerAuth.cpp | 75 const auto &Schema = getCodeGenOpts().PointerAuth.FunctionPointers; in getFunctionPointerAuthInfo() 370 const auto &Schema = getCodeGenOpts().PointerAuth.CXXMemberFunctionPointers; in getMemberFunctionPointerAuthInfo() 404 auto DefaultAuthentication = getCodeGenOpts().PointerAuth.CXXVTablePointers; in computeVTPointerAuthentication()
|
H A D | CGHLSLRuntime.cpp | 133 if (CGM.getCodeGenOpts().getDebugInfo() >= in addConstant() 173 if (CGM.getCodeGenOpts().OptimizationLevel == 0) in finishCodeGen()
|
H A D | CoverageMappingGen.cpp | 809 if (!CGM.getCodeGenOpts().MCDCCoverage) in pushAndAssignIDs() 849 if (!CGM.getCodeGenOpts().MCDCCoverage || NotMapped) in pop() 859 if (!CGM.getCodeGenOpts().MCDCCoverage) in getTotalConditionsAndReset() 2157 unsigned MaxTVs = CVM.getCodeGenModule().getCodeGenOpts().MCDCMaxTVs; in createOrCancelDecision() 2413 if (!CGM.getCodeGenOpts().CoverageCompilationDir.empty()) in getCurrentDirname() 2414 return CGM.getCodeGenOpts().CoverageCompilationDir; in getCurrentDirname() 2429 llvm::reverse(CGM.getCodeGenOpts().CoveragePrefixMap)) { in normalizeFilename() 2500 if (CGM.getCodeGenOpts().DumpCoverageMapping) { in addFunctionMappingRecord()
|
H A D | CodeGenTypes.h | 107 const CodeGenOptions &getCodeGenOpts() const;
|
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
H A D | CompilerInvocation.h | 139 const CodeGenOptions &getCodeGenOpts() const { return *CodeGenOpts; } in getCodeGenOpts() function 240 using CompilerInvocationBase::getCodeGenOpts; 257 CodeGenOptions &getCodeGenOpts() { return *CodeGenOpts; } in getCodeGenOpts() function
|
H A D | CompilerInstance.h | 283 CodeGenOptions &getCodeGenOpts() { in getCodeGenOpts() function 284 return Invocation->getCodeGenOpts(); in getCodeGenOpts() 286 const CodeGenOptions &getCodeGenOpts() const { in getCodeGenOpts() function 287 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | ClangExpressionParser.cpp | 620 m_compiler->getCodeGenOpts().EmitDeclMetadata = true; in ClangExpressionParser() 621 m_compiler->getCodeGenOpts().InstrumentFunctions = false; in ClangExpressionParser() 622 m_compiler->getCodeGenOpts().setFramePointer( in ClangExpressionParser() 625 m_compiler->getCodeGenOpts().setDebugInfo(codegenoptions::FullDebugInfo); in ClangExpressionParser() 627 m_compiler->getCodeGenOpts().setDebugInfo(codegenoptions::NoDebugInfo); in ClangExpressionParser() 700 m_compiler->getPreprocessorOpts(), m_compiler->getCodeGenOpts(), in ClangExpressionParser() 1034 should_create_file |= m_compiler->getCodeGenOpts().getDebugInfo() == in ParseInternal()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | PPC.cpp | 279 llvm::binary_search(M.getCodeGenOpts().TocDataVarsUserSpecified, GVId); in setTargetAttributes() 283 ((M.getCodeGenOpts().AllTocData) && in setTargetAttributes() 284 !llvm::binary_search(M.getCodeGenOpts().NoTocDataVars, GVId))) { in setTargetAttributes() 319 (M.getCodeGenOpts().AllTocData && !GV->hasLocalLinkage())) in setTargetAttributes() 1036 CGM.getTriple(), CGM.getCodeGenOpts()); in createPPC32TargetCodeGenInfo()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | CompilerInvocation.cpp | 165 CodeGenOpts = make_shared_copy(X.getCodeGenOpts()); in deep_copy_assign() 575 CodeGenOptions &CodeGenOpts = Invocation.getCodeGenOpts(); in FixupInvocation() 4826 Res.getCodeGenOpts().MisExpect = true; in CreateFromArgsImpl() 4841 ParseCodeGenArgs(Res.getCodeGenOpts(), Args, DashX, Diags, T, in CreateFromArgsImpl() 4847 Res.getCodeGenOpts().DiscardValueNames &= in CreateFromArgsImpl() 4867 if (Res.getCodeGenOpts().FineGrainedBitfieldAccesses && in CreateFromArgsImpl() 4869 Res.getCodeGenOpts().FineGrainedBitfieldAccesses = false; in CreateFromArgsImpl() 4874 if (Res.getCodeGenOpts().CodeViewCommandLine) { in CreateFromArgsImpl() 4875 Res.getCodeGenOpts().Argv0 = Argv0; in CreateFromArgsImpl() 4876 append_range(Res.getCodeGenOpts().CommandLineArgs, CommandLineArgs); in CreateFromArgsImpl() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Interpreter/ |
H A D | DeviceOffload.cpp | 65 HostParser.getCI()->getCodeGenOpts().CudaGpuBinaryFileName = FatbinFileName; in Parse()
|