Home
last modified time | relevance | path

Searched refs:TypeRange (Results 1 – 25 of 216) sorted by relevance

123456789

/llvm-project/mlir/include/mlir/IR/
H A DTypeRange.h1 //===- TypeRange.h ----------------------------------------------*- C++ -*-===//
9 // This file defines the TypeRange and ValueTypeRange classes.
25 // TypeRange
32 class TypeRange : public llvm::detail::indexed_accessor_range_base<
33 TypeRange,
39 TypeRange(ArrayRef<Type> types = std::nullopt);
40 explicit TypeRange(OperandRange values);
41 explicit TypeRange(ResultRange values);
42 explicit TypeRange(ValueRange values);
44 TypeRange(ValueTypeRang function
49 TypeRange(Arg &&arg) : TypeRange(ArrayRef<Type>(std::forward<Arg>(arg))) {} TypeRange() function
50 TypeRange(std::initializer_list<Type> types) TypeRange() function
[all...]
H A DTypeUtilities.h24 class TypeRange; variable
61 LogicalResult verifyCompatibleShapes(TypeRange types1, TypeRange types2);
66 LogicalResult verifyCompatibleShapes(TypeRange types);
74 TypeRange insertTypesInto(TypeRange oldTypes, ArrayRef<unsigned> indices,
75 TypeRange newTypes, SmallVectorImpl<Type> &storage);
79 TypeRange filterTypesOut(TypeRange types, const BitVector &indices,
/llvm-project/mlir/lib/IR/
H A DTypeRange.cpp1 //===- TypeRange.cpp ------------------------------------------------------===//
9 #include "mlir/IR/TypeRange.h"
15 // TypeRange
17 TypeRange::TypeRange(ArrayRef<Type> types) in TypeRange() function in TypeRange
18 : TypeRange(types.data(), types.size()) { in TypeRange()
20 "attempting to construct a TypeRange with null types"); in TypeRange()
22 TypeRange::TypeRange(OperandRange values) in TypeRange() function in TypeRange
23 : TypeRange(value in TypeRange()
24 TypeRange::TypeRange(ResultRange values) TypeRange() function in TypeRange
26 TypeRange::TypeRange(ValueRange values) : TypeRange(OwnerT(), values.size()) { TypeRange() function in TypeRange
[all...]
H A DTypeUtilities.cpp95 LogicalResult mlir::verifyCompatibleShapes(TypeRange types1, TypeRange types2) { in verifyCompatibleShapes()
120 LogicalResult mlir::verifyCompatibleShapes(TypeRange types) { in verifyCompatibleShapes()
176 TypeRange mlir::insertTypesInto(TypeRange oldTypes, ArrayRef<unsigned> indices, in insertTypesInto()
177 TypeRange newTypes, in insertTypesInto()
195 TypeRange mlir::filterTypesOut(TypeRange types, const BitVector &indices, in filterTypesOut()
H A DTypeDetail.h64 using KeyTy = std::tuple<TypeRange, TypeRange>;
106 using KeyTy = TypeRange;
112 TypeRange key) { in construct()
/llvm-project/mlir/unittests/TableGen/
H A DOpBuildGen.cpp130 op = builder.create<test::TableGenBuildOp0>(loc, TypeRange{i32Ty}, *cstI32); in TEST_F()
134 op = builder.create<test::TableGenBuildOp0>(loc, TypeRange{i32Ty}, in TEST_F()
139 op = builder.create<test::TableGenBuildOp0>(loc, TypeRange{i32Ty}, in TEST_F()
157 auto op = builder.create<test::TableGenBuildOp1>(loc, TypeRange{i32Ty}, in TEST_F()
163 op = builder.create<test::TableGenBuildOp1>(loc, TypeRange{i32Ty}, in TEST_F()
168 op = builder.create<test::TableGenBuildOp1>(loc, TypeRange{i32Ty, f32Ty}, in TEST_F()
175 loc, TypeRange{i32Ty, f32Ty}, ValueRange{*cstI32, *cstF32}, attrs); in TEST_F()
188 op = builder.create<test::TableGenBuildOp1>(loc, TypeRange{i32Ty}, in TEST_F()
193 op = builder.create<test::TableGenBuildOp1>(loc, TypeRange{i32Ty}, in TEST_F()
199 loc, TypeRange{i32Ty}, ValueRange{*cstI32, *cstF32}, attrs); in TEST_F()
[all …]
/llvm-project/mlir/lib/Transforms/Utils/
H A DOneToNTypeConversion.cpp20 TypeRange OneToNTypeMapping::getConvertedTypes(unsigned originalTypeNo) const {
21 TypeRange convertedTypes = getConvertedTypes(); in materializeTargetConversion()
49 static bool isIdentityConversion(Type originalType, TypeRange convertedTypes) { in convertLocation()
59 TypeRange types = getConvertedTypes(i); in convertLocations()
61 assert(TypeRange(originalTypes) != getConvertedTypes()); in convertLocations()
65 assert(TypeRange(originalTypes) == getConvertedTypes()); in isIdentityConversion()
101 static ValueRange buildUnrealizedCast(OpBuilder &builder, TypeRange resultTypes, in getCastKindName()
140 TypeRange convertedTypes = conversion.getConvertedTypes(idx);
176 TypeRange originalTypes = typeConversion.getOriginalTypes();
180 TypeRange convertedType
[all...]
/llvm-project/flang/lib/Optimizer/CodeGen/
H A DTarget.cpp20 #include "mlir/IR/TypeRange.h"
71 mlir::TypeRange{eleTy, eleTy}); in complexMemoryType()
80 mlir::TypeRange{ptrTy, idxTy}); in boxcharMemoryType()
167 mlir::TupleType::get(eleTy.getContext(), mlir::TypeRange{eleTy, eleTy}); in complexArgumentType()
186 mlir::TypeRange{eleTy, eleTy}); in complexReturnType()
213 mlir::TupleType::get(eleTy.getContext(), mlir::TypeRange{eleTy, eleTy}); in complexArgumentType()
232 eleTy.getContext(), mlir::TypeRange{eleTy, eleTy})), in complexReturnType()
239 eleTy.getContext(), mlir::TypeRange{eleTy, eleTy})), in complexReturnType()
246 eleTy.getContext(), mlir::TypeRange{eleTy, eleTy})), in complexReturnType()
286 eleTy.getContext(), mlir::TypeRange{eleT in complexArgumentType()
[all...]
/llvm-project/mlir/test/mlir-tblgen/
H A Dop-decl-and-defs.td117 // CHECK: static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type r, ::mlir::TypeRange s, ::mlir::Value a, ::mlir::ValueRange b, ::mlir::IntegerAttr attr1, /*optional*/::mlir::FloatAttr some_attr2, unsigned someRegionsCount)
118 // CHECK: static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value a, ::mlir::ValueRange b, ::mlir::IntegerAttr attr1, /*optional*/::mlir::FloatAttr some_attr2, unsigned someRegionsCount);
119 // CHECK: static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type r, ::mlir::TypeRange s, ::mlir::Value a, ::mlir::ValueRange b, uint32_t attr1, /*optional*/::mlir::FloatAttr some_attr2, unsigned someRegionsCount)
120 // CHECK: static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value a, ::mlir::ValueRange b, uint32_t attr1, /*optional*/::mlir::FloatAttr some_attr2, unsigned someRegionsCount);
121 // CHECK: static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes, unsigned numRegions)
233 // CHECK: static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value a);
234 // CHECK: static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {})
245 // CHECK-NOT: static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange b, ::mlir::ValueRange a);
246 // CHECK: static void build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes = {});
257 // CHECK-NOT: static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange
[all...]
H A Dop-default-builder.td36 // CHECK-DAG: ::mlir::TypeRange resultTypes, ::mlir::Value lhs, some-attr-kind aAttr, some-attr-kind bAttr, /*optional*/some-attr-kind cAttr, /*optional*/some-attr-kind dAttr = nullptr);
37 // CHECK-DAG: ::mlir::TypeRange resultTypes, ::mlir::Value lhs, some-return-type aAttr, some-return-type bAttr, /*optional*/some-attr-kind cAttr, /*optional*/some-return-type dAttr = 7.2);
50 // CHECK-DAG: ::mlir::TypeRange resultTypes, some-attr-kind aAttr, some-attr-kind bAttr = nullptr);
51 // CHECK-DAG: ::mlir::TypeRange resultTypes, some-return-type aAttr = 6.2, some-return-type bAttr = 4.2);
70 // CHECK-DAG: ::mlir::TypeRange resultTypes, ::mlir::Value value, /*optional*/::mlir::ArrayAttr ag, /*optional*/::mlir::ArrayAttr as, /*optional*/::mlir::ArrayAttr nos, /*optional*/::mlir::IntegerAttr al, /*optional*/::mlir::UnitAttr vo, /*optional*/::mlir::UnitAttr non = nullptr);
71 // CHECK-DAG: ::mlir::TypeRange resultTypes, ::mlir::Value value, /*optional*/::mlir::ArrayAttr ag, /*optional*/::mlir::ArrayAttr as, /*optional*/::mlir::ArrayAttr nos, /*optional*/::mlir::IntegerAttr al, /*optional*/bool vo = false, /*optional*/bool non = false);
H A Dop-result.td19 // CHECK: ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands
49 // CHECK: void OpC::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes) {
77 // CHECK-SAME: ::mlir::TypeRange x
88 // CHECK: void OpG::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type x, ::mlir::TypeRange y)
93 // CHECK: ::mlir::TypeRange resultTypes
208 // CHECK-LABEL: OpM::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange output1, ::mlir::Type output2, /*optional*/::mlir::Type output3)
/llvm-project/mlir/lib/Interfaces/
H A DControlFlowInterfaces.cpp109 function_ref<FailureOr<TypeRange>(RegionBranchPoint)> in verifyTypesAlongAllEdges()
117 FailureOr<TypeRange> sourceTypes = getInputsTypesForRegion(succ); in verifyTypesAlongAllEdges()
121 TypeRange succInputsTypes = succ.getSuccessorInputs().getTypes(); in verifyTypesAlongAllEdges()
150 auto inputTypesFromParent = [&](RegionBranchPoint point) -> TypeRange { in verifyTypesAlongControlFlowEdges()
159 auto areTypesCompatible = [&](TypeRange lhs, TypeRange rhs) { in verifyTypesAlongControlFlowEdges()
191 [&](RegionBranchPoint point) -> FailureOr<TypeRange> { in verifyTypesAlongControlFlowEdges()
212 return TypeRange(regionReturnOperands->getTypes()); in verifyTypesAlongControlFlowEdges()
/llvm-project/mlir/test/mlir-pdll/Parser/
H A Dexpr.pdll145 // CHECK: `-DeclRefExpr {{.*}} Type<TypeRange>
146 // CHECK: `-VariableDecl {{.*}} Name<_> Type<TypeRange>
224 // CHECK: |-DeclRefExpr {{.*}} Type<TypeRange>
227 erase op<> -> (_: Type, _: TypeRange, _: Type);
249 // CHECK: -RangeExpr {{.*}} Type<TypeRange>
250 // CHECK: -RangeExpr {{.*}} Type<TypeRange>
293 // CHECK: -RangeExpr {{.*}} Type<TypeRange>
294 // CHECK: -RangeExpr {{.*}} Type<TypeRange>
296 // CHECK: -MemberAccessExpr {{.*}} Member<1> Type<TypeRange>
298 rewrite op<>(arg: Value, args: ValueRange) -> (type: Type, types: TypeRange) with {
/llvm-project/mlir/include/mlir/Transforms/
H A DOneToNTypeConversion.h45 OneToNTypeMapping(TypeRange originalTypes)
53 TypeRange getConvertedTypes(unsigned originalTypeNo) const;
56 TypeRange getOriginalTypes() const { return originalTypes; } in computeTypeMapping()
/llvm-project/clang-tools-extra/clang-tidy/llvm/
H A DTwineLocalCheck.cpp43 SourceRange TypeRange = in check() local
51 Diag << FixItHint::CreateReplacement(TypeRange, "std::string") in check()
57 TypeRange, in check()
/llvm-project/clang/include/clang/Sema/
H A DInitialization.h662 static InitializationKind CreateCast(SourceRange TypeRange) { in CreateCast() argument
663 return InitializationKind(IK_Direct, IC_StaticCast, TypeRange.getBegin(), in CreateCast()
664 TypeRange.getBegin(), TypeRange.getEnd()); in CreateCast()
669 SourceRange TypeRange, in CreateCStyleCast() argument
674 IC_CStyleCast, StartLoc, TypeRange.getBegin(), in CreateCStyleCast()
675 TypeRange.getEnd()); in CreateCStyleCast()
679 static InitializationKind CreateFunctionalCast(SourceRange TypeRange, in CreateFunctionalCast() argument
682 IC_FunctionalCast, TypeRange.getBegin(), in CreateFunctionalCast()
683 TypeRange in CreateFunctionalCast()
[all...]
/llvm-project/mlir/lib/Dialect/Shape/IR/
H A DShape.cpp67 static bool isErrorPropagationPossible(TypeRange operandTypes) { in isErrorPropagationPossible()
97 static bool eachHasOnlyOneOfTypes(TypeRange typeRange) { in eachHasOnlyOneOfTypes()
102 static bool eachHasOnlyOneOfTypes(TypeRange l, ranges... rs) { in eachHasOnlyOneOfTypes()
411 bool mlir::shape::AddOp::isCompatibleReturnTypes(TypeRange l, TypeRange r) { in isCompatibleReturnTypes()
939 bool mlir::shape::ConstShapeOp::isCompatibleReturnTypes(TypeRange l, in isCompatibleReturnTypes()
940 TypeRange r) { in isCompatibleReturnTypes()
1114 bool mlir::shape::DimOp::isCompatibleReturnTypes(TypeRange l, TypeRange r) { in fold()
1153 bool mlir::shape::DivOp::isCompatibleReturnTypes(TypeRange
[all...]
/llvm-project/mlir/lib/Conversion/GPUToVulkan/
H A DConvertLaunchFuncToVulkanCalls.cpp
/llvm-project/mlir/include/mlir/Interfaces/
H A DViewLikeInterface.h136 TypeRange valueTypes = TypeRange(),
140 ArrayRef<int64_t> integers, TypeRange valueTypes = TypeRange(),
/llvm-project/mlir/test/mlir-pdll/CodeGen/CPP/
H A Dgeneral.pdll51 // CHECK-SAME: ::mlir::Value value, ::mlir::TypeRange typeRange, ::mlir::ValueRange valueRange)…
59 // CHECK-SAME: ::mlir::Value value, ::mlir::TypeRange typeRange, ::mlir::ValueRange valueRange)…
73 Constraint TestCst(attr: Attr, op: Op, type: Type, value: Value, typeRange: TypeRange, valueRange: …
78 Rewrite TestRewrite(attr: Attr, op: Op, type: Type, value: Value, typeRange: TypeRange, valueRange:…
85 let root = op<>(operand: Value, operands: ValueRange) -> (type: Type, types: TypeRange);
/llvm-project/mlir/lib/Dialect/Linalg/TransformOps/
H A DSyntax.cpp60 Type argumentType, TypeRange resultType) { in printSemiFunctionType()
80 resultType ? TypeRange(resultType)
81 : TypeRange());
/llvm-project/mlir/lib/IR/PDL/
H A DPDLPatternMatch.cpp36 case Kind::TypeRange: in print()
37 llvm::interleaveComma(cast<TypeRange>(), os); in print()
59 case Kind::TypeRange: in print()
/llvm-project/mlir/lib/Dialect/Arith/IR/
H A DArithOps.cpp1289 static bool areValidCastInputsAndOutputs(TypeRange inputs, TypeRange outputs) { in verifyTruncateOp()
1331 static bool checkWidthChangeCast(TypeRange inputs, TypeRange outputs) {
1376 bool arith::ExtUIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) { in areCastCompatible()
1403 bool arith::ExtSIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) { in fold()
1453 bool arith::ExtFOp::areCastCompatible(TypeRange inputs, TypeRange output in fold()
[all...]
/llvm-project/mlir/include/mlir/Dialect/Utils/
H A DStructuredOpsUtils.h142 Operation *clone(OpBuilder &b, Operation *op, TypeRange newResultTypes,
145 OpT clone(OpBuilder &b, OpT op, TypeRange newResultTypes, in clone()
153 TypeRange newResultTypes,
/llvm-project/mlir/include/mlir/Dialect/Linalg/TransformOps/
H A DSyntax.h18 class TypeRange; variable
41 Type argumentType, TypeRange resultType);

123456789