| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | TypeRange.h | 33 TypeRange, 40 explicit TypeRange(OperandRange values); 41 explicit TypeRange(ResultRange values); 42 explicit TypeRange(ValueRange values); 50 TypeRange(Arg &&arg) : TypeRange(ArrayRef<Type>(std::forward<Arg>(arg))) {} in TypeRange() function 51 TypeRange(std::initializer_list<Type> types) in TypeRange() function 52 : TypeRange(ArrayRef<Type>(types)) {} in TypeRange() 108 return [=](unsigned index) -> TypeRange { return TypeRange(range[index]); }; in getRangeFn() 175 struct DenseMapInfo<mlir::TypeRange> { 176 static mlir::TypeRange getEmptyKey() { [all …]
|
| H A D | FunctionInterfaces.h | 76 TypeRange argTypes, 83 TypeRange resultTypes, 101 TypeRange insertTypesInto(TypeRange oldTypes, ArrayRef<unsigned> indices, 102 TypeRange newTypes, SmallVectorImpl<Type> &storage); 106 TypeRange filterTypesOut(TypeRange types, const BitVector &indices,
|
| H A D | TypeUtilities.h | 60 LogicalResult verifyCompatibleShapes(TypeRange types1, TypeRange types2); 65 LogicalResult verifyCompatibleShapes(TypeRange types);
|
| H A D | Builders.h | 77 FunctionType getFunctionType(TypeRange inputs, TypeRange results); 78 TupleType getTupleType(TypeRange elementTypes); 148 ArrayAttr getTypeArrayAttr(TypeRange values); 397 TypeRange argTypes = llvm::None, 404 Block *createBlock(Block *insertBefore, TypeRange argTypes = llvm::None, 419 TypeRange types = {},
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | TypeRange.cpp | 17 TypeRange::TypeRange(ArrayRef<Type> types) in TypeRange() function in TypeRange 18 : TypeRange(types.data(), types.size()) { in TypeRange() 22 TypeRange::TypeRange(OperandRange values) in TypeRange() function in TypeRange 23 : TypeRange(values.begin().getBase(), values.size()) {} in TypeRange() 24 TypeRange::TypeRange(ResultRange values) in TypeRange() function in TypeRange 25 : TypeRange(values.getBase(), values.size()) {} in TypeRange() 26 TypeRange::TypeRange(ValueRange values) : TypeRange(OwnerT(), values.size()) { in TypeRange() function in TypeRange 39 TypeRange::OwnerT TypeRange::offset_base(OwnerT object, ptrdiff_t index) { in offset_base() 50 Type TypeRange::dereference_iterator(OwnerT object, ptrdiff_t index) { in dereference_iterator()
|
| H A D | TypeDetail.h | 62 using KeyTy = std::pair<TypeRange, TypeRange>; 72 TypeRange inputs = key.first, results = key.second; in construct() 102 using KeyTy = TypeRange; 108 TypeRange key) { in construct()
|
| H A D | FunctionInterfaces.cpp | 115 Operation *op, ArrayRef<unsigned> argIndices, TypeRange argTypes, in insertFunctionArguments() 161 Operation *op, ArrayRef<unsigned> resultIndices, TypeRange resultTypes, in insertFunctionResults() 245 TypeRange mlir::function_interface_impl::insertTypesInto( in insertTypesInto() 246 TypeRange oldTypes, ArrayRef<unsigned> indices, TypeRange newTypes, in insertTypesInto() 264 TypeRange mlir::function_interface_impl::filterTypesOut( in filterTypesOut() 265 TypeRange types, const BitVector &indices, SmallVectorImpl<Type> &storage) { in filterTypesOut()
|
| H A D | TypeUtilities.cpp | 94 LogicalResult mlir::verifyCompatibleShapes(TypeRange types1, TypeRange types2) { in verifyCompatibleShapes() 119 LogicalResult mlir::verifyCompatibleShapes(TypeRange types) { in verifyCompatibleShapes()
|
| H A D | Builders.cpp | 67 FunctionType Builder::getFunctionType(TypeRange inputs, TypeRange results) { in getFunctionType() 71 TupleType Builder::getTupleType(TypeRange elementTypes) { in getTupleType() 252 ArrayAttr Builder::getTypeArrayAttr(TypeRange values) { in getTypeArrayAttr() 354 TypeRange argTypes, ArrayRef<Location> locs) { in createBlock() 372 Block *OpBuilder::createBlock(Block *insertBefore, TypeRange argTypes, in createBlock() 386 ValueRange operands, TypeRange types, in create()
|
| /llvm-project-15.0.7/mlir/unittests/TableGen/ |
| H A D | OpBuildGen.cpp | 80 op = builder.create<OpTy>(loc, TypeRange{i32Ty}, in testSingleVariadicInputInferredType() 118 op = builder.create<test::TableGenBuildOp0>(loc, TypeRange{i32Ty}, in TEST_F() 123 op = builder.create<test::TableGenBuildOp0>(loc, TypeRange{i32Ty}, in TEST_F() 141 auto op = builder.create<test::TableGenBuildOp1>(loc, TypeRange{i32Ty}, in TEST_F() 147 op = builder.create<test::TableGenBuildOp1>(loc, TypeRange{i32Ty}, in TEST_F() 152 op = builder.create<test::TableGenBuildOp1>(loc, TypeRange{i32Ty, f32Ty}, in TEST_F() 159 loc, TypeRange{i32Ty, f32Ty}, ValueRange{*cstI32, *cstF32}, attrs); in TEST_F() 172 op = builder.create<test::TableGenBuildOp1>(loc, TypeRange{i32Ty}, in TEST_F() 177 op = builder.create<test::TableGenBuildOp1>(loc, TypeRange{i32Ty}, in TEST_F() 183 loc, TypeRange{i32Ty}, ValueRange{*cstI32, *cstF32}, attrs); in TEST_F() [all …]
|
| /llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/ |
| H A D | Target.cpp | 44 mlir::TypeRange range = {eleTy, eleTy}; in complexMemoryType() 53 mlir::TypeRange range = {ptrTy, idxTy}; in boxcharMemoryType() 89 mlir::TypeRange range = {eleTy, eleTy}; in complexArgumentType() 108 mlir::TypeRange range = {eleTy, eleTy}; in complexReturnType() 144 mlir::TypeRange range = {eleTy, eleTy}; in complexArgumentType() 164 mlir::TypeRange range = {eleTy, eleTy}; in complexReturnType() 170 mlir::TypeRange range = {eleTy, eleTy}; in complexReturnType() 214 mlir::TypeRange range = {eleTy, eleTy}; in complexReturnType() 249 mlir::TypeRange range = {eleTy, eleTy}; in complexReturnType()
|
| /llvm-project-15.0.7/mlir/test/mlir-tblgen/ |
| H A D | op-decl-and-defs.td | 204 …:mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::m… 205 …id build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::m… 216 …:mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange b, ::mlir::Value… 217 …id build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::m… 228 …:mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange b, ::mlir::Value… 241 …ilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange b, ::mlir::TypeRange c, ::m… 242 …:mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange b, ::mlir::Value… 253 …:mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::m… 265 …:mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::m… 298 …:mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::m… [all …]
|
| H A D | op-result.td | 20 // CHECK: ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands 50 …d(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes) { 78 // CHECK-SAME: ::mlir::TypeRange x 89 …mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type x, ::mlir::TypeRange y) 94 // CHECK: ::mlir::TypeRange resultTypes
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | ControlFlowInterfaces.cpp | 95 function_ref<Optional<TypeRange>(Optional<unsigned>)> in verifyTypesAlongAllEdges() 122 Optional<TypeRange> sourceTypes = getInputsTypesForRegion(succRegionNo); in verifyTypesAlongAllEdges() 126 TypeRange succInputsTypes = succ.getSuccessorInputs().getTypes(); in verifyTypesAlongAllEdges() 154 auto inputTypesFromParent = [&](Optional<unsigned> regionNo) -> TypeRange { in verifyTypesAlongControlFlowEdges() 166 auto areTypesCompatible = [&](TypeRange lhs, TypeRange rhs) { in verifyTypesAlongControlFlowEdges() 209 [&](Optional<unsigned> regionNo) -> Optional<TypeRange> { in verifyTypesAlongControlFlowEdges() 216 return TypeRange(regionReturnOperands->getTypes()); in verifyTypesAlongControlFlowEdges()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Transforms/ |
| H A D | DenseBufferizationPass.cpp | 24 static bool containsSparseTensor(TypeRange types) { in containsSparseTensor() 47 if (containsSparseTensor(TypeRange(op->getResults())) || in runOnOperation() 48 containsSparseTensor(TypeRange(op->getOperands()))) in runOnOperation()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/ |
| H A D | TwineLocalCheck.cpp | 45 SourceRange TypeRange = in check() local 53 Diag << FixItHint::CreateReplacement(TypeRange, "std::string") in check() 59 TypeRange, in check()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/IR/ |
| H A D | SparseTensorDialect.cpp | 269 TypeRange inputTypes, Type outputType) { in verifyNumBlockArgs() 307 this, overlap, "overlap", TypeRange{leftType, rightType}, outputType); in verify() 313 verifyNumBlockArgs(this, left, "left", TypeRange{leftType}, outputType); in verify() 323 TypeRange{rightType}, outputType); in verify() 345 TypeRange{inputType}, outputType); in verify() 352 verifyNumBlockArgs(this, absent, "absent", TypeRange{}, outputType); in verify() 368 this, formula, "reduce", TypeRange{inputType, inputType}, inputType); in verify()
|
| /llvm-project-15.0.7/mlir/test/mlir-pdll/CodeGen/CPP/ |
| H A D | general.pdll | 48 // CHECK-SAME: ::mlir::Value value, ::mlir::TypeRange typeRange, ::mlir::ValueRange valueRange)… 56 // CHECK-SAME: ::mlir::Value value, ::mlir::TypeRange typeRange, ::mlir::ValueRange valueRange)… 69 Constraint TestCst(attr: Attr, op: Op, type: Type, value: Value, typeRange: TypeRange, valueRange: … 74 Rewrite TestRewrite(attr: Attr, op: Op, type: Type, value: Value, typeRange: TypeRange, valueRange:… 80 let root = op<>(operand: Value, operands: ValueRange) -> (type: Type, types: TypeRange);
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Shape/IR/ |
| H A D | Shape.cpp | 96 static bool eachHasOnlyOneOfTypes(TypeRange typeRange) { in eachHasOnlyOneOfTypes() 409 bool mlir::shape::AddOp::isCompatibleReturnTypes(TypeRange l, TypeRange r) { in isCompatibleReturnTypes() 1104 bool mlir::shape::DivOp::isCompatibleReturnTypes(TypeRange l, TypeRange r) { in isCompatibleReturnTypes() 1317 bool mlir::shape::MeetOp::isCompatibleReturnTypes(TypeRange l, TypeRange r) { in isCompatibleReturnTypes() 1408 bool mlir::shape::RankOp::isCompatibleReturnTypes(TypeRange l, TypeRange r) { in isCompatibleReturnTypes() 1476 bool mlir::shape::MaxOp::isCompatibleReturnTypes(TypeRange l, TypeRange r) { in isCompatibleReturnTypes() 1508 bool mlir::shape::MinOp::isCompatibleReturnTypes(TypeRange l, TypeRange r) { in isCompatibleReturnTypes() 1546 bool mlir::shape::MulOp::isCompatibleReturnTypes(TypeRange l, TypeRange r) { in isCompatibleReturnTypes() 1638 bool mlir::shape::ShapeOfOp::isCompatibleReturnTypes(TypeRange l, TypeRange r) { in isCompatibleReturnTypes() 1680 bool SizeToIndexOp::areCastCompatible(TypeRange inputs, TypeRange outputs) { in areCastCompatible() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Initialization.h | 648 static InitializationKind CreateCast(SourceRange TypeRange) { in CreateCast() argument 649 return InitializationKind(IK_Direct, IC_StaticCast, TypeRange.getBegin(), in CreateCast() 650 TypeRange.getBegin(), TypeRange.getEnd()); in CreateCast() 655 SourceRange TypeRange, in CreateCStyleCast() argument 660 IC_CStyleCast, StartLoc, TypeRange.getBegin(), in CreateCStyleCast() 661 TypeRange.getEnd()); in CreateCStyleCast() 665 static InitializationKind CreateFunctionalCast(SourceRange TypeRange, in CreateFunctionalCast() argument 668 IC_FunctionalCast, TypeRange.getBegin(), in CreateFunctionalCast() 669 TypeRange.getBegin(), TypeRange.getEnd()); in CreateFunctionalCast()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUToVulkan/ |
| H A D | ConvertLaunchFuncToVulkanCalls.cpp | 251 loc, TypeRange(), StringRef(symbolName.data(), symbolName.size()), in createBindMemRefCalls() 374 loc, TypeRange{getPointerType()}, kInitVulkan); in translateVulkanLaunchCall() 396 loc, TypeRange(), kSetBinaryShader, in translateVulkanLaunchCall() 403 builder.create<LLVM::CallOp>(loc, TypeRange(), kSetEntryPoint, in translateVulkanLaunchCall() 408 loc, TypeRange(), kSetNumWorkGroups, in translateVulkanLaunchCall() 414 builder.create<LLVM::CallOp>(loc, TypeRange(), kRunOnVulkan, in translateVulkanLaunchCall() 418 builder.create<LLVM::CallOp>(loc, TypeRange(), kDeinitVulkan, in translateVulkanLaunchCall()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/ |
| H A D | ArithmeticOps.cpp | 857 static bool checkWidthChangeCast(TypeRange inputs, TypeRange outputs) { in checkWidthChangeCast() 891 bool arith::ExtUIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) { in areCastCompatible() 920 bool arith::ExtSIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) { in areCastCompatible() 937 bool arith::ExtFOp::areCastCompatible(TypeRange inputs, TypeRange outputs) { in areCastCompatible() 975 bool arith::TruncIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) { in areCastCompatible() 1008 bool arith::TruncFOp::areCastCompatible(TypeRange inputs, TypeRange outputs) { in areCastCompatible() 1039 static bool checkIntFloatCast(TypeRange inputs, TypeRange outputs) { in checkIntFloatCast() 1053 bool arith::UIToFPOp::areCastCompatible(TypeRange inputs, TypeRange outputs) { in areCastCompatible() 1079 bool arith::SIToFPOp::areCastCompatible(TypeRange inputs, TypeRange outputs) { in areCastCompatible() 1104 bool arith::FPToUIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) { in areCastCompatible() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Transforms/ |
| H A D | InliningUtils.h | 29 class TypeRange; variable 210 TypeRange regionResultTypes, 217 TypeRange regionResultTypes,
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Shape/IR/ |
| H A D | ShapeOps.td | 57 static bool isCompatibleReturnTypes(TypeRange l, TypeRange r); 133 static bool isCompatibleReturnTypes(TypeRange l, TypeRange r); 193 static bool isCompatibleReturnTypes(TypeRange l, TypeRange r); 307 static bool isCompatibleReturnTypes(TypeRange l, TypeRange r); 354 static bool isCompatibleReturnTypes(TypeRange l, TypeRange r); 403 static bool isCompatibleReturnTypes(TypeRange l, TypeRange r); 448 static bool isCompatibleReturnTypes(TypeRange l, TypeRange r); 475 static bool isCompatibleReturnTypes(TypeRange l, TypeRange r); 505 static bool isCompatibleReturnTypes(TypeRange l, TypeRange r); 530 static bool isCompatibleReturnTypes(TypeRange l, TypeRange r); [all …]
|
| /llvm-project-15.0.7/mlir/lib/Rewrite/ |
| H A D | ByteCode.cpp | 1259 case PDLValue::Kind::TypeRange: in readImpl() 1260 return read<TypeRange *>(); in readImpl() 1293 MutableArrayRef<TypeRange> typeRangeMemory; 1379 if (Optional<TypeRange> typeRange = result.dyn_cast<TypeRange>()) { in executeApplyRewrite() 1416 case PDLValue::Kind::TypeRange: { in executeAreRangesEqual() 1417 const TypeRange *lhsRange = reinterpret_cast<const TypeRange *>(lhs); in executeAreRangesEqual() 1418 const TypeRange *rhsRange = reinterpret_cast<const TypeRange *>(rhs); in executeAreRangesEqual() 1484 TypeRange *lhs = read<TypeRange *>(); in executeCheckTypes() 1552 TypeRange *resultTypes = read<TypeRange *>(); in executeCreateOperation() 1912 case PDLValue::Kind::TypeRange: in executeRecordMatch() [all …]
|