/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | BackendUtil.cpp | 137 const CodeGenOptions &CodeGenOpts; member in __anon3496e3440111::EmitAssemblyHelper 196 return CodeGenOpts.PrepareForLTO && !CodeGenOpts.DisableLLVMPasses && in shouldEmitRegularLTOSummary() 204 return CodeGenOpts.UnifiedLTO && in shouldEmitUnifiedLTOModueFlag() 205 (CodeGenOpts.PrepareForThinLTO || shouldEmitRegularLTOSummary()); in shouldEmitUnifiedLTOModueFlag() 215 : Diags(_Diags), HSOpts(HeaderSearchOpts), CodeGenOpts(CGOpts), in EmitAssemblyHelper() 221 if (CodeGenOpts.DisableFree) in ~EmitAssemblyHelper() 293 getCodeModel(const CodeGenOptions &CodeGenOpts) { in getCodeModel() argument 294 unsigned CodeModel = llvm::StringSwitch<unsigned>(CodeGenOpts.CodeModel) in getCodeModel() 326 const CodeGenOptions &CodeGenOpts, in initTargetOptions() argument 340 assert((CodeGenOpts.FloatABI == "soft" || CodeGenOpts.FloatABI == "softfp" || in initTargetOptions() [all …]
|
H A D | CodeGenAction.cpp | 68 : CodeGenOpts(CGOpts), BackendCon(BCon) {} in ClangDiagnosticHandler() 73 return CodeGenOpts.OptimizationRemarkAnalysis.patternMatches(PassName); in isAnalysisRemarkEnabled() 76 return CodeGenOpts.OptimizationRemarkMissed.patternMatches(PassName); in isMissedOptRemarkEnabled() 79 return CodeGenOpts.OptimizationRemark.patternMatches(PassName); in isPassedOptRemarkEnabled() 83 return CodeGenOpts.OptimizationRemarkAnalysis.hasValidPattern() || in isAnyRemarkEnabled() 84 CodeGenOpts.OptimizationRemarkMissed.hasValidPattern() || in isAnyRemarkEnabled() 85 CodeGenOpts.OptimizationRemark.hasValidPattern(); in isAnyRemarkEnabled() 89 const CodeGenOptions &CodeGenOpts; member in clang::ClangDiagnosticHandler 94 const CodeGenOptions &CodeGenOpts) { in reportOptRecordError() argument 99 << CodeGenOpts.OptRecordFile << E.message(); in reportOptRecordError() [all …]
|
H A D | CodeGenTBAA.cpp | 41 : Context(Ctx), CGTypes(CGTypes), Module(M), CodeGenOpts(CGO), in CodeGenTBAA() 66 if (CodeGenOpts.NewStructPathTBAA) { in createScalarTypeNode() 215 if (!CodeGenOpts.PointerTBAA) in getTypeInfoHelper() 230 ScalarMD->getOperand(CodeGenOpts.NewStructPathTBAA ? 2 : 0)) in getTypeInfoHelper() 242 if (CodeGenOpts.NewStructPathTBAA && Ty->isArrayType()) in getTypeInfoHelper() 280 if (CodeGenOpts.OptimizationLevel == 0 || CodeGenOpts.RelaxedAliasing) in getTypeInfo() 409 if (CodeGenOpts.OptimizationLevel == 0 || CodeGenOpts.RelaxedAliasing) in getTBAAStructInfo() 435 if (CodeGenOpts.NewStructPathTBAA && CXXRD->getNumVBases() != 0) in getBaseTypeInfoHelper() 492 if (CodeGenOpts.NewStructPathTBAA) { in getBaseTypeInfoHelper() 542 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 | 113 const CodeGenOptions &CodeGenOpts = CGM.getCodeGenOpts(); in createTargetCodeGenInfo() local 179 else if (CodeGenOpts.FloatABI == "hard" || in createTargetCodeGenInfo() 180 (CodeGenOpts.FloatABI != "soft" && Triple.isHardFloatABI())) in createTargetCodeGenInfo() 191 CodeGenOpts.FloatABI == "soft" || Target.hasFeature("spe"); in createTargetCodeGenInfo() 195 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo() 206 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo() 216 bool IsSoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo() 242 bool SoftFloat = CodeGenOpts.FloatABI == "soft"; in createTargetCodeGenInfo() 258 CodeGenOpts.NumRegisterParameters); in createTargetCodeGenInfo() 262 CodeGenOpts.NumRegisterParameters, CodeGenOpts.FloatABI == "soft"); in createTargetCodeGenInfo() [all …]
|
H A D | BackendConsumer.h | 34 const CodeGenOptions &CodeGenOpts; variable 76 const CodeGenOptions &CodeGenOpts, 90 const CodeGenOptions &CodeGenOpts,
|
H A D | CGCall.cpp | 1856 addMergableDefaultFunctionAttributes(const CodeGenOptions &CodeGenOpts, in addMergableDefaultFunctionAttributes() argument 1858 addDenormalModeAttrs(CodeGenOpts.FPDenormalMode, CodeGenOpts.FP32DenormalMode, in addMergableDefaultFunctionAttributes() 1863 StringRef Name, bool HasOptnone, const CodeGenOptions &CodeGenOpts, in getTrivialDefaultFunctionAttributes() argument 1868 if (CodeGenOpts.OptimizeSize) in getTrivialDefaultFunctionAttributes() 1870 if (CodeGenOpts.OptimizeSize == 2) in getTrivialDefaultFunctionAttributes() 1874 if (CodeGenOpts.DisableRedZone) in getTrivialDefaultFunctionAttributes() 1876 if (CodeGenOpts.IndirectTlsSegRefs) in getTrivialDefaultFunctionAttributes() 1878 if (CodeGenOpts.NoImplicitFloat) in getTrivialDefaultFunctionAttributes() 1885 if (!CodeGenOpts.SimplifyLibCalls || LangOpts.isNoBuiltinFunc(Name)) in getTrivialDefaultFunctionAttributes() 1887 if (!CodeGenOpts.TrapFuncName.empty()) in getTrivialDefaultFunctionAttributes() [all …]
|
H A D | CodeGenTBAA.h | 120 const CodeGenOptions &CodeGenOpts; variable
|
H A D | CodeGenModule.h | 307 const CodeGenOptions &CodeGenOpts; variable 634 const CodeGenOptions &CodeGenOpts, llvm::Module &M, 768 const CodeGenOptions &getCodeGenOpts() const { return CodeGenOpts; } in getCodeGenOpts() 1832 void EmitBackendOptionsMetadata(const CodeGenOptions &CodeGenOpts);
|
H A D | CGCall.h | 417 const CodeGenOptions &CodeGenOpts,
|
H A D | CGVTables.cpp | 1108 (IsInNamedModule || def || CodeGenOpts.OptimizationLevel > 0 || in getVTableLinkage() 1109 CodeGenOpts.getDebugInfo() != llvm::codegenoptions::NoDebugInfo) && in getVTableLinkage() 1112 if (IsExternalDefinition && CodeGenOpts.OptimizationLevel > 0) in getVTableLinkage()
|
H A D | CodeGenFunction.cpp | 882 const CodeGenOptions &CodeGenOpts = CGM.getCodeGenOpts(); in StartFunction() local 883 if (CodeGenOpts.PointerAuth.ReturnAddresses) in StartFunction() 885 if (CodeGenOpts.PointerAuth.FunctionPointers) in StartFunction() 887 if (CodeGenOpts.PointerAuth.AuthTraps) in StartFunction() 889 if (CodeGenOpts.PointerAuth.IndirectGotos) in StartFunction()
|
/freebsd/contrib/llvm-project/clang/include/clang/Driver/ |
H A D | Options.td | 331 class CodeGenOpts<string base> 332 : KeyPathAndMacro<"CodeGenOpts.", base, "CODEGEN_"> {} 1126 MarshallingInfoFlag<CodeGenOpts<"EmitOpenCLArgMetadata">>; 1138 MarshallingInfoFlag<CodeGenOpts<"LessPreciseFPMAD">>, 1153 MarshallingInfoFlag<CodeGenOpts<"OpenCLCorrectlyRoundedDivSqrt">>; 1423 CodeGenOpts<"HIPCorrectlyRoundedDivSqrt">, DefaultTrue, 1430 CodeGenOpts<"HIPSaveKernelArgName">, DefaultFalse, 1589 MarshallingInfoInt<CodeGenOpts<"LoopAlignment">>; 1628 CodeGenOpts<"AssumeUniqueVTables">, DefaultTrue, 1652 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 | 708 const CodeGenOptions *CodeGenOpts = nullptr);
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | CompilerInvocation.cpp | 148 CodeGenOpts(std::make_shared<CodeGenOptions>()), in CompilerInvocationBase() 165 CodeGenOpts = make_shared_copy(X.getCodeGenOpts()); in deep_copy_assign() 185 CodeGenOpts = X.CodeGenOpts; in shallow_copy_assign() 254 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 | 1515 static void InitializePGOProfileMacros(const CodeGenOptions &CodeGenOpts, in InitializePGOProfileMacros() argument 1517 if (CodeGenOpts.hasProfileInstr()) in InitializePGOProfileMacros() 1520 if (CodeGenOpts.hasProfileIRUse() || CodeGenOpts.hasProfileClangUse()) in InitializePGOProfileMacros() 1530 const CodeGenOptions &CodeGenOpts) { in InitializePreprocessor() argument 1580 InitializePGOProfileMacros(CodeGenOpts, Builder); in InitializePreprocessor()
|
H A D | CompilerInstance.cpp | 284 const CodeGenOptions *CodeGenOpts, in SetUpDiagnosticLog() argument 307 if (CodeGenOpts) in SetUpDiagnosticLog() 308 Logger->setDwarfDebugFlags(CodeGenOpts->DwarfDebugFlags); in SetUpDiagnosticLog() 343 const CodeGenOptions *CodeGenOpts) { in createDiagnostics() argument 363 SetUpDiagnosticLog(Opts, CodeGenOpts, *Diags); in createDiagnostics()
|