/llvm-project/mlir/test/mlir-tblgen/ |
H A D | attr-or-type-format-invalid.td | 17 let parameters = (ins "int":$v0, "int":$v1); 24 let parameters = (ins "int":$v0, "int":$v1); 31 let parameters = (ins "int":$v0, "int":$v1); 38 let parameters = (ins "int":$v0); 44 // Test struct directive cannot capture zero parameters. 46 let parameters = (ins "int":$v0); 53 let parameters = (ins "int":$v0); 60 let parameters = (ins "int":$v0, "int":$v1, "int":$v2); 67 let parameters = (ins "int":$v0, "int":$v1, "int":$v2); 74 let parameters = (ins "int":$v0); [all …]
|
/llvm-project/llvm/unittests/IR/ |
H A D | VFABIDemanglerTest.cpp | 29 /// 2. The number of parameters from the parsed mangled name matches the number 31 /// 3. The number of vector parameters and their types match the values 66 /// Parameters for the vectorized function 67 SmallVector<VFParameter, 8> &Parameters = Info.Shape.Parameters; 137 // Missing parameters. in TEST_F() 169 EXPECT_EQ(Parameters.size(), (unsigned)5); in TEST_F() 170 EXPECT_EQ(Parameters[0], VFParameter({0, VFParamKind::Vector, 0})); in TEST_F() 171 EXPECT_EQ(Parameters[1], VFParameter({1, VFParamKind::OMP_Linear, 16})); in TEST_F() 172 EXPECT_EQ(Parameters[ in TEST_F() 65 SmallVector<VFParameter, 8> &Parameters = Info.Shape.Parameters; global() member in __anon86e2c1e00111::VFABIParserTest [all...] |
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
H A D | easily-swappable-parameters-qualifiermixing.cpp | 1 // RUN: %check_clang_tidy %s bugprone-easily-swappable-parameters %t \ 3 // RUN: bugprone-easily-swappable-parameters.MinimumLength: 2, \ 4 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterNames: "", \ 5 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterTypeSuffixes: "", \ 6 // RUN: bugprone-easily-swappable-parameters.QualifiersMix: 1, \ 7 // RUN: bugprone-easily-swappable-parameters.ModelImplicitConversions: 0, \ 8 // RUN: bugprone-easily-swappable-parameters.SuppressParametersUsedTogether: 0, \ 9 // RUN: bugprone-easily-swappable-parameters.NamePrefixSuffixSilenceDissimilarityTreshold: 0 \ 19 … warning: 2 adjacent parameters of 'qualified1' of similar type are easily swapped by mistake [bug… 22 // CHECK-MESSAGES: :[[@LINE-4]]:24: note: 'int' and 'const int' parameters accept and bind the same… [all …]
|
H A D | easily-swappable-parameters-len3.cpp | 1 // RUN: %check_clang_tidy %s bugprone-easily-swappable-parameters %t \ 3 // RUN: bugprone-easily-swappable-parameters.MinimumLength: 3, \ 4 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterNames: "", \ 5 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterTypeSuffixes: "", \ 6 // RUN: bugprone-easily-swappable-parameters.QualifiersMix: 0, \ 7 // RUN: bugprone-easily-swappable-parameters.ModelImplicitConversions: 0, \ 8 // RUN: bugprone-easily-swappable-parameters.SuppressParametersUsedTogether: 0, \ 9 // RUN: bugprone-easily-swappable-parameters.NamePrefixSuffixSilenceDissimilarityTreshold: 0 \ 12 int add(int Left, int Right) { return Left + Right; } // NO-WARN: Only 2 parameters. in add() 15 …warning: 4 adjacent parameters of 'magic' of similar type ('int') are easily swapped by mistake [b… [all …]
|
H A D | easily-swappable-parameters-implicits.c | 1 // RUN: %check_clang_tidy %s bugprone-easily-swappable-parameters %t \ 3 // RUN: bugprone-easily-swappable-parameters.MinimumLength: 2, \ 4 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterNames: "", \ 5 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterTypeSuffixes: "", \ 6 // RUN: bugprone-easily-swappable-parameters.QualifiersMix: 0, \ 7 // RUN: bugprone-easily-swappable-parameters.ModelImplicitConversions: 1, \ 8 // RUN: bugprone-easily-swappable-parameters.SuppressParametersUsedTogether: 0, \ 9 // RUN: bugprone-easily-swappable-parameters.NamePrefixSuffixSilenceDissimilarityTreshold: 0 \ 13 …djacent parameters of 'implicitDoesntBreakOtherStuff' of similar type ('int') are easily swapped b… 18 // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: 2 adjacent parameters of 'arrayAndPtr1' of similar typ… [all …]
|
H A D | easily-swappable-parameters-implicit-qualifiers.cpp | 1 // RUN: %check_clang_tidy %s bugprone-easily-swappable-parameters %t \ 3 // RUN: bugprone-easily-swappable-parameters.MinimumLength: 2, \ 4 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterNames: "", \ 5 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterTypeSuffixes: "", \ 6 // RUN: bugprone-easily-swappable-parameters.QualifiersMix: 1, \ 7 // RUN: bugprone-easily-swappable-parameters.ModelImplicitConversions: 1, \ 8 // RUN: bugprone-easily-swappable-parameters.SuppressParametersUsedTogether: 0, \ 9 // RUN: bugprone-easily-swappable-parameters.NamePrefixSuffixSilenceDissimilarityTreshold: 0 \ 13 …adjacent parameters of 'numericAndQualifierConversion' of convertible types are easily swapped by … 16 // CHECK-MESSAGES: :[[@LINE-4]]:43: note: 'int' and 'const double' parameters accept and bind the s…
|
H A D | easily-swappable-parameters-prefixsuffixname.cpp | 1 // RUN: %check_clang_tidy %s bugprone-easily-swappable-parameters %t \ 3 // RUN: bugprone-easily-swappable-parameters.MinimumLength: 2, \ 4 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterNames: "", \ 5 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterTypeSuffixes: "", \ 6 // RUN: bugprone-easily-swappable-parameters.QualifiersMix: 0, \ 7 // RUN: bugprone-easily-swappable-parameters.ModelImplicitConversions: 0, \ 8 // RUN: bugprone-easily-swappable-parameters.SuppressParametersUsedTogether: 0, \ 9 // RUN: bugprone-easily-swappable-parameters.NamePrefixSuffixSilenceDissimilarityTreshold: 1 \ 18 …warning: 2 adjacent parameters of 'test1' of similar type ('int') are easily swapped by mistake [b… 23 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: 2 adjacent parameters of 'test2' of similar type ('int… [all …]
|
H A D | easily-swappable-parameters-len2.cpp | 1 // RUN: %check_clang_tidy %s bugprone-easily-swappable-parameters %t \ 3 // RUN: bugprone-easily-swappable-parameters.MinimumLength: 2, \ 4 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterNames: "", \ 5 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterTypeSuffixes: "", \ 6 // RUN: bugprone-easily-swappable-parameters.QualifiersMix: 0, \ 7 // RUN: bugprone-easily-swappable-parameters.ModelImplicitConversions: 0, \ 8 // RUN: bugprone-easily-swappable-parameters.SuppressParametersUsedTogether: 0, \ 9 // RUN: bugprone-easily-swappable-parameters.NamePrefixSuffixSilenceDissimilarityTreshold: 0 \ 22 S *allocate() { return nullptr; } // NO-WARN: 0 parameters. in allocate() 31 S operator()() { return {}; } // NO-WARN: 0 parameters, overloaded operator. in operator ()() [all …]
|
H A D | easily-swappable-parameters-ignore.cpp | 1 // RUN: %check_clang_tidy %s bugprone-easily-swappable-parameters %t \ 3 // RUN: bugprone-easily-swappable-parameters.MinimumLength: 2, \ 4 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterNames: "\"\";Foo;Bar", \ 5 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterTypeSuffixes: "T", \ 6 // RUN: bugprone-easily-swappable-parameters.QualifiersMix: 0, \ 7 // RUN: bugprone-easily-swappable-parameters.ModelImplicitConversions: 0, \ 8 // RUN: bugprone-easily-swappable-parameters.SuppressParametersUsedTogether: 0, \ 9 // RUN: bugprone-easily-swappable-parameters.NamePrefixSuffixSilenceDissimilarityTreshold: 0 \ 15 …ng: 2 adjacent parameters of 'nothingIgnored' of similar type ('int') are easily swapped by mistak… 20 // CHECK-MESSAGES: :[[@LINE-1]]:32: warning: 2 adjacent parameters of 'ignoredParameter' of similar… [all …]
|
H A D | easily-swappable-parameters-relatedness.c | 1 // RUN: %check_clang_tidy %s bugprone-easily-swappable-parameters %t \ 3 // RUN: bugprone-easily-swappable-parameters.MinimumLength: 2, \ 4 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterNames: "", \ 5 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterTypeSuffixes: "", \ 6 // RUN: bugprone-easily-swappable-parameters.QualifiersMix: 0, \ 7 // RUN: bugprone-easily-swappable-parameters.ModelImplicitConversions: 0, \ 8 // RUN: bugprone-easily-swappable-parameters.SuppressParametersUsedTogether: 1, \ 9 // RUN: bugprone-easily-swappable-parameters.NamePrefixSuffixSilenceDissimilarityTreshold: 0 \ 16 // CHECK-MESSAGES: :[[@LINE-1]]:17: warning: 2 adjacent parameters of 'notRelated' of similar type … 26 // CHECK-MESSAGES: :[[@LINE-4]]:30: warning: 2 adjacent parameters of 'passedToSameKNRFunction' of … [all …]
|
H A D | easily-swappable-parameters.c | 1 // RUN: %check_clang_tidy %s bugprone-easily-swappable-parameters %t \ 3 // RUN: bugprone-easily-swappable-parameters.MinimumLength: 2, \ 4 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterNames: "", \ 5 // RUN: bugprone-easily-swappable-parameters.IgnoredParameterTypeSuffixes: "bool;MyBool;struct … 6 // RUN: bugprone-easily-swappable-parameters.QualifiersMix: 0, \ 7 // RUN: bugprone-easily-swappable-parameters.ModelImplicitConversions: 0, \ 8 // RUN: bugprone-easily-swappable-parameters.SuppressParametersUsedTogether: 0, \ 9 // RUN: bugprone-easily-swappable-parameters.NamePrefixSuffixSilenceDissimilarityTreshold: 0 \ 26 …arning: 2 adjacent parameters of 'trivial' of similar type ('int') are easily swapped by mistake [… 33 // CHECK-MESSAGES: :[[@LINE-1]]:24: warning: 2 adjacent parameters of 'restrictQualifier' of simila… [all …]
|
/llvm-project/flang/docs/ |
H A D | ParameterizedDerivedTypes.md | 3 Derived types can be parameterized with type parameters. A type parameter is 5 type parameters are of integer type. 15 - 7.2 Type parameters 31 compile-time and is folded in the type itself. Kind type parameters also play 53 Two PDTs with the same derived type and the same kind type parameters but 54 different length type parameters are not distinct types. Unlike the kind type 55 parameter, the length type parameters do not play a role in determining a 78 Components with length type parameters cannot be folded into the type at 79 compile-time like the one with kind type parameters since their size is not 80 known. There are multiple ways to implement length type parameters an 830 `fir.alloca`Parameterized Derived Types (PDTs)""Fortran standard""FIR operations with length type parameters global() argument 843 `fir.allocmem`Parameterized Derived Types (PDTs)""Fortran standard""FIR operations with length type parameters global() argument 857 `fir.embox`Parameterized Derived Types (PDTs)""Fortran standard""FIR operations with length type parameters global() argument 890 `fir.field_index`Parameterized Derived Types (PDTs)""Fortran standard""FIR operations with length type parameters global() argument 905 `fir.len_param_index`Parameterized Derived Types (PDTs)""Fortran standard""FIR operations with length type parameters global() argument 919 `fir.save_result`Parameterized Derived Types (PDTs)""Fortran standard""FIR operations with length type parameters global() argument [all...] |
/llvm-project/flang/test/Semantics/ |
H A D | allocate06.f90 | 56 …!ERROR: Type parameters in type-spec must be assumed if and only if they are assumed for allocatab… 58 …!ERROR: Type parameters in type-spec must be assumed if and only if they are assumed for allocatab… 59 …!ERROR: Type parameters in type-spec must be assumed if and only if they are assumed for allocatab… 61 …!ERROR: Type parameters in type-spec must be assumed if and only if they are assumed for allocatab… 63 …!ERROR: Type parameters in type-spec must be assumed if and only if they are assumed for allocatab… 64 …!ERROR: Type parameters in type-spec must be assumed if and only if they are assumed for allocatab… 66 …!ERROR: Type parameters in type-spec must be assumed if and only if they are assumed for allocatab… 68 …!ERROR: Type parameters in type-spec must be assumed if and only if they are assumed for allocatab… 70 …!ERROR: Type parameters in type-spec must be assumed if and only if they are assumed for allocatab… 71 …!ERROR: Type parameters in type-spec must be assumed if and only if they are assumed for allocatab… [all …]
|
H A D | allocate09.f90 | 5 ! If source-expr appears, the kind type parameters of each allocate-object shall 6 ! have the same values as the corresponding type parameters of source-expr. 94 …!ERROR: Derived type parameters of allocatable object must be the same as the corresponding ones o… 96 …!ERROR: Derived type parameters of allocatable object must be the same as the corresponding ones o… 98 …!ERROR: Derived type parameters of allocatable object must be the same as the corresponding ones o… 100 …!ERROR: Derived type parameters of allocatable object must be the same as the corresponding ones o… 102 …!ERROR: Derived type parameters of allocatable object must be the same as the corresponding ones o… 104 …!ERROR: Derived type parameters of allocatable object must be the same as the corresponding ones o… 106 …!ERROR: Derived type parameters of allocatable object must be the same as the corresponding ones o… 108 …!ERROR: Derived type parameters of allocatable object must be the same as the corresponding ones o… [all …]
|
H A D | allocate07.f90 | 61 …!ERROR: Type parameters of allocatable object in ALLOCATE must be the same as the corresponding on… 63 …!ERROR: Type parameters of allocatable object in ALLOCATE must be the same as the corresponding on… 65 …!ERROR: Type parameters of allocatable object in ALLOCATE must be the same as the corresponding on… 67 …!ERROR: Type parameters of allocatable object in ALLOCATE must be the same as the corresponding on… 69 …!ERROR: Type parameters of allocatable object in ALLOCATE must be the same as the corresponding on… 71 …!ERROR: Type parameters of allocatable object in ALLOCATE must be the same as the corresponding on… 73 …!ERROR: Type parameters of allocatable object in ALLOCATE must be the same as the corresponding on… 75 …!ERROR: Type parameters of allocatable object in ALLOCATE must be the same as the corresponding on… 77 …!ERROR: Type parameters of allocatable object in ALLOCATE must be the same as the corresponding on… 79 …!ERROR: Type parameters of allocatable object in ALLOCATE must be the same as the corresponding on… [all …]
|
H A D | allocate03.f90 | 8 ! Only testing deferred type parameters here. 44 …-spec or source-expr must appear in ALLOCATE when allocatable object has a deferred type parameters 46 …-spec or source-expr must appear in ALLOCATE when allocatable object has a deferred type parameters 48 …-spec or source-expr must appear in ALLOCATE when allocatable object has a deferred type parameters 50 …-spec or source-expr must appear in ALLOCATE when allocatable object has a deferred type parameters 52 …-spec or source-expr must appear in ALLOCATE when allocatable object has a deferred type parameters 54 …-spec or source-expr must appear in ALLOCATE when allocatable object has a deferred type parameters 56 …-spec or source-expr must appear in ALLOCATE when allocatable object has a deferred type parameters 58 …-spec or source-expr must appear in ALLOCATE when allocatable object has a deferred type parameters 60 …-spec or source-expr must appear in ALLOCATE when allocatable object has a deferred type parameters [all …]
|
/llvm-project/mlir/test/lib/Dialect/Test/ |
H A D | TestTypeDefs.td | 35 // List of type parameters. 36 let parameters = ( 57 // List of type parameters. 58 let parameters = ( 69 // List of type parameters. 70 let parameters = (ins CompoundNestedInnerType:$inner); 77 // List of type parameters. 78 let parameters = ( 89 let parameters = ( 129 let parameters [all...] |
H A D | TestAttrDefs.td | 40 // List of type parameters. 41 let parameters = ( 56 let parameters = (ins CompoundAttrA : $nested ); 64 let parameters = (ins AttributeSelfTypeParameter<"">:$type); 72 let parameters = (ins 90 let parameters = (ins ArrayRefParameter<"int64_t">:$shape); 98 let parameters = (ins 135 let parameters = (ins 146 // List of type parameters. 147 let parameters [all...] |
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/ |
H A D | avoid-reference-coroutine-parameters.cpp | 1 // RUN: %check_clang_tidy -std=c++20 %s cppcoreguidelines-avoid-reference-coroutine-parameters %t -- 54 …INE-1]]:25: warning: coroutine parameters should not be references [cppcoreguidelines-avoid-refere… in accepts_references() 55 …INE-2]]:33: warning: coroutine parameters should not be references [cppcoreguidelines-avoid-refere… in accepts_references() 60 …INE-1]]:44: warning: coroutine parameters should not be references [cppcoreguidelines-avoid-refere… in accepts_references_and_non_references() 65 …INE-1]]:36: warning: coroutine parameters should not be references [cppcoreguidelines-avoid-refere… in accepts_references_to_objects() 80 …INE-1]]:28: warning: coroutine parameters should not be references [cppcoreguidelines-avoid-refere… in defines_a_lambda() 83 …INE-1]]:29: warning: coroutine parameters should not be references [cppcoreguidelines-avoid-refere… in defines_a_lambda() 97 …INE-1]]:37: warning: coroutine parameters should not be references [cppcoreguidelines-avoid-refere… in coroWithReferenceBehindTypedef()
|
/llvm-project/polly/lib/External/isl/ |
H A D | isl_bind_domain_templ.c | 46 * if any of those identifiers appear as parameters 47 * in "obj", then equate those parameters with the corresponding 48 * input dimensions and project out the parameters. 49 * The result therefore has no such parameters. 78 * to the domain of "obj", if any of those identifiers appear as parameters 79 * in "obj", then equate those parameters with the corresponding 80 * input dimensions and project out the parameters. 81 * The result therefore has no such parameters. 99 /* Bind the domain dimensions of the function "obj" to parameters 103 * If no parameters with these identifiers appear in "obj" already, [all …]
|
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
H A D | easily-swappable-parameters.rst | 1 .. title:: clang-tidy - bugprone-easily-swappable-parameters 3 bugprone-easily-swappable-parameters 6 Finds function definitions where parameters of convertible types follow each 48 Whether to consider parameters of some *cvr-qualified* ``T`` and a 64 Whether to consider parameters of type ``T`` and ``U`` mixable if there 117 To ignore unnamed parameters, add `""` to the list verbatim (not the 123 `""` (unnamed parameters), `iterator`, `begin`, `end`, `first`, `last`, 130 Parameters which type, as written in the source code, end with an element 145 Suppresses diagnostics about parameters that are used together or in a 153 * The parameters are used in the same expression, e.g. ``f(a, b)`` or [all …]
|
/llvm-project/clang/test/SemaTemplate/ |
H A D | temp_arg_template_p0522.cpp | 37 // expected-note@-1 {{different template parameters}} 39 // expected-note@-1 {{different template parameters}} 41 // expected-note@-1 {{different template parameters}} 43 // expected-note@-1 {{different template parameters}} 47 // parameter matches any number of parameters in arguments" rule. 52 // expected-note@-1 {{different template parameters}} 54 // expected-note@-1 {{different template parameters}} 56 // expected-note@-1 {{different template parameters}} 68 // expected-note@-1 {{different template parameters}} 71 // expected-note@-1 {{different template parameters}} [all...] |
/llvm-project/mlir/docs/DefiningDialects/ |
H A D | AttributesAndTypes.md | 96 let parameters = (ins "unsigned":$width); 106 /// Indicate that our type will add additional verification to the parameters. 133 /// Here we've defined two parameters, one is a "self" type parameter, and the 136 let parameters = (ins AttributeSelfTypeParameter<"">:$type, "APInt":$value); 157 /// Indicate that our attribute will add additional verification to the parameters. 206 The `mnemonic` field, i.e. the template parameters `attrMnemonic` and 214 ### Parameters subsection 216 The `parameters` field is a variable length list containing the attribute or 217 type's parameters. If no parameters ar 233 AttrParameter, TypeParameter, and AttrOrTypeParameterDefining Dialect Attributes and Types""Attributes and Types""Parameters global() argument [all...] |
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/ |
H A D | named-parameter.cpp | 4 // CHECK-MESSAGES: :[[@LINE-1]]:19: warning: all parameters should be named in a function 7 // CHECK-MESSAGES: :[[@LINE-1]]:20: warning: all parameters should be named in a function 10 // CHECK-MESSAGES: :[[@LINE-1]]:20: warning: all parameters should be named in a function 13 // CHECK-MESSAGES: :[[@LINE-1]]:20: warning: all parameters should be named in a function 16 // CHECK-MESSAGES: :[[@LINE-1]]:30: warning: all parameters should be named in a function 19 // CHECK-MESSAGES: :[[@LINE-1]]:16: warning: all parameters should be named in a function 22 // CHECK-MESSAGES: :[[@LINE-1]]:21: warning: all parameters should be named in a function 25 // CHECK-MESSAGES: :[[@LINE-1]]:37: warning: all parameters should be named in a function 56 // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: all parameters should be named in a function 70 // CHECK-MESSAGES: :[[@LINE-1]]:15: warning: all parameters should be named in a function [all …]
|
/llvm-project/mlir/include/mlir/TableGen/ |
H A D | Class.h | 87 /// This class contains a list of method parameters for constructor, class 91 /// Create a list of method parameters. in MethodParameters() 92 MethodParameters(std::initializer_list<MethodParameter> parameters) in MethodParameters() argument 93 : parameters(parameters) {} in MethodParameters() 94 MethodParameters(SmallVector<MethodParameter> parameters) 95 : parameters(std::move(parameters)) {} 97 /// Write the parameters as part of a method declaration. 99 /// Write the parameters a 90 MethodParameters(std::initializer_list<MethodParameter> parameters) MethodParameters() argument 121 MethodSignature(RetTypeT && retType,NameT && name,SmallVector<MethodParameter> && parameters) MethodSignature() argument 129 MethodSignature(RetTypeT && retType,NameT && name,ArrayRef<MethodParameter> parameters) MethodSignature() argument 137 MethodSignature(RetTypeT && retType,NameT && name,Parameters &&...parameters) MethodSignature() argument 190 MethodParameters parameters; global() variable 683 addMethod(RetTypeT && retType,NameT && name,Method::Properties properties,ArrayRef<MethodParameter> parameters) addMethod() argument 696 addMethod(RetTypeT && retType,NameT && name,ArrayRef<MethodParameter> parameters) addMethod() argument [all...] |