Home
last modified time | relevance | path

Searched refs:KIND (Results 1 – 25 of 246) sorted by relevance

12345678910

/llvm-project-15.0.7/clang/test/CodeGen/
H A Daarch64-sve-inline-asm-datatypes.c7 #define SVINT_TEST(DT, KIND)\ argument
8 DT func_int_##DT##KIND(DT in)\
13 "mov %[out]." #KIND ", p0/m, %[in]." #KIND "\n"\
125 #define SVBOOL_TEST(KIND)\ argument
130 "zip1 %[out]." #KIND ", %[in1]." #KIND ", %[in2]." #KIND "\n"\
153 "fadd %[out]." #KIND ", %[in1]." #KIND ", %[in2]." #KIND ", %[in3]." #KIND "\n"\
171 #define SVFLOAT_TEST(DT,KIND)\ argument
175 "ptrue p0." #KIND ", #1 \n"\
176 "fsub %[inout1]." #KIND ", p0/m, %[inout1]." #KIND ", %[in2]." #KIND "\n"\
199 #define SVFLOAT_TEST_Y(DT, KIND)\ argument
[all …]
/llvm-project-15.0.7/flang/include/flang/Runtime/
H A Dcpp-type.h26 template <TypeCategory CAT, int KIND> struct CppTypeForHelper {};
27 template <TypeCategory CAT, int KIND>
28 using CppTypeFor = typename CppTypeForHelper<CAT, KIND>::type;
30 template <TypeCategory CAT, int KIND, bool SFINAE = false>
32 template <TypeCategory CAT, int KIND>
33 constexpr bool HasCppTypeFor<CAT, KIND, true>{
36 template <int KIND> struct CppTypeForHelper<TypeCategory::Integer, KIND> {
37 using type = common::HostSignedIntType<8 * KIND>;
63 template <int KIND> struct CppTypeForHelper<TypeCategory::Complex, KIND> {
77 template <int KIND> struct CppTypeForHelper<TypeCategory::Logical, KIND> {
[all …]
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dfold-character.cpp46 template <int KIND>
50 using T = Type<TypeCategory::Character, KIND>; in FoldIntrinsicFunction()
83 SingleCharType most{0x7fffffff >> (8 * (4 - KIND))}; in FoldIntrinsicFunction()
108 template <int KIND>
109 Expr<Type<TypeCategory::Character, KIND>> FoldOperation( in FoldOperation()
110 FoldingContext &context, Concat<KIND> &&x) { in FoldOperation()
114 using Result = Type<TypeCategory::Character, KIND>; in FoldOperation()
121 template <int KIND>
122 Expr<Type<TypeCategory::Character, KIND>> FoldOperation( in FoldOperation()
123 FoldingContext &context, SetLength<KIND> &&x) { in FoldOperation()
[all …]
H A Dfold-complex.cpp14 template <int KIND>
15 Expr<Type<TypeCategory::Complex, KIND>> FoldIntrinsicFunction( in FoldIntrinsicFunction()
17 FunctionRef<Type<TypeCategory::Complex, KIND>> &&funcRef) { in FoldIntrinsicFunction()
18 using T = Type<TypeCategory::Complex, KIND>; in FoldIntrinsicFunction()
34 KIND); in FoldIntrinsicFunction()
61 ComplexConstructor<KIND>{ToReal<KIND>(context, std::move(re)), in FoldIntrinsicFunction()
62 ToReal<KIND>(context, std::move(im))}}); in FoldIntrinsicFunction()
77 template <int KIND>
78 Expr<Type<TypeCategory::Complex, KIND>> FoldOperation( in FoldOperation()
79 FoldingContext &context, ComplexConstructor<KIND> &&x) { in FoldOperation()
[all …]
H A Dexpression.cpp29 template <int KIND>
31 Expr<Type<TypeCategory::Character, KIND>>::LEN() const { in LEN()
44 [](const Concat<KIND> &c) -> T { in LEN()
145 template <int KIND>
175 template <int KIND>
176 bool Expr<Type<TypeCategory::Integer, KIND>>::operator==( in operator ==()
181 template <int KIND>
182 bool Expr<Type<TypeCategory::Real, KIND>>::operator==( in operator ==()
187 template <int KIND>
193 template <int KIND>
[all …]
H A Dconstant.cpp189 template <int KIND>
194 template <int KIND>
199 template <int KIND>
219 template <int KIND>
222 template <int KIND>
227 template <int KIND>
236 template <int KIND>
237 auto Constant<Type<TypeCategory::Character, KIND>>::At( in At()
243 template <int KIND>
265 template <int KIND>
[all …]
H A Dhost.h169 template <int KIND> struct HostTypeHelper<Type<TypeCategory::Complex, KIND>> {
170 using RealT = Fortran::evaluate::Type<TypeCategory::Real, KIND>;
175 template <int KIND> struct HostTypeHelper<Type<TypeCategory::Logical, KIND>> {
176 using Type = std::conditional_t<KIND <= 8, std::uint8_t, UnsupportedType>;
179 template <int KIND> struct HostTypeHelper<Type<TypeCategory::Character, KIND>> {
181 Scalar<typename Fortran::evaluate::Type<TypeCategory::Character, KIND>>;
H A Dfold-logical.cpp44 template <int KIND>
45 Expr<Type<TypeCategory::Logical, KIND>> FoldIntrinsicFunction( in FoldIntrinsicFunction()
48 using T = Type<TypeCategory::Logical, KIND>; in FoldIntrinsicFunction()
53 using SameInt = Type<TypeCategory::Integer, KIND>; in FoldIntrinsicFunction()
277 template <int KIND>
278 Expr<Type<TypeCategory::Logical, KIND>> FoldOperation( in FoldOperation()
279 FoldingContext &context, Not<KIND> &&x) { in FoldOperation()
283 using Ty = Type<TypeCategory::Logical, KIND>; in FoldOperation()
291 template <int KIND>
292 Expr<Type<TypeCategory::Logical, KIND>> FoldOperation( in FoldOperation()
[all …]
H A Dformatting.cpp78 template <int KIND>
172 template <int KIND>
187 template <int KIND> constexpr Precedence ToPrecedence(const Not<KIND> &) { in ToPrecedence() argument
199 template <int KIND> constexpr Precedence ToPrecedence(const Concat<KIND> &) { in ToPrecedence() argument
264 template <int KIND>
268 template <int KIND>
272 template <int KIND>
276 template <int KIND>
308 template <int KIND>
312 template <int KIND>
[all …]
/llvm-project-15.0.7/flang/include/flang/Evaluate/
H A Dexpression.h250 template <int KIND>
266 template <int KIND>
279 template <int KIND>
348 template <int KIND>
359 template <int KIND>
370 template <int KIND>
470 template <int KIND>
517 template <int KIND>
548 template <int KIND>
572 template <int KIND>
[all …]
H A Dtype.h252 static constexpr int kind{KIND};
258 template <int KIND>
259 class Type<TypeCategory::Integer, KIND>
262 using Scalar = value::Integer<8 * KIND>;
265 template <int KIND>
266 class Type<TypeCategory::Real, KIND>
275 template <int KIND>
276 class Type<TypeCategory::Complex, KIND>
304 template <int KIND>
305 class Type<TypeCategory::Logical, KIND>
[all …]
/llvm-project-15.0.7/flang/lib/Lower/
H A DIterationSpace.cpp103 template <int KIND>
163 template <int KIND>
169 template <int KIND>
174 template <int KIND>
237 template <int KIND>
241 template <int KIND>
371 template <int KIND>
426 template <int KIND>
431 template <int KIND>
436 template <int KIND>
[all …]
H A DConvertType.cpp51 template <int KIND>
54 KIND>::Scalar::bits; in getIntegerBits()
75 static mlir::Type genLogicalType(mlir::MLIRContext *context, int KIND) { in genLogicalType() argument
77 Fortran::common::TypeCategory::Logical, KIND)) in genLogicalType()
78 return fir::LogicalType::get(context, KIND); in genLogicalType()
83 mlir::MLIRContext *context, int KIND, in genCharacterType() argument
86 Fortran::common::TypeCategory::Character, KIND)) in genCharacterType()
87 return fir::CharacterType::get(context, KIND, len); in genCharacterType()
91 static mlir::Type genComplexType(mlir::MLIRContext *context, int KIND) { in genComplexType() argument
93 Fortran::common::TypeCategory::Complex, KIND)) in genComplexType()
[all …]
/llvm-project-15.0.7/flang/runtime/
H A Dextrema.cpp120 using CppType = CppTypeFor<CAT, KIND>; in DoMaxOrMinLoc()
132 template <int KIND> struct Functor {
202 using CppType = CppTypeFor<CAT, KIND>; in DoPartialMaxOrMinLocDirection()
227 template <int KIND> struct Functor {
301 using Type = CppTypeFor<CAT, KIND>;
320 using Type = CppTypeFor<CAT, KIND>;
359 using Type = CppTypeFor<CAT, KIND>; in DoMaxMinNorm2()
379 template <int KIND> struct Functor {
383 DoMaxMinNorm2<CAT, KIND, in operator ()()
451 template <int KIND> struct Functor {
[all …]
H A Dreduction-templates.h77 template <TypeCategory CAT, int KIND, typename ACCUMULATOR>
78 inline CppTypeFor<CAT, KIND> GetTotalReduction(const Descriptor &x, in GetTotalReduction()
82 RUNTIME_CHECK(terminator, TypeCode(CAT, KIND) == x.type()); in GetTotalReduction()
83 using CppType = CppTypeFor<CAT, KIND>; in GetTotalReduction()
193 template <typename ACCUMULATOR, TypeCategory CAT, int KIND>
202 using CppType = CppTypeFor<CAT, KIND>; in PartialReduction()
232 template <int KIND> struct Functor {
258 template <int KIND> struct Functor {
266 PartialReduction<Accumulator, CAT, KIND>( in operator()
304 template <int KIND> struct Functor {
[all …]
H A Ddescriptor-io.h45 template <int KIND, Direction DIR>
51 using IntType = CppTypeFor<TypeCategory::Integer, KIND>; in FormattedIntegerIO()
57 if (!EditIntegerOutput<KIND>(io, *edit, x)) { in FormattedIntegerIO()
78 template <int KIND, Direction DIR>
90 if (!RealOutputEditing<KIND>{io, x}.Edit(*edit)) { in FormattedRealIO()
111 template <int KIND, Direction DIR>
128 if (!RealOutputEditing<KIND>{io, x[0]}.Edit(rEdit) || in FormattedComplexIO()
129 !RealOutputEditing<KIND>{io, x[1]}.Edit(iEdit)) { in FormattedComplexIO()
143 } else if (EditRealInput<KIND>( in FormattedComplexIO()
199 template <int KIND, Direction DIR>
[all …]
H A Dtime-intrinsic.cpp185 template <int KIND> struct StoreNegativeHugeAt {
189 Fortran::common::TypeCategory::Integer, KIND>>(at) = in operator ()()
191 Fortran::common::TypeCategory::Integer, KIND>>::max(); in operator ()()
231 template <int KIND, typename TM = struct tm>
232 Fortran::runtime::CppTypeFor<Fortran::common::TypeCategory::Integer, KIND>
238 template <int KIND, typename TM = struct tm>
239 Fortran::runtime::CppTypeFor<Fortran::common::TypeCategory::Integer, KIND>
245 Fortran::common::TypeCategory::Integer, KIND>>::max(); in GetGmtOffset()
248 template <int KIND> struct StoreGmtOffset {
252 Fortran::common::TypeCategory::Integer, KIND>>(at) = in operator ()()
[all …]
H A Dfindloc.cpp64 template <int KIND> struct CharacterEquality {
65 using Type = CppTypeFor<TypeCategory::Character, KIND>;
70 array.ElementBytes() / static_cast<unsigned>(KIND), in operator ()()
71 target.ElementBytes() / static_cast<unsigned>(KIND)) == 0; in operator ()()
146 template <int KIND> struct Functor {
153 HELPER<CAT, KIND, TypeCategory::Integer>::template Functor, void>( in operator ()()
159 HELPER<CAT, KIND, TypeCategory::Real>::template Functor, void>( in operator ()()
178 template <int KIND> struct CharacterFindlocHelper {
182 using Accumulator = LocationAccumulator<CharacterEquality<KIND>>; in operator ()()
273 template <int KIND> struct PartialCharacterFindlocHelper {
[all …]
H A Dtools.h59 template <int KIND> struct StoreIntegerAt {
63 Fortran::common::TypeCategory::Integer, KIND>>(at) = value; in operator()
218 template <template <int KIND> class FUNC, typename RESULT, typename... A>
238 template <template <int KIND> class FUNC, typename RESULT, typename... A>
266 template <template <int KIND> class FUNC, typename RESULT, typename... A>
280 template <template <int KIND> class FUNC, typename RESULT, typename... A>
353 template <TypeCategory CAT, int KIND>
356 ? std::max(KIND, static_cast<int>(sizeof(double)))
357 : KIND>;
H A Dedit-output.h32 template <int KIND>
34 IoStatementState &, const DataEdit &, common::HostSignedIntType<8 * KIND>);
65 template <int KIND> class RealOutputEditing : public RealOutputEditingBase {
67 static constexpr int binaryPrecision{common::PrecisionOfRealKind(KIND)};
/llvm-project-15.0.7/flang/include/flang/Lower/
H A DMangler.h68 template <Fortran::common::TypeCategory TC, int KIND>
70 const Fortran::evaluate::Constant<Fortran::evaluate::Type<TC, KIND>> &x) { in mangleArrayLiteral()
73 x.values().size() * sizeof(x.values()[0]), x.shape(), TC, KIND); in mangleArrayLiteral()
76 template <int KIND>
79 Fortran::common::TypeCategory::Character, KIND>> &x) { in mangleArrayLiteral()
83 Fortran::common::TypeCategory::Character, KIND, x.LEN()); in mangleArrayLiteral()
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/
H A Dmips-options-sec.test128 # KIND: MIPS Options {
129 # KIND-NEXT: Unsupported MIPS options tag: [[TAG]]
130 # KIND-NEXT: ODK_REGINFO {
131 # KIND-NEXT: GP: 0x0
132 # KIND-NEXT: General Mask: 0x0
133 # KIND-NEXT: Co-Proc Mask0: 0x0
134 # KIND-NEXT: Co-Proc Mask1: 0x0
135 # KIND-NEXT: Co-Proc Mask2: 0x0
136 # KIND-NEXT: Co-Proc Mask3: 0x0
137 # KIND-NEXT: }
[all …]
/llvm-project-15.0.7/flang/unittests/Runtime/
H A Dtools.h35 template <TypeCategory CAT, int KIND, typename A>
38 std::size_t elemLen = CAT == TypeCategory::Complex ? 2 * KIND : KIND) {
40 auto result{Descriptor::Create(TypeCode{CAT, KIND}, elemLen, nullptr, rank,
/llvm-project-15.0.7/flang/unittests/Evaluate/
H A Dlogical.cpp5 template <int KIND> void testKind() { in testKind()
7 Fortran::evaluate::Type<Fortran::common::TypeCategory::Logical, KIND>; in testKind()
10 TEST(Type::kind == KIND); in testKind()
12 MATCH(8 * KIND, Value::bits); in testKind()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCMacroFusion.cpp28 #define FUSION_KIND(KIND) FK_##KIND argument
29 #define FUSION_FEATURE(KIND, HAS_FEATURE, DEP_OP_IDX, OPSET1, OPSET2) \ argument
30 FUSION_KIND(KIND),
245 #define FUSION_FEATURE(KIND, HAS_FEATURE, DEP_OP_IDX, OPSET1, OPSET2) { \ in shouldScheduleAdjacent() argument
246 FusionFeature::FUSION_KIND(KIND), ST.HAS_FEATURE(), DEP_OP_IDX, { OPSET1 },\ in shouldScheduleAdjacent()

12345678910