| /llvm-project-15.0.7/flang/lib/Parser/ |
| H A D | basic-parsers.h | 103 using resultType = typename A::resultType; 180 using resultType = typename PA::resultType; 206 using resultType = typename PA::resultType; 255 using resultType = typename PB::resultType; 278 using resultType = typename PA::resultType; 302 using resultType = typename PA::resultType; 351 using resultType = typename PA::resultType; 546 using resultType = typename PA::resultType; 846 using resultType = typename PA::resultType; 880 using resultType = typename PA::resultType; [all …]
|
| H A D | token-parsers.h | 38 using resultType = const char *; 66 using resultType = Success; member 90 using resultType = Success; member 122 using resultType = Success; 352 using resultType = CharBlock; member 545 using resultType = Success; member 557 using resultType = Success; member 571 using resultType = Success; member 592 using resultType = std::optional<typename PA::resultType>; in optionalBeforeColons() local 598 using resultType = std::list<typename PA::resultType>; in optionalListBeforeColons() local [all …]
|
| H A D | expr-parsers.h | 22 return construct<Scalar<typename PA::resultType>>(p); // scalar-p in scalar() 26 return construct<Constant<typename PA::resultType>>(p); // constant-p in constant() 30 return construct<Integer<typename PA::resultType>>(p); // int-p in integer() 34 return construct<Logical<typename PA::resultType>>(p); // logical-p in logical() 38 return construct<DefaultChar<typename PA::resultType>>(p); // default-char-p in defaultChar() 101 return construct<LoopBounds<DoVariable, typename PA::resultType>>( in loopBounds()
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | IntrinsicCall.cpp | 1563 if (resultType) in getFunctionType() 1762 if (!resultType) in genIntrinsicCall() 1930 if (resultType) in outlineInExtendedWrapper() 2631 loc, resultType, resultType.getIntOrFloatBitWidth()); in genDshiftl() 2655 loc, resultType, resultType.getIntOrFloatBitWidth()); in genDshiftr() 2742 loc, resultType, in genExponent() 2929 loc, resultType, resultType.cast<mlir::IntegerType>().getWidth()); in genIbits() 3134 loc, resultType, resultType.cast<mlir::IntegerType>().getWidth()); in genIshft() 3170 loc, resultType, resultType.cast<mlir::IntegerType>().getWidth()); in genIshftc() 3271 loc, resultType, resultType.getIntOrFloatBitWidth()); in genMask() [all …]
|
| H A D | CustomIntrinsicCall.cpp | 92 mlir::Type resultType = *retTy; in prepareMinOrMaxArguments() local 94 if (fir::isa_char(resultType)) in prepareMinOrMaxArguments() 125 mlir::Type resultType = *retTy; in lowerMinOrMax() local 130 builder, loc, name, resultType, args, stmtCtx)); in lowerMinOrMax() 138 .genIfOp(loc, {resultType}, *isPresentRuntimeCheck, in lowerMinOrMax() 157 builder, loc, name, resultType, args, stmtCtx)); in lowerMinOrMax() 197 mlir::Type resultType = retTy.value(); in lowerIshftc() local 202 .genIfOp(loc, {resultType}, isPresentCheck(2).value(), in lowerIshftc() 207 loc, resultType, fir::getBase(sizeExv)); in lowerIshftc() 212 loc, resultType, in lowerIshftc() [all …]
|
| /llvm-project-15.0.7/flang/lib/Evaluate/ |
| H A D | intrinsics-library.cpp | 82 DynamicType resultType; member 426 [[maybe_unused]] DynamicType resultType) { in GetHostRuntimeMapHelper() argument 435 if (host::FortranType<HostT>{}.GetType() == resultType) { in GetHostRuntimeMapHelper() 444 if (resultType.category() == TypeCategory::Real) { in GetHostRuntimeMapVersion() 456 if (resultType.category() == TypeCategory::Complex) { in GetHostRuntimeMapVersion() 458 resultType)}) { in GetHostRuntimeMapVersion() 462 resultType)}) { in GetHostRuntimeMapVersion() 467 resultType)}) { in GetHostRuntimeMapVersion() 474 LibraryVersion version, DynamicType resultType) { in GetHostRuntimeMap() argument 496 if (iter->resultType == resultType && iter->argumentTypes == argTypes) { in SearchInHostRuntimeMap() [all …]
|
| /llvm-project-15.0.7/flang/include/flang/Parser/ |
| H A D | user-state.h | 110 using resultType = Success; member 115 using resultType = Statement<common::Indirection<LabelDoStmt>>; member 116 static std::optional<resultType> Parse(ParseState &); 120 using resultType = Statement<common::Indirection<EndDoStmt>>; member 121 static std::optional<resultType> Parse(ParseState &); 125 using resultType = Success; member 130 using resultType = Success; member 135 using resultType = Name; member 140 using resultType = DataComponentDefStmt; member 145 using resultType = StructureStmt; member
|
| H A D | instrumented-parser.h | 52 using resultType = typename PA::resultType; 56 std::optional<resultType> Parse(ParseState &state) const { in Parse() 64 std::optional<resultType> result{parser_.Parse(state)}; in Parse()
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/NVVM/ |
| H A D | NVVMToLLVMIRTranslation.cpp | 26 static llvm::Intrinsic::ID getShflIntrinsicId(llvm::Type *resultType, in getShflIntrinsicId() argument 31 resultType = cast<llvm::StructType>(resultType)->getElementType(0); in getShflIntrinsicId() 34 return resultType->isFloatTy() in getShflIntrinsicId() 38 return resultType->isFloatTy() ? llvm::Intrinsic::nvvm_shfl_sync_up_f32p in getShflIntrinsicId() 41 return resultType->isFloatTy() in getShflIntrinsicId() 45 return resultType->isFloatTy() ? llvm::Intrinsic::nvvm_shfl_sync_idx_f32p in getShflIntrinsicId() 51 return resultType->isFloatTy() ? llvm::Intrinsic::nvvm_shfl_sync_bfly_f32 in getShflIntrinsicId() 54 return resultType->isFloatTy() ? llvm::Intrinsic::nvvm_shfl_sync_up_f32 in getShflIntrinsicId() 57 return resultType->isFloatTy() ? llvm::Intrinsic::nvvm_shfl_sync_down_f32 in getShflIntrinsicId() 60 return resultType->isFloatTy() ? llvm::Intrinsic::nvvm_shfl_sync_idx_f32 in getShflIntrinsicId()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch3/mlir/ |
| H A D | Dialect.cpp | 80 Type resultType = *op->result_type_begin(); in printBinaryOp() local 83 printer << resultType; in printBinaryOp() 137 if (!resultType) in verify() 143 if (attrType.getRank() != resultType.getRank()) { in verify() 151 if (attrType.getShape()[dim] != resultType.getShape()[dim]) { in verify() 155 << " != " << resultType.getShape()[dim]; in verify() 266 auto resultType = results.front(); in verify() local 270 resultType.isa<mlir::UnrankedTensorType>()) in verify() 290 auto resultType = getType().dyn_cast<RankedTensorType>(); in verify() local 291 if (!inputType || !resultType) in verify() [all …]
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch2/mlir/ |
| H A D | Dialect.cpp | 80 Type resultType = *op->result_type_begin(); in printBinaryOp() local 83 printer << resultType; in printBinaryOp() 137 if (!resultType) in verify() 143 if (attrType.getRank() != resultType.getRank()) { in verify() 151 if (attrType.getShape()[dim] != resultType.getShape()[dim]) { in verify() 155 << " != " << resultType.getShape()[dim]; in verify() 266 auto resultType = results.front(); in verify() local 270 resultType.isa<mlir::UnrankedTensorType>()) in verify() 290 auto resultType = getType().dyn_cast<RankedTensorType>(); in verify() local 291 if (!inputType || !resultType) in verify() [all …]
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/ |
| H A D | Dialect.cpp | 81 Type resultType, in materializeCallConversion() 142 Type resultType = *op->result_type_begin(); in printBinaryOp() local 145 printer << resultType; in printBinaryOp() 199 if (!resultType) in verify() 205 if (attrType.getRank() != resultType.getRank()) { in verify() 217 << " != " << resultType.getShape()[dim]; in verify() 378 auto resultType = results.front(); in verify() local 382 resultType.isa<mlir::UnrankedTensorType>()) in verify() 408 auto resultType = getType().dyn_cast<RankedTensorType>(); in verify() local 409 if (!inputType || !resultType) in verify() [all …]
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch4/mlir/ |
| H A D | Dialect.cpp | 81 Type resultType, in materializeCallConversion() 142 Type resultType = *op->result_type_begin(); in printBinaryOp() local 145 printer << resultType; in printBinaryOp() 199 if (!resultType) in verify() 205 if (attrType.getRank() != resultType.getRank()) { in verify() 217 << " != " << resultType.getShape()[dim]; in verify() 378 auto resultType = results.front(); in verify() local 382 resultType.isa<mlir::UnrankedTensorType>()) in verify() 408 auto resultType = getType().dyn_cast<RankedTensorType>(); in verify() local 409 if (!inputType || !resultType) in verify() [all …]
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/ |
| H A D | Dialect.cpp | 81 Type resultType, in materializeCallConversion() 142 Type resultType = *op->result_type_begin(); in printBinaryOp() local 145 printer << resultType; in printBinaryOp() 199 if (!resultType) in verify() 205 if (attrType.getRank() != resultType.getRank()) { in verify() 217 << " != " << resultType.getShape()[dim]; in verify() 378 auto resultType = results.front(); in verify() local 382 resultType.isa<mlir::UnrankedTensorType>()) in verify() 408 auto resultType = getType().dyn_cast<RankedTensorType>(); in verify() local 409 if (!inputType || !resultType) in verify() [all …]
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/ |
| H A D | Dialect.cpp | 82 Type resultType, in materializeCallConversion() 129 Type resultType = *op->result_type_begin(); in printBinaryOp() local 132 printer << resultType; in printBinaryOp() 195 if (!resultType) in verifyConstantForType() 201 if (attrType.getRank() != resultType.getRank()) { in verifyConstantForType() 218 auto resultType = type.cast<StructType>(); in verifyConstantForType() local 405 auto resultType = results.front(); in verify() local 409 resultType.isa<mlir::UnrankedTensorType>()) in verify() 438 mlir::Type resultType = getResult().getType(); in verify() local 464 if (!inputType || !resultType) in verify() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Utils/ |
| H A D | ReshapeOpsUtils.h | 180 ShapedType resultType = reshapeOp.getResultType(); in matchAndRewrite() local 237 ShapedType resultType = collapseOp.getResultType(); in matchAndRewrite() local 245 int64_t resultRank = resultType.getRank(); in matchAndRewrite() 246 if (srcType == resultType) in matchAndRewrite() 278 collapseOp, resultType, expandOp.getSrc(), composedReassociation); in matchAndRewrite() 281 collapseOp, resultType, expandOp.getSrc(), composedReassociation); in matchAndRewrite() 296 ShapedType resultType = expandOp.getResultType(); in matchAndRewrite() local 304 int64_t resultRank = resultType.getRank(); in matchAndRewrite() 305 if (srcType == resultType) in matchAndRewrite() 313 resultType.getShape()); in matchAndRewrite() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Conversion/MathToLLVM/ |
| H A D | MathToLLVM.cpp | 58 auto resultType = op.getResult().getType(); in matchAndRewrite() local 70 auto vectorType = resultType.template dyn_cast<VectorType>(); in matchAndRewrite() 104 auto resultType = op.getResult().getType(); in matchAndRewrite() local 105 auto floatType = getElementTypeOrSelf(resultType).cast<FloatType>(); in matchAndRewrite() 122 auto vectorType = resultType.dyn_cast<VectorType>(); in matchAndRewrite() 157 auto resultType = op.getResult().getType(); in matchAndRewrite() local 158 auto floatType = getElementTypeOrSelf(resultType).cast<FloatType>(); in matchAndRewrite() 176 auto vectorType = resultType.dyn_cast<VectorType>(); in matchAndRewrite() 211 auto resultType = op.getResult().getType(); in matchAndRewrite() local 212 auto floatType = getElementTypeOrSelf(resultType).cast<FloatType>(); in matchAndRewrite() [all …]
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Transforms/ |
| H A D | AbstractResult.cpp | 27 static mlir::Type getResultArgumentType(mlir::Type resultType, in getResultArgumentType() argument 29 return llvm::TypeSwitch<mlir::Type, mlir::Type>(resultType) in getResultArgumentType() 46 auto resultType = funcTy.getResult(0); in getNewFunctionType() local 47 auto argTy = getResultArgumentType(resultType, shouldBoxResult); in getNewFunctionType() 54 static bool mustEmboxResult(mlir::Type resultType, bool shouldBoxResult) { in mustEmboxResult() argument 55 return resultType.isa<fir::SequenceType, fir::RecordType>() && in mustEmboxResult() 212 auto resultType = funcTy.getResult(0); in runOnOperation() local 213 auto argTy = getResultArgumentType(resultType, shouldBoxResult); in runOnOperation() 215 if (mustEmboxResult(resultType, shouldBoxResult)) { in runOnOperation() 216 auto bufferType = fir::ReferenceType::get(resultType); in runOnOperation() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/ |
| H A D | OpToFuncCallLowering.h | 55 Type resultType = castedOperands.front().getType(); in matchAndRewrite() local 56 Type funcType = getFunctionType(resultType, castedOperands); in matchAndRewrite() 64 op->getLoc(), resultType, SymbolRefAttr::get(funcOp), castedOperands); in matchAndRewrite() 66 if (resultType == adaptor.getOperands().front().getType()) { in matchAndRewrite() 88 Type getFunctionType(Type resultType, ValueRange operands) const { in getFunctionType() 90 return LLVM::LLVMFunctionType::get(resultType, operandTypes); in getFunctionType()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/ |
| H A D | TypeConverter.cpp | 132 addArgumentMaterialization([&](OpBuilder &builder, MemRefType resultType, in LLVMTypeConverter() 139 return MemRefDescriptor::pack(builder, loc, *this, resultType, inputs); in LLVMTypeConverter() 143 addSourceMaterialization([&](OpBuilder &builder, Type resultType, in LLVMTypeConverter() 152 addTargetMaterialization([&](OpBuilder &builder, Type resultType, in LLVMTypeConverter() argument 228 Type resultType = funcTy.getNumResults() == 0 in convertFunctionSignature() local 231 if (!resultType) in convertFunctionSignature() 244 Type resultType = type.getNumResults() == 0 in convertFunctionTypeCWrapper() local 247 if (!resultType) in convertFunctionTypeCWrapper() 250 if (auto structType = resultType.dyn_cast<LLVM::LLVMStructType>()) { in convertFunctionTypeCWrapper() 254 resultType = LLVM::LLVMVoidType::get(&getContext()); in convertFunctionTypeCWrapper() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/MemRef/IR/ |
| H A D | MemRefOps.cpp | 521 if (!sourceType || !resultType) in canFoldIntoConsumerOp() 866 MemRefType resultType = getType(); in getDroppedDims() local 1241 Type resultType = getResult().getType(); in verify() local 1242 if (parentType != resultType) in verify() 1354 Type resultType = getResult().getType(); in verifySymbolUses() local 1355 if (global.getType() != resultType) in verifySymbolUses() 1547 << resultType; in verify() 1773 FailureOr<MemRefType> resultType = in build() local 1783 MemRefType resultType = getResultType(); in verify() local 2215 if (!resultType) { in build() [all …]
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/Func/ |
| H A D | TestDecomposeCallGraphTypes.cpp | 64 TupleType resultType, Value value, in runOnOperation() 66 for (unsigned i = 0, e = resultType.size(); i < e; ++i) { in runOnOperation() 68 loc, resultType.getType(i), value, builder.getI32IntegerAttr(i)); in runOnOperation() 75 [](OpBuilder &builder, TupleType resultType, ValueRange inputs, in runOnOperation() argument
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tensor/IR/ |
| H A D | TensorOps.cpp | 345 auto resultType = in fold() local 467 result.addTypes(resultType); in build() 473 Type resultType = RankedTensorType::get( in build() local 631 auto resultType = in matchAndRewrite() local 634 if (resultType.hasStaticShape()) in matchAndRewrite() 845 build(b, result, resultType, src, attrs); in build() 1058 if (!resultType) { in build() 1059 resultType = in build() 1208 RankedTensorType resultType = in matchAndRewrite() local 1420 if (resultType.hasStaticShape()) in fold() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/ |
| H A D | Nodes.h | 846 /*body=*/nullptr, resultType); 892 Type getResultType() const { return resultType; } in getResultType() 909 Type resultType) in UserConstraintDecl() argument 912 resultType(resultType) {} in UserConstraintDecl() 927 Type resultType; variable 1053 resultType); in createNative() 1063 body, resultType); in createPDLL() 1095 Type getResultType() const { return resultType; } in getResultType() 1111 Type resultType) in UserRewriteDecl() argument 1114 resultType(resultType) {} in UserRewriteDecl() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Conversion/FuncToSPIRV/ |
| H A D | FuncToSPIRV.cpp | 72 auto resultType = in matchAndRewrite() local 74 if (!resultType) in matchAndRewrite() 77 callOp, resultType, adaptor.getOperands(), callOp->getAttrs()); in matchAndRewrite()
|