Home
last modified time | relevance | path

Searched refs:operandType (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/mlir/lib/Conversion/MathToLLVM/
H A DMathToLLVM.cpp54 if (!operandType || !LLVM::isCompatibleType(operandType)) in matchAndRewrite()
100 if (!operandType || !LLVM::isCompatibleType(operandType)) in matchAndRewrite()
108 if (!operandType.isa<LLVM::LLVMArrayType>()) { in matchAndRewrite()
112 loc, operandType, in matchAndRewrite()
153 if (!operandType || !LLVM::isCompatibleType(operandType)) in matchAndRewrite()
161 if (!operandType.isa<LLVM::LLVMArrayType>()) { in matchAndRewrite()
163 LLVM::isCompatibleVectorType(operandType) in matchAndRewrite()
165 loc, operandType, in matchAndRewrite()
207 if (!operandType || !LLVM::isCompatibleType(operandType)) in matchAndRewrite()
215 if (!operandType.isa<LLVM::LLVMArrayType>()) { in matchAndRewrite()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Async/IR/
H A DAsync.cpp287 static ParseResult parseAwaitResultType(OpAsmParser &parser, Type &operandType, in parseAwaitResultType() argument
289 if (parser.parseType(operandType)) in parseAwaitResultType()
293 if (auto valueType = operandType.dyn_cast<ValueType>()) in parseAwaitResultType()
300 Type operandType, Type resultType) { in printAwaitResultType() argument
301 p << operandType; in printAwaitResultType()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DShapeInferencePass.cpp96 return llvm::all_of(op->getOperandTypes(), [](Type operandType) { in allOperandsInferred() argument
97 return operandType.isa<RankedTensorType>(); in allOperandsInferred()
/llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/
H A DShapeInferencePass.cpp96 return llvm::all_of(op->getOperandTypes(), [](Type operandType) { in allOperandsInferred() argument
97 return operandType.isa<RankedTensorType>(); in allOperandsInferred()
/llvm-project-15.0.7/mlir/examples/toy/Ch4/mlir/
H A DShapeInferencePass.cpp96 return llvm::all_of(op->getOperandTypes(), [](Type operandType) { in allOperandsInferred() argument
97 return operandType.isa<RankedTensorType>(); in allOperandsInferred()
/llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/
H A DShapeInferencePass.cpp96 return llvm::all_of(op->getOperandTypes(), [](Type operandType) { in allOperandsInferred() argument
97 return operandType.isa<RankedTensorType>(); in allOperandsInferred()
/llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToLLVM/
H A DArithmeticToLLVM.cpp166 auto operandType = adaptor.getLhs().getType(); in matchAndRewrite() local
170 if (!operandType.isa<LLVM::LLVMArrayType>()) { in matchAndRewrite()
201 auto operandType = adaptor.getLhs().getType(); in matchAndRewrite() local
205 if (!operandType.isa<LLVM::LLVMArrayType>()) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVCLOps.td36 Type operandType, list<Trait> traits = []> :
40 SPV_ScalarOrVectorOf<operandType>:$operand
61 Type operandType, list<Trait> traits = []> :
65 SPV_ScalarOrVectorOf<operandType>:$lhs,
66 SPV_ScalarOrVectorOf<operandType>:$rhs
87 Type operandType, list<Trait> traits = []> :
91 SPV_ScalarOrVectorOf<operandType>:$x,
92 SPV_ScalarOrVectorOf<operandType>:$y,
93 SPV_ScalarOrVectorOf<operandType>:$z
H A DSPIRVCastOps.td20 class SPV_CastOp<string mnemonic, Type resultType, Type operandType,
26 SPV_ScalarOrVectorOrCoopMatrixOf<operandType>:$operand
H A DSPIRVGLOps.td37 Type operandType, list<Trait> traits = []> :
41 SPV_ScalarOrVectorOf<operandType>:$operand
62 Type operandType, list<Trait> traits = []> :
66 SPV_ScalarOrVectorOf<operandType>:$lhs,
67 SPV_ScalarOrVectorOf<operandType>:$rhs
H A DSPIRVLogicalOps.td40 class SPV_LogicalUnaryOp<string mnemonic, Type operandType,
43 SPV_UnaryOp<mnemonic, SPV_Bool, operandType,
/llvm-project-15.0.7/mlir/test/lib/Dialect/Test/
H A DTestDialect.cpp630 parseCustomDirectiveResults(OpAsmParser &parser, Type &operandType, in parseCustomDirectiveResults() argument
636 if (parser.parseType(operandType)) in parseCustomDirectiveResults()
648 parseCustomDirectiveWithTypeRefs(OpAsmParser &parser, Type operandType, in parseCustomDirectiveWithTypeRefs() argument
670 Type &operandType, Type &optOperandType, in parseCustomDirectiveOperandsAndTypes() argument
673 parseCustomDirectiveResults(parser, operandType, optOperandType, in parseCustomDirectiveOperandsAndTypes()
749 printer << " : " << operandType; in printCustomDirectiveResults()
759 printCustomDirectiveResults(printer, op, operandType, optOperandType, in printCustomDirectiveWithTypeRefs()
764 OperandRange varOperands, Type operandType, Type optOperandType, in printCustomDirectiveOperandsAndTypes() argument
767 printCustomDirectiveResults(printer, op, operandType, optOperandType, in printCustomDirectiveOperandsAndTypes()
1166 auto operandType = operands.front().getType(); in inferReturnTypeComponents() local
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/MemRefToLLVM/
H A DMemRefToLLVM.cpp350 Type operandType = dimOp.getSource().getType(); in matchAndRewrite() local
351 if (operandType.isa<UnrankedMemRefType>()) { in matchAndRewrite()
358 if (operandType.isa<MemRefType>()) { in matchAndRewrite()
360 dimOp, {extractSizeOfRankedMemRef(operandType, dimOp, in matchAndRewrite()
373 auto unrankedMemRefType = operandType.cast<UnrankedMemRefType>(); in extractSizeOfUnrankedMemRef()
427 MemRefType memRefType = operandType.cast<MemRefType>(); in extractSizeOfRankedMemRef()
761 Type operandType = op.getMemref().getType(); in matchAndRewrite() local
767 if (auto rankedMemRefType = operandType.dyn_cast<MemRefType>()) { in matchAndRewrite()
1003 Type operandType = originalOperand.getType(); in extractPointersAndOffset() local
1004 if (operandType.isa<MemRefType>()) { in extractPointersAndOffset()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DDropUnitDims.cpp342 auto operandType = operand.getType(); in maybeCollapse() local
343 if (operandType == newInputOutputType) in maybeCollapse()
345 if (operandType.isa<MemRefType>()) { in maybeCollapse()
350 if (operandType.isa<RankedTensorType>()) { in maybeCollapse()
H A DElementwiseOpFusion.cpp1610 auto operandType = operandVal.getType().dyn_cast<RankedTensorType>(); in matchAndRewrite() local
1611 if (!operandType) in matchAndRewrite()
1624 for (const auto &dim : llvm::enumerate(operandType.getShape())) { in matchAndRewrite()
1631 loc, dynamicDims, operandType.getShape(), in matchAndRewrite()
1632 operandType.getElementType()); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/
H A DVectorDistribute.cpp496 auto operandType = operand.get().getType().cast<VectorType>(); in matchAndRewrite() local
498 VectorType::get(vecType.getShape(), operandType.getElementType()); in matchAndRewrite()
500 auto operandType = operand.get().getType(); in matchAndRewrite() local
501 assert(!operandType.isa<VectorType>() && in matchAndRewrite()
503 targetType = operandType; in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/IR/
H A DBufferizableOpInterface.cpp136 Type operandType = opOperand.get().getType(); in resolveTensorOpOperandConflicts() local
137 if (!operandType.isa<TensorType>()) in resolveTensorOpOperandConflicts()
141 if (operandType.isa<UnrankedTensorType>()) in resolveTensorOpOperandConflicts()
/llvm-project-15.0.7/mlir/lib/Conversion/VectorToGPU/
H A DNvGpuSupport.cpp28 bool isAccumulatorOrResult(MatMulOperandRole operandType) { in isAccumulatorOrResult() argument
29 return operandType == MatMulOperandRole::C; in isAccumulatorOrResult()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVOps.cpp426 Type operandType = op->getOperand(0).getType(); in verifyCastOp() local
431 operandType = vectorType.getElementType(); in verifyCastOp()
437 operandType = coopMatrixType.getElementType(); in verifyCastOp()
451 << operandType << " and " << resultType; in verifyCastOp()
460 << operandType << " and " << resultType; in verifyCastOp()
930 Builder builder(operandType.getContext()); in getUnaryOpResultType()
1490 auto operandType = operand().getType(); in verify() local
1492 if (operandType == resultType) { in verify()
1495 if (operandType.isa<spirv::PointerType>() && in verify()
1500 if (!operandType.isa<spirv::PointerType>() && in verify()
[all …]
/llvm-project-15.0.7/mlir/test/mlir-pdll/CodeGen/MLIR/
H A Ddecl.pdll62 erase op<>(operand: Value<operandType: Type>) { attr = _: Attr<attrType: Type>} -> (result: Type);
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DOpFormatGen.cpp1492 TypeResolution &operandType = operandTypes[i]; in genParserOperandTypeResolution() local
1493 emitTypeResolver(operandType, operand.name); in genParserOperandTypeResolution()
1499 if (auto *resolverVar = operandType.getVariable()) { in genParserOperandTypeResolution()
1500 if (!resolverVar->isVariadic() && !operandType.getVarTransformer()) { in genParserOperandTypeResolution()
1505 verifyOperandAndTypeSize = !operandType.getBuilderIdx(); in genParserOperandTypeResolution()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/OpenMP/
H A DOpenMPToLLVMIRTranslation.cpp158 llvm::Type *operandType = in convertOmpOpRegions() local
160 (void)operandType; in convertOmpOpRegions()
161 assert(continuationBlockPHITypes[i] == operandType && in convertOmpOpRegions()
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMDialect.cpp879 Type operandType; in parse() local
881 operandType = type; in parse()
889 operandType = *maybeOperandType; in parse()
892 if (parser.resolveOperand(value, operandType, result.operands) || in parse()
/llvm-project-15.0.7/mlir/lib/Dialect/Tensor/IR/
H A DTensorOps.cpp761 TensorType operandType = getSource().getType().cast<TensorType>(); in verify() local
764 if (operandType.getElementType() != resultType.getElementType()) in verify()
771 auto operandRankedType = operandType.dyn_cast<RankedTensorType>(); in verify()
/llvm-project-15.0.7/mlir/lib/Dialect/MemRef/IR/
H A DMemRefOps.cpp2034 Type operandType = getSource().getType(); in verify() local
2037 Type operandElementType = operandType.cast<ShapedType>().getElementType(); in verify()
2043 if (auto operandMemRefType = operandType.dyn_cast<MemRefType>()) in verify()

12