Home
last modified time | relevance | path

Searched +full:diag +full:- +full:version (Results 1 – 25 of 204) sorted by relevance

123456789

/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DWebAssembly.cpp1 //===--- WebAssembly.cpp - WebAssembly ToolChain Implementation -*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 #include "clang/Basic/Version.h"
34 return (TargetTriple.getArchName() + "-" + in getMultiarchTriple()
41 StringRef UseLinker = A->getValue(); in getLinkerPath()
47 // Interpret 'lld' as explicitly requesting `wasm-ld`, so look for that in getLinkerPath()
48 // linker. Note that for `wasm32-wasip2` this overrides the default linker in getLinkerPath()
49 // of `wasm-component-ld`. in getLinkerPath()
51 return ToolChain.GetProgramPath("wasm-ld"); in getLinkerPath()
[all …]
H A DHLSL.cpp1 //===--- HLSL.cpp - HLSL ToolChain Implementations --------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
32 auto Version = T.getOSVersion(); in isLegalShaderModel() local
33 if (Version.getBuild()) in isLegalShaderModel()
35 if (Version.getSubminor()) in isLegalShaderModel()
50 return MinVer <= Version; in isLegalShaderModel()
54 if (Version == SM6x) in isLegalShaderModel()
58 return MinVer <= Version; in isLegalShaderModel()
63 return MinVer <= Version; in isLegalShaderModel()
[all …]
H A DDarwin.cpp1 //===--- Darwin.cpp - Darwin Tool and ToolChain Implementations -*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
43 // See arch(3) and llvm-gcc's driver-driver.c. We don't implement support for in getArchTypeForMachOArchName()
48 // historically the driver accepts this and also ties its -march= in getArchTypeForMachOArchName()
86 // Don't reject these -version-min= if we have the appropriate triple. in setTripleTypeForMachOArchName()
89 A->ignoreTargetSpecific(); in setTripleTypeForMachOArchName()
92 A->ignoreTargetSpecific(); in setTripleTypeForMachOArchName()
95 A->ignoreTargetSpecific(); in setTripleTypeForMachOArchName()
116 while (SourceAction->getKind() != Action::InputClass) { in ConstructJob()
[all …]
H A DCuda.cpp1 //===--- Cuda.cpp - Cuda Tool and ToolChain Implementations -----*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
97 const SmallVector<StringRef, 3> words) -> std::optional<StringRef> { in parseCudaHFile()
111 Line->consumeInteger(10, RawVersion); in parseCudaHFile()
114 // Find next non-empty line. in parseCudaHFile()
122 if (Version > CudaVersion::PARTIALLY_SUPPORTED) { in WarnIfUnsupportedVersion()
123 std::string VersionString = CudaVersionToString(Version); in WarnIfUnsupportedVersion()
126 D.Diag(diag::warn_drv_new_cuda_version) in WarnIfUnsupportedVersion()
130 } else if (Version > CudaVersion::FULLY_SUPPORTED) in WarnIfUnsupportedVersion()
[all …]
H A DClang.cpp1 //===-- Clang.cpp - Clang+LLVM ToolChain Implementations --------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
34 #include "clang/Basic/Version.h"
47 #include "llvm/Config/llvm-config.h"
80 D.Diag(clang::diag::err_drv_argument_only_allowed_with) in CheckPreprocessingOptions()
81 << A->getBaseArg().getAsString(Args) in CheckPreprocessingOptions()
82 << (D.IsCLMode() ? "/E, /P or /EP" : "-E"); in CheckPreprocessingOptions()
92 D.Diag(diag::err_drv_argument_not_allowed_with) << A->getAsString(Args) in CheckCodeGenerationOptions()
93 << "-static"; in CheckCodeGenerationOptions()
[all …]
H A DAMDGPU.cpp1 //===--- AMDGPU.cpp - AMDGPU ToolChain Implementations ----------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
35 // Look for sub-directory starts with PackageName under ROCm candidate path.
36 // If there is one and only one matching sub-directory found, append the
37 // sub-directory to Path. If there is no matching sub-directory or there are
38 // more than one matching sub-directories, diagnose them. Returns the full
39 // path of the package if there is only one matching sub-directory, otherwise
47 std::string Prefix = Twine(PackageName + "-" + Cand.SPACKReleaseStr).str(); in findSPACKPackage()
52 llvm::StringRef FileName = llvm::sys::path::filename(File->path()); in findSPACKPackage()
[all …]
H A DFlang.cpp1 //===-- Flang.cpp - Flang+LLVM ToolChain Implementations --------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
29 /// Add -x lang to \p CmdArgs for \p Input.
32 CmdArgs.push_back("-x"); in addDashXForInput()
72 /// -Ofast, -O4, -O<number> and -f[no-]version-loops-for-stride.
74 /// -fno-version-loops-for-stride.
76 /// -floop-versioning
77 /// -Ofast
78 /// -O4
[all …]
H A DFuchsia.cpp1 //===--- Fuchsia.cpp - Fuchsia ToolChain Implementations --------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
44 // Silence warning for "clang -g foo.o -o foo" in ConstructJob()
46 // and "clang -emit-llvm foo.o -o foo" in ConstructJob()
48 // and for "clang -w foo.o -o foo". Other warning options are already in ConstructJob()
52 CmdArgs.push_back("-z"); in ConstructJob()
53 CmdArgs.push_back("max-page-size=4096"); in ConstructJob()
55 CmdArgs.push_back("-z"); in ConstructJob()
58 CmdArgs.push_back("-z"); in ConstructJob()
[all …]
H A DBareMetal.cpp1 //===-- BareMetal.cpp - Bare Metal ToolChain --------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
45 MultilibBuilder().flag("-march=rv64imac").flag("-mabi=lp64"); in findRISCVMultilibs()
47 .flag("-march=rv64imafdc") in findRISCVMultilibs()
48 .flag("-mabi=lp64d"); in findRISCVMultilibs()
54 addMultilibFlag((Arch == "rv64imac"), "-march=rv64imac", Flags); in findRISCVMultilibs()
55 addMultilibFlag(UseImafdc, "-march=rv64imafdc", Flags); in findRISCVMultilibs()
56 addMultilibFlag(Abi == "lp64", "-mabi=lp64", Flags); in findRISCVMultilibs()
57 addMultilibFlag(Abi == "lp64d", "-mabi=lp64d", Flags); in findRISCVMultilibs()
[all …]
H A DHIPAMD.cpp1 //===--- HIPAMD.cpp - HIP Tool and ToolChain Implementations ----*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
46 Option O = A->getOption(); in shouldSkipSanitizeOption()
56 // For simplicity, we only allow -fsanitize=address in shouldSkipSanitizeOption()
57 SanitizerMask K = parseSanitizerValue(A->getValue(), /*AllowGroups=*/false); in shouldSkipSanitizeOption()
67 if (Loc == FeatureMap.end() || !Loc->second) { in shouldSkipSanitizeOption()
69 clang::diag::warn_drv_unsupported_option_for_offload_arch_req_feature) in shouldSkipSanitizeOption()
70 << A->getAsString(DriverArgs) << TargetID << "xnack+"; in shouldSkipSanitizeOption()
81 // Construct llvm-link command. in constructLlvmLinkCommand()
[all …]
H A DHexagon.cpp1 //===--- Hexagon.cpp - Hexagon ToolChain Implementations --------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
28 // Default hvx-length for various versions.
38 // Handle the unsupported values passed to mhvx-length. in handleHVXWarnings()
40 StringRef Val = A->getValue(); in handleHVXWarnings()
42 D.Diag(diag::err_drv_unsupported_option_argument) in handleHVXWarnings()
43 << A->getSpelling() << Val; in handleHVXWarnings()
54 auto makeFeature = [&Args](Twine T, bool Enable) -> StringRef { in handleHVXTargetFeatures()
58 if (Opt.starts_with("mno-")) in handleHVXTargetFeatures()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclAttr.cpp1 //===--- SemaDeclAttr.cpp - Declaration Attribute Handling ----------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file implements decl-related attribute processing.
11 //===----------------------------------------------------------------------===//
105 S.Diag(Expr->getExprLoc(), diag::err_ice_too_large) in checkPositiveIntArgument()
117 const auto *Literal = dyn_cast<StringLiteral>(E->IgnoreParenCasts()); in checkStringLiteralArgumentAttr()
119 *ArgLocation = E->getBeginLoc(); in checkStringLiteralArgumentAttr()
121 if (!Literal || (!Literal->isUnevaluated() && !Literal->isOrdinary())) { in checkStringLiteralArgumentAttr()
122 Diag(E->getBeginLoc(), diag::err_attribute_argument_type) in checkStringLiteralArgumentAttr()
[all …]
H A DSemaHLSL.cpp1 //===- SemaHLSL.cpp - Semantic Analysis for HLSL constructs ---------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 //===----------------------------------------------------------------------===//
48 // https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-packing-rules
53 if (const RecordType *RT = T->getAs<RecordType>()) { in calculateLegacyCbufferSize()
54 const RecordDecl *RD = RT->getDecl(); in calculateLegacyCbufferSize()
55 for (const FieldDecl *Field : RD->fields()) { in calculateLegacyCbufferSize()
56 QualType Ty = Field->getType(); in calculateLegacyCbufferSize()
59 if (Ty->isAggregateType()) in calculateLegacyCbufferSize()
[all …]
H A DSemaAvailability.cpp1 //===--- SemaAvailability.cpp - Availability attribute handling -----------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
34 IdentifierInfo *IIEnvironment = AA->getEnvironment(); in hasMatchingEnvironmentOrNone()
40 AvailabilityAttr::getEnvironmentType(IIEnvironment->getName()); in hasMatchingEnvironmentOrNone()
53 D = FTD->getTemplatedDecl(); in getAttrForPlatform()
54 for (const auto *A : D->attrs()) { in getAttrForPlatform()
57 // de-duplicate. in getAttrForPlatform()
61 StringRef ActualPlatform = Avail->getPlatform()->getName(); in getAttrForPlatform()
[all …]
H A DSemaStmtAttr.cpp1 //===--- SemaStmtAttr.cpp - Statement Attribute Handling ------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file implements stmt-related attribute processing.
11 //===----------------------------------------------------------------------===//
32 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_wrong_target) in handleFallThroughAttr()
33 << A << St->getBeginLoc(); in handleFallThroughAttr()
35 S.Diag(L, diag::note_fallthrough_insert_semi_fixit) in handleFallThroughAttr()
40 if (FnScope->SwitchStack.empty()) { in handleFallThroughAttr()
41 S.Diag(A.getRange().getBegin(), diag::err_fallthrough_attr_outside_switch); in handleFallThroughAttr()
[all …]
H A DJumpDiagnostics.cpp1 //===--- JumpDiagnostics.cpp - Protected scope jump analysis ------*- C++ -*-=//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
28 /// JumpScopeChecker - This object is used by Sema to diagnose invalid jumps
41 /// Permissive - True when recovering from errors, in which case precautions
45 /// GotoScope - This is a record that we use to keep track of all of the
51 /// ParentScope - The index in ScopeMap of the parent scope. This is 0 for
55 /// InDiag - The note to emit if there is a jump into this scope.
58 /// OutDiag - The note to emit if there is an indirect jump out
[all …]
/freebsd/contrib/llvm-project/clang/lib/Driver/
H A DToolChain.cpp1 //===- ToolChain.cpp - Collections of tools for one platform --------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
32 #include "llvm/Config/llvm-config.h"
67 // Explicit rtti/no-rtti args in CalculateRTTIMode()
69 if (CachedRTTIArg->getOption().matches(options::OPT_frtti)) in CalculateRTTIMode()
75 // -frtti is default, except for the PS4/PS5 and DriverKit. in CalculateRTTIMode()
110 llvm::sys::fs::createTemporaryFile("toolchain-program", "txt", OutputFile); in executeToolChainProgram()
155 "(Non-)integrated backend set incorrectly!"); in useIntegratedBackend()
161 // Diagnose when integrated-objemitter options are not supported by this in useIntegratedBackend()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/
H A DX86.cpp1 //===--- X86.cpp - X86 Helpers for Tools ------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
27 StringRef CPU = A->getValue(); in getX86TargetCPU()
31 // FIXME: Reject attempts to use -march=native unless the target matches in getX86TargetCPU()
40 // The keys are case-sensitive; this matches link.exe. in getX86TargetCPU()
41 // 32-bit and 64-bit /arch: flags. in getX86TargetCPU()
46 {"AVX512", "skylake-avx512"}, in getX86TargetCPU()
49 // 32-bit-only /arch: flags. in getX86TargetCPU()
56 StringRef CPU = ArchMap.lookup(A->getValue()); in getX86TargetCPU()
[all …]
/freebsd/crypto/openssl/external/perl/Text-Template-1.56/t/
H A Dbasic.t11 my $tmpfile = File::Temp->new;
18 We will put value of \$v (which is "abc") here -> {\$v}
19 We will evaluate 1+1 here -> {1 + 1}
24 my $TEMPFILE = $tmpfile->filename;
40 my $template = Text::Template->new('type' => 'FILE', 'source' => $TEMPFILE);
41 ok(defined $template) or diag $Text::Template::ERROR;
46 We will put value of \$v (which is "abc") here -> abc
47 We will evaluate 1+1 here -> 2
51 We will put value of \$v (which is "abc") here -> ABC
52 We will evaluate 1+1 here -> 2
[all …]
/freebsd/share/man/man4/
H A Dgve.41 .\" SPDX-License-Identifier: BSD-3-Clause
3 .\" Copyright (c) 2023-2024 Google LLC
39 .Bd -ragged -offset indent
46 .Bd -literal -offset indent
51 It is required to support per-VM Tier-1 networking performance, and for using certain VM shapes on …
57 .Bl -bullet -compact
78 .Bl -bullet -compact
84 .Bl -diag
92 Global (across-queues) allocation failures:
93 .Bl -diag
[all …]
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DCompilerInvocation.cpp1 //===- CompilerInvocation.cpp ---------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
26 #include "clang/Basic/Version.h"
59 #include "llvm/Config/llvm-config.h"
110 //===----------------------------------------------------------------------===//
112 //===----------------------------------------------------------------------===//
124 //===----------------------------------------------------------------------===//
126 //===----------------------------------------------------------------------===//
274 //===----------------------------------------------------------------------===//
[all …]
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseDecl.cpp1 //===--- ParseDecl.cpp - Declaration Parsing --------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
41 //===----------------------------------------------------------------------===//
43 //===----------------------------------------------------------------------===//
46 /// type-name: [C99 6.7.6]
47 /// specifier-qualifier-list abstract-declarator[opt]
49 /// Called type-id in C++.
57 // Parse the common declaration-specifiers piece. in ParseTypeName()
[all …]
/freebsd/contrib/llvm-project/clang/tools/driver/
H A Dcc1as_main.cpp1 //===-- cc1as_main.cpp - Clang Assembler ---------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This is the entry point to the clang -cc1as functionality, which implements
12 //===----------------------------------------------------------------------===//
80 /// The list of target specific features to enable or disable -- this should
81 /// be a list of strings starting with '+' or '-'.
164 // Whether to emit compact-unwind for non-canonical entries.
175 /// The ABI targeted by the backend. Specified using -target-abi. Empty
183 /// The version of the darwin target variant SDK which was used during the
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSarifDiagnostics.cpp1 //===--- SarifDiagnostics.cpp - Sarif Diagnostics for Paths -----*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
18 #include "clang/Basic/Version.h"
116 // location, return these as-is. in convertTokenRangeToCharRange()
129 static SmallVector<ThreadFlow, 8> createThreadFlows(const PathDiagnostic *Diag, in createThreadFlows() argument
132 const PathPieces &Pieces = Diag->path.flatten(false); in createThreadFlows()
135 Piece->getLocation().asRange(), Piece->getLocation().getManager(), LO); in createThreadFlows()
139 .setMessage(Piece->getString()); in createThreadFlows()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/
H A DTextStub.cpp1 //===- TextStub.cpp -------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
31 // clang-format off
39 --- # the tag !tapi-tbd-v1 is optional and
44 install-name: /u/l/libfoo.dylib #
45 current-version: 1.2.3 # Optional: defaults to 1.0
46 compatibility-version: 1.0 # Optional: defaults to 1.0
47 swift-version: 0 # Optional: defaults to 0
[all …]

123456789