Home
last modified time | relevance | path

Searched refs:argType (Results 1 – 23 of 23) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/
H A DLowerABIAttributesPass.cpp188 for (const auto &argType : in matchAndRewrite() local
191 argType.index(), attrName); in matchAndRewrite()
200 rewriter, funcOp, argType.index(), abiInfo); in matchAndRewrite()
215 if (argType.value().cast<spirv::SPIRVType>().isScalarOrVector()) { in matchAndRewrite()
222 signatureConverter.remapInput(argType.index(), replacement); in matchAndRewrite()
H A DSPIRVConversion.cpp552 for (const auto &argType : enumerate(fnType.getInputs())) { in matchAndRewrite() local
553 auto convertedType = getTypeConverter()->convertType(argType.value()); in matchAndRewrite()
556 signatureConverter.addInputs(argType.index(), convertedType); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Func/Transforms/
H A DDecomposeCallGraphTypes.cpp71 for (const auto &argType : llvm::enumerate(functionType.getInputs())) { in matchAndRewrite() local
73 if (failed(typeConverter->convertType(argType.value(), decomposedTypes))) in matchAndRewrite()
76 conversion.addInputs(argType.index(), decomposedTypes); in matchAndRewrite()
/llvm-project-15.0.7/libc/utils/HdrGen/PrototypeTestGen/
H A DPrototypeTestGen.cpp79 llvm::Record *argType = args[i]->getValueAsDef("ArgType"); in TestGeneratorMain() local
80 OS << G.getTypeAsString(argType); in TestGeneratorMain()
/llvm-project-15.0.7/mlir/lib/Dialect/Async/IR/
H A DAsync.cpp305 Type argType = operand().getType(); in verify() local
308 if (argType.isa<TokenType>() && !getResultTypes().empty()) in verify()
312 if (auto value = argType.dyn_cast<ValueType>()) { in verify()
/llvm-project-15.0.7/flang/lib/Optimizer/Transforms/
H A DAbstractResult.cpp81 auto argType = getResultArgumentType(result.getType(), shouldBoxResult); in matchAndRewrite() local
86 loc, argType, buffer, saveResult.getShape(), /*slice*/ mlir::Value{}, in matchAndRewrite()
98 llvm::SmallVector<mlir::Type> newInputTypes = {argType}; in matchAndRewrite()
/llvm-project-15.0.7/flang/include/flang/Lower/
H A DHostAssociations.h63 mlir::Type argType; variable
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToSPIRV/
H A DGPUToSPIRV.cpp204 for (const auto &argType : in lowerAsEntryFunction() local
206 auto convertedType = typeConverter.convertType(argType.value()); in lowerAsEntryFunction()
207 signatureConverter.addInputs(argType.index(), convertedType); in lowerAsEntryFunction()
/llvm-project-15.0.7/mlir/lib/Dialect/MemRef/Transforms/
H A DNormalizeMemRefs.cpp346 Type argType = functionType.getInput(argIndex); in normalizeFuncOpMemRefs() local
347 MemRefType memrefType = argType.dyn_cast<MemRefType>(); in normalizeFuncOpMemRefs()
351 inputTypes.push_back(argType); in normalizeFuncOpMemRefs()
/llvm-project-15.0.7/flang/lib/Lower/
H A DHostAssociations.cpp545 if (argType) in getArgumentType()
546 return argType; in getArgumentType()
555 argType = fir::ReferenceType::get(mlir::TupleType::get(ctxt, tupleTys)); in getArgumentType()
556 return argType; in getArgumentType()
H A DIO.cpp402 mlir::Type argType = funcOp.getFunctionType().getInput(1); in genNamelistIO() local
404 groupAddr = builder.createConvert(loc, argType, groupAddr); in genNamelistIO()
485 mlir::Type argType = outputFunc.getFunctionType().getInput(1); in genOutputItemList() local
486 assert((isFormatted || argType.isa<fir::BoxType>()) && in genOutputItemList()
490 if (argType.isa<fir::BoxType>()) { in genOutputItemList()
492 outputFuncArgs.push_back(builder.createConvert(loc, argType, box)); in genOutputItemList()
513 itemValue = builder.createConvert(loc, argType, itemValue); in genOutputItemList()
579 mlir::Type argType = inputFunc.getFunctionType().getInput(1); in createIoRuntimeCallForItem() local
581 if (argType.isa<fir::BoxType>()) { in createIoRuntimeCallForItem()
584 inputFuncArgs.push_back(builder.createConvert(loc, argType, box)); in createIoRuntimeCallForItem()
[all …]
H A DIntrinsicCall.cpp1513 for (mlir::Type argType : funcType.getInputs().drop_front()) in checkPrecisionLoss() local
1514 sstream << ", " << argType; in checkPrecisionLoss()
2376 mlir::Type argType = args[0].getType(); in genBtest() local
2377 mlir::Value pos = builder.createConvert(loc, argType, args[1]); in genBtest()
2379 mlir::Value one = builder.createIntegerConstant(loc, argType, 1); in genBtest()
H A DConvertExpr.cpp3382 const fir::ExtendedValue &value, mlir::Type argType) -> mlir::Value { in genScalarUserDefinedAssignmentCall() argument
3383 if (argType.isa<fir::BoxCharType>()) { in genScalarUserDefinedAssignmentCall()
3389 if (argType.isa<fir::BoxType>()) { in genScalarUserDefinedAssignmentCall()
3391 return builder.createConvert(loc, argType, box); in genScalarUserDefinedAssignmentCall()
3394 mlir::Type argBaseType = fir::unwrapRefType(argType); in genScalarUserDefinedAssignmentCall()
3408 return builder.createConvert(loc, argType, from); in genScalarUserDefinedAssignmentCall()
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/
H A DFuncBufferizableOpInterfaceImpl.cpp400 Type argType = it.value(); in bufferize() local
401 if (auto tensorType = argType.dyn_cast<TensorType>()) { in bufferize()
406 argTypes.push_back(argType); in bufferize()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DFunctionInterfaces.td100 Type argType = entryBlock.getArgument(i).getType();
101 if (fnInputTypes[i] != argType) {
103 << i << '(' << argType
291 /// Insert a single argument of type `argType` with attributes `argAttrs` and
293 void insertArgument(unsigned argIndex, Type argType, DictionaryAttr argAttrs,
295 insertArguments({argIndex}, {argType}, {argAttrs}, {argLoc});
/llvm-project-15.0.7/clang/lib/AST/
H A DTemplateBase.cpp148 static bool needsAmpersandOnTemplateArg(QualType paramType, QualType argType) { in needsAmpersandOnTemplateArg() argument
154 if (argType->isArrayType()) in needsAmpersandOnTemplateArg()
155 return getArrayDepth(argType) == getArrayDepth(paramType->getPointeeType()); in needsAmpersandOnTemplateArg()
H A DType.cpp1270 QualType argType = TypeArgs[typeParam->getIndex()]; in VisitObjCTypeParamType() local
1272 return argType; in VisitObjCTypeParamType()
1280 argType, protocolsToApply, hasError, true/*allowOnPointerType*/); in VisitObjCTypeParamType()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/IR/
H A DLinalgInterfaces.cpp744 Type argType = block.getArgument(opOperand->getOperandNumber()).getType(); in verifyStructuredOpInterface() local
745 if (elementType != argType) in verifyStructuredOpInterface()
747 << opOperand->getOperandNumber() << " (" << argType << ")" in verifyStructuredOpInterface()
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMDialect.cpp1318 auto argType = funcType.getInput(i); in parse() local
1319 if (!isCompatibleType(argType)) in parse()
1322 argTypes.push_back(argType); in parse()
2377 Type argType = entryBlock.getArgument(i).getType(); in verifyRegions() local
2378 if (!isCompatibleType(argType)) in verifyRegions()
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/
H A DDeserializer.cpp396 auto argType = functionType.getInput(i); in processFunction() local
415 if (!argDefinedType || argDefinedType != argType) { in processFunction()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DParser.cpp2552 ast::Type argType; in createArgOrResultVariableDecl() local
2553 if (failed(validateVariableConstraint(constraint, argType, in createArgOrResultVariableDecl()
2556 return defineVariableDecl(name, loc, argType, constraint); in createArgOrResultVariableDecl()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGObjC.cpp1533 QualType argType = argDecl->getType().getNonReferenceType(); in generateObjCSetterBody() local
1534 DeclRefExpr arg(getContext(), argDecl, false, argType, VK_LValue, in generateObjCSetterBody()
1537 argType.getUnqualifiedType(), CK_LValueToRValue, in generateObjCSetterBody()
H A DCGCall.cpp1711 llvm::Type *argType = ArgInfo.getCoerceToType(); in GetFunctionType() local
1712 llvm::StructType *st = dyn_cast<llvm::StructType>(argType); in GetFunctionType()
1719 ArgTypes[FirstIRArg] = argType; in GetFunctionType()