| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | BackendUtil.cpp | 129 static std::string getProfileGenName(const CodeGenOptions &CodeGenOpts) { in getProfileGenName() argument 130 std::string FileName = CodeGenOpts.InstrProfileOutput.empty() in getProfileGenName() 132 : CodeGenOpts.InstrProfileOutput; in getProfileGenName() 133 if (CodeGenOpts.ContinuousProfileSync) in getProfileGenName() 143 const CodeGenOptions &CodeGenOpts; member in __anon3496e3440111::EmitAssemblyHelper 200 return CodeGenOpts.PrepareForLTO && !CodeGenOpts.DisableLLVMPasses && in shouldEmitRegularLTOSummary() 208 return CodeGenOpts.UnifiedLTO && in shouldEmitUnifiedLTOModueFlag() 209 (CodeGenOpts.PrepareForThinLTO || shouldEmitRegularLTOSummary()); in shouldEmitUnifiedLTOModueFlag() 216 : CI(CI), Diags(CI.getDiagnostics()), CodeGenOpts(CGOpts), in EmitAssemblyHelper() 222 if (CodeGenOpts.DisableFree) in ~EmitAssemblyHelper() [all …]
|
| H A D | CodeGenAction.cpp | 66 : CodeGenOpts(CGOpts), BackendCon(BCon) {} in ClangDiagnosticHandler() 71 return CodeGenOpts.OptimizationRemarkAnalysis.patternMatches(PassName); in isAnalysisRemarkEnabled() 74 return CodeGenOpts.OptimizationRemarkMissed.patternMatches(PassName); in isMissedOptRemarkEnabled() 77 return CodeGenOpts.OptimizationRemark.patternMatches(PassName); in isPassedOptRemarkEnabled() 81 return CodeGenOpts.OptimizationRemarkAnalysis.hasValidPattern() || in isAnyRemarkEnabled() 82 CodeGenOpts.OptimizationRemarkMissed.hasValidPattern() || in isAnyRemarkEnabled() 83 CodeGenOpts.OptimizationRemark.hasValidPattern(); in isAnyRemarkEnabled() 87 const CodeGenOptions &CodeGenOpts; member in clang::ClangDiagnosticHandler 92 const CodeGenOptions &CodeGenOpts) { in reportOptRecordError() argument 97 << CodeGenOpts.OptRecordFile << E.message(); in reportOptRecordError() [all …]
|
| H A D | ObjectFilePCHContainerWriter.cpp | 49 CodeGenOptions CodeGenOpts; member in __anon9aef00700111::PCHContainerGenerator 156 CodeGenOpts.CodeModel = "default"; in PCHContainerGenerator() 158 CodeGenOpts.DebugTypeExtRefs = true; in PCHContainerGenerator() 160 CodeGenOpts.MainFileName = in PCHContainerGenerator() 162 CodeGenOpts.setDebugInfo(llvm::codegenoptions::FullDebugInfo); in PCHContainerGenerator() 163 CodeGenOpts.setDebuggerTuning(CI.getCodeGenOpts().getDebuggerTuning()); in PCHContainerGenerator() 164 CodeGenOpts.DwarfVersion = CI.getCodeGenOpts().DwarfVersion; in PCHContainerGenerator() 165 CodeGenOpts.DebugCompilationDir = in PCHContainerGenerator() 167 CodeGenOpts.DebugPrefixMap = in PCHContainerGenerator() 169 CodeGenOpts.DebugStrictDwarf = CI.getCodeGenOpts().DebugStrictDwarf; in PCHContainerGenerator() [all …]
|
| H A D | CodeGenTBAA.cpp | 39 : Context(Ctx), CGTypes(CGTypes), Module(M), CodeGenOpts(CGO), in CodeGenTBAA() 65 if (CodeGenOpts.NewStructPathTBAA) { in createScalarTypeNode() 248 if (!CodeGenOpts.PointerTBAA) in getTypeInfoHelper() 292 ScalarMD->getOperand(CodeGenOpts.NewStructPathTBAA ? 2 : 0)) in getTypeInfoHelper() 330 if (CodeGenOpts.NewStructPathTBAA && Ty->isArrayType()) in getTypeInfoHelper() 370 (CodeGenOpts.OptimizationLevel == 0 || CodeGenOpts.RelaxedAliasing)) in getTypeInfo() 499 if (CodeGenOpts.OptimizationLevel == 0 || CodeGenOpts.RelaxedAliasing) in getTBAAStructInfo() 525 if (CodeGenOpts.NewStructPathTBAA && CXXRD->getNumVBases() != 0) in getBaseTypeInfoHelper() 582 if (CodeGenOpts.NewStructPathTBAA) { in getBaseTypeInfoHelper() 632 if (!CodeGenOpts.StructPathTBAA) in getAccessTagInfo() [all …]
|
| H A D | ModuleBuilder.cpp | 39 const CodeGenOptions &CodeGenOpts; member in __anonbec9d48b0111::CodeGeneratorImpl 85 PreprocessorOpts(PPO), CodeGenOpts(CGO), HandlingTopLevelDecls(0), in CodeGeneratorImpl() 139 M.reset(new llvm::Module(ExpandModuleName(ModuleName, CodeGenOpts), C)); in StartModule() 165 PreprocessorOpts, CodeGenOpts, in Initialize() 168 for (auto &&Lib : CodeGenOpts.DependentLibraries) in Initialize() 170 for (auto &&Opt : CodeGenOpts.LinkerOptions) in Initialize()
|
| H A D | CodeGenModule.cpp | 111 const CodeGenOptions &CodeGenOpts = CGM.getCodeGenOpts(); in createTargetCodeGenInfo() local 177 else if (CodeGenOpts.FloatABI == "hard" || in createTargetCodeGenInfo() 178 (CodeGenOpts.FloatABI != "soft" && Triple.isHardFloatABI())) in createTargetCodeGenInfo() 189 CodeGenOpts.FloatABI == "soft" || Target.hasFeature("spe"); in createTargetCodeGenInfo() 193 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo() 204 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo() 214 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo() 240 bool SoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo() 256 CodeGenOpts.NumRegisterParameters); in createTargetCodeGenInfo() 260 CodeGenOpts.NumRegisterParameters, CodeGenOpts.FloatABI == "soft"); in createTargetCodeGenInfo() [all …]
|
| H A D | CGCall.cpp | 1953 addMergableDefaultFunctionAttributes(const CodeGenOptions &CodeGenOpts, in addMergableDefaultFunctionAttributes() argument 1955 addDenormalModeAttrs(CodeGenOpts.FPDenormalMode, CodeGenOpts.FP32DenormalMode, in addMergableDefaultFunctionAttributes() 1960 StringRef Name, bool HasOptnone, const CodeGenOptions &CodeGenOpts, in getTrivialDefaultFunctionAttributes() argument 1965 if (CodeGenOpts.OptimizeSize) in getTrivialDefaultFunctionAttributes() 1967 if (CodeGenOpts.OptimizeSize == 2) in getTrivialDefaultFunctionAttributes() 1971 if (CodeGenOpts.DisableRedZone) in getTrivialDefaultFunctionAttributes() 1973 if (CodeGenOpts.IndirectTlsSegRefs) in getTrivialDefaultFunctionAttributes() 1975 if (CodeGenOpts.NoImplicitFloat) in getTrivialDefaultFunctionAttributes() 1982 if (!CodeGenOpts.SimplifyLibCalls || LangOpts.isNoBuiltinFunc(Name)) in getTrivialDefaultFunctionAttributes() 1984 if (!CodeGenOpts.TrapFuncName.empty()) in getTrivialDefaultFunctionAttributes() [all …]
|
| H A D | BackendConsumer.h | 33 const CodeGenOptions &CodeGenOpts; variable
|
| H A D | CodeGenTBAA.h | 121 const CodeGenOptions &CodeGenOpts; variable
|
| H A D | CodeGenModule.h | 352 const CodeGenOptions &CodeGenOpts; variable 690 const CodeGenOptions &CodeGenOpts, llvm::Module &M, 829 const CodeGenOptions &getCodeGenOpts() const { return CodeGenOpts; } in getCodeGenOpts() 1978 void EmitBackendOptionsMetadata(const CodeGenOptions &CodeGenOpts);
|
| H A D | CGHLSLRuntime.cpp | 299 auto &CodeGenOpts = CGM.getCodeGenOpts(); in finishCodeGen() local 305 if (CodeGenOpts.ResMayAlias) in finishCodeGen()
|
| H A D | CGCall.h | 428 const CodeGenOptions &CodeGenOpts,
|
| H A D | CGVTables.cpp | 1116 (IsInNamedModule || def || CodeGenOpts.OptimizationLevel > 0 || in getVTableLinkage() 1117 CodeGenOpts.getDebugInfo() != llvm::codegenoptions::NoDebugInfo) && in getVTableLinkage() 1120 if (IsExternalDefinition && CodeGenOpts.OptimizationLevel > 0) in getVTableLinkage()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Driver/ |
| H A D | Options.td | 333 class CodeGenOpts<string base> 334 : KeyPathAndMacro<"CodeGenOpts.", base, "CODEGEN_"> {} 1073 MarshallingInfoFlag<CodeGenOpts<"EmitOpenCLArgMetadata">>; 1085 MarshallingInfoFlag<CodeGenOpts<"LessPreciseFPMAD">>, 1100 MarshallingInfoFlag<CodeGenOpts<"OpenCLCorrectlyRoundedDivSqrt">>; 1386 CodeGenOpts<"HIPCorrectlyRoundedDivSqrt">, DefaultTrue, 1393 CodeGenOpts<"HIPSaveKernelArgName">, DefaultFalse, 1554 MarshallingInfoInt<CodeGenOpts<"LoopAlignment">>; 1597 CodeGenOpts<"AssumeUniqueVTables">, DefaultTrue, 1621 CodeGenOpts<"Autolink">, DefaultTrue, [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
| H A D | CompilerInvocation.h | 100 std::shared_ptr<CodeGenOptions> CodeGenOpts; variable 139 const CodeGenOptions &getCodeGenOpts() const { return *CodeGenOpts; } in getCodeGenOpts() 257 CodeGenOptions &getCodeGenOpts() { return *CodeGenOpts; } in getCodeGenOpts()
|
| H A D | CompilerInstance.h | 680 const CodeGenOptions *CodeGenOpts = nullptr);
|
| /freebsd/contrib/llvm-project/clang/lib/Interpreter/ |
| H A D | DeviceOffload.cpp | 32 CodeGenOpts(HostInstance.getCodeGenOpts()), in IncrementalCUDADeviceParser() 154 CodeGenOpts.CudaGpuBinaryFileName = std::move(FatbinFileName); in GenerateFatbinary()
|
| H A D | DeviceOffload.h | 48 CodeGenOptions &CodeGenOpts; // Intentionally a reference. variable
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/ |
| H A D | ModuleDepCollector.cpp | 551 const auto &CodeGenOpts = CI.getCodeGenOpts(); in isSafeToIgnoreCWD() local 552 IF_RELATIVE_RETURN_FALSE(CodeGenOpts.DebugCompilationDir); in isSafeToIgnoreCWD() 553 IF_RELATIVE_RETURN_FALSE(CodeGenOpts.CoverageCompilationDir); in isSafeToIgnoreCWD() 559 IF_RELATIVE_RETURN_FALSE(CodeGenOpts.ProfileInstrumentUsePath); in isSafeToIgnoreCWD() 560 IF_RELATIVE_RETURN_FALSE(CodeGenOpts.SampleProfileFile); in isSafeToIgnoreCWD() 561 IF_RELATIVE_RETURN_FALSE(CodeGenOpts.ProfileRemappingFile); in isSafeToIgnoreCWD()
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | CompilerInvocation.cpp | 134 CodeGenOpts(std::make_shared<CodeGenOptions>()), in CompilerInvocationBase() 151 CodeGenOpts = make_shared_copy(X.getCodeGenOpts()); in deep_copy_assign() 171 CodeGenOpts = X.CodeGenOpts; in shallow_copy_assign() 231 return ensureOwned(CodeGenOpts); in getMutCodeGenOpts() 575 CodeGenOptions &CodeGenOpts = Invocation.getCodeGenOpts(); in FixupInvocation() local 578 CodeGenOpts.XRayInstrumentFunctions = LangOpts.XRayInstrument; in FixupInvocation() 579 CodeGenOpts.XRayAlwaysEmitCustomEvents = LangOpts.XRayAlwaysEmitCustomEvents; in FixupInvocation() 580 CodeGenOpts.XRayAlwaysEmitTypedEvents = LangOpts.XRayAlwaysEmitTypedEvents; in FixupInvocation() 581 CodeGenOpts.DisableFree = FrontendOpts.DisableFree; in FixupInvocation() 584 CodeGenOpts.ClearASTBeforeBackend = false; in FixupInvocation() [all …]
|
| H A D | InitPreprocessor.cpp | 1545 static void InitializePGOProfileMacros(const CodeGenOptions &CodeGenOpts, in InitializePGOProfileMacros() argument 1547 if (CodeGenOpts.hasProfileInstr()) in InitializePGOProfileMacros() 1550 if (CodeGenOpts.hasProfileIRUse() || CodeGenOpts.hasProfileClangUse()) in InitializePGOProfileMacros() 1560 const CodeGenOptions &CodeGenOpts) { in InitializePreprocessor() argument 1608 InitializePGOProfileMacros(CodeGenOpts, Builder); in InitializePreprocessor()
|
| H A D | CompilerInstance.cpp | 283 const CodeGenOptions *CodeGenOpts, in SetUpDiagnosticLog() argument 306 if (CodeGenOpts) in SetUpDiagnosticLog() 307 Logger->setDwarfDebugFlags(CodeGenOpts->DwarfDebugFlags); in SetUpDiagnosticLog() 342 const CodeGenOptions *CodeGenOpts) { in createDiagnostics() argument 362 SetUpDiagnosticLog(Opts, CodeGenOpts, *Diags); in createDiagnostics()
|