/external/llvm-project/mlir/include/mlir/Conversion/SPIRVToLLVM/ |
D | ConvertSPIRVToLLVM.h | 26 SPIRVToLLVMConversion(MLIRContext *context, LLVMTypeConverter &typeConverter, 29 typeConverter(typeConverter) {} 32 LLVMTypeConverter &typeConverter; 40 void populateSPIRVToLLVMTypeConversion(LLVMTypeConverter &typeConverter); 44 LLVMTypeConverter &typeConverter, 50 MLIRContext *context, LLVMTypeConverter &typeConverter, 55 MLIRContext *context, LLVMTypeConverter &typeConverter,
|
/external/llvm-project/mlir/lib/Dialect/StandardOps/Transforms/ |
D | FuncBufferize.cpp | 30 BufferizeTypeConverter typeConverter; in runOnOperation() local 34 populateFuncOpTypeConversionPattern(patterns, context, typeConverter); in runOnOperation() 36 return typeConverter.isSignatureLegal(op.getType()) && in runOnOperation() 37 typeConverter.isLegal(&op.getBody()); in runOnOperation() 39 populateCallOpTypeConversionPattern(patterns, context, typeConverter); in runOnOperation() 41 [&](CallOp op) { return typeConverter.isLegal(op); }); in runOnOperation() 44 typeConverter); in runOnOperation() 48 [&](ReturnOp op) { return typeConverter.isLegal(op); }); in runOnOperation() 70 !typeConverter.isLegal(successorOperands.getValue().getTypes())) in runOnOperation()
|
D | TensorConstantBufferize.cpp | 39 BufferizeTypeConverter typeConverter; in GlobalCreator() local 65 TypeAttr::get(typeConverter.convertType(type)), /*initial_value=*/ in GlobalCreator() 80 TypeConverter &typeConverter, MLIRContext *context) in BufferizeTensorConstantOp() argument 81 : OpConversionPattern<ConstantOp>(typeConverter, context, /*benefit=*/1), in BufferizeTensorConstantOp() 108 BufferizeTypeConverter typeConverter; in runOnOperation() local 113 patterns.insert<BufferizeTensorConstantOp>(globals, typeConverter, context); in runOnOperation() 115 [&](ConstantOp op) { return typeConverter.isLegal(op.getType()); }); in runOnOperation()
|
D | FuncConversions.cpp | 27 if (failed(typeConverter->convertTypes(callOp.getResultTypes(), in matchAndRewrite() 52 BranchOpInterfaceTypeConversion(TypeConverter &typeConverter, in BranchOpInterfaceTypeConversion() argument 54 : ConversionPattern(/*benefit=*/1, typeConverter, MatchAnyOpTypeTag()) {} in BranchOpInterfaceTypeConversion() 107 TypeConverter &typeConverter) { in populateBranchOpInterfaceAndReturnOpTypeConversionPattern() argument 109 typeConverter, ctx); in populateBranchOpInterfaceAndReturnOpTypeConversionPattern()
|
D | Bufferize.cpp | 162 BufferizeTypeConverter &typeConverter, in populateStdBufferizePatterns() argument 173 >(typeConverter, context); in populateStdBufferizePatterns() 180 BufferizeTypeConverter typeConverter; in runOnFunction() local 187 populateStdBufferizePatterns(context, typeConverter, patterns); in runOnFunction() 194 return typeConverter.isLegal(op.getType()) || in runOnFunction() 198 [&](DimOp op) { return typeConverter.isLegal(op); }); in runOnFunction()
|
/external/llvm-project/mlir/lib/Conversion/AVX512ToLLVM/ |
D | ConvertAVX512ToLLVM.cpp | 38 LLVMTypeConverter &typeConverter, Operation *op, in matchAndRewriteOneToOne() argument 45 packedType = typeConverter.packFunctionResults(op->getResultTypes()); in matchAndRewriteOneToOne() 64 auto type = typeConverter.convertType(op->getResult(i).getType()); in matchAndRewriteOneToOne() 78 LLVMTypeConverter &typeConverter) in MaskRndScaleOpPS512Conversion() 80 typeConverter) {} in MaskRndScaleOpPS512Conversion() 95 LLVMTypeConverter &typeConverter) in MaskRndScaleOpPD512Conversion() 97 typeConverter) {} in MaskRndScaleOpPD512Conversion() 112 LLVMTypeConverter &typeConverter) in ScaleFOpPS512Conversion() 114 typeConverter) {} in ScaleFOpPS512Conversion() 129 LLVMTypeConverter &typeConverter) in ScaleFOpPD512Conversion() [all …]
|
/external/guice/core/src/com/google/inject/spi/ |
D | TypeConverterBinding.java | 41 private final TypeConverter typeConverter; field in TypeConverterBinding 45 Object source, Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter typeConverter) { in TypeConverterBinding() argument 48 this.typeConverter = checkNotNull(typeConverter, "typeConverter"); in TypeConverterBinding() 61 return typeConverter; in getTypeConverter() 71 binder.withSource(getSource()).convertToTypes(typeMatcher, typeConverter); in applyTo() 76 return typeConverter in toString()
|
/external/llvm-project/mlir/lib/Conversion/VectorToLLVM/ |
D | ConvertVectorToLLVM.cpp | 37 LLVMTypeConverter &typeConverter, Location loc, in insertOne() argument 43 loc, typeConverter.convertType(idxType), in insertOne() 65 LLVMTypeConverter &typeConverter, Location loc, in extractOne() argument 70 loc, typeConverter.convertType(idxType), in extractOne() 146 LogicalResult getMemRefAlignment(LLVMTypeConverter &typeConverter, T op, in getMemRefAlignment() argument 149 typeConverter.convertType(op.getMemRefType().getElementType()); in getMemRefAlignment() 158 typeConverter.getDataLayout()); in getMemRefAlignment() 221 LLVMTypeConverter &typeConverter, Location loc, in replaceTransferOpWithLoadOrStore() argument 225 if (failed(getMemRefAlignment(typeConverter, xferOp, align))) in replaceTransferOpWithLoadOrStore() 233 LLVMTypeConverter &typeConverter, Location loc, in replaceTransferOpWithMasked() argument [all …]
|
/external/llvm-project/mlir/test/lib/Transforms/ |
D | TestDecomposeCallGraphTypes.cpp | 33 TypeConverter typeConverter; in runOnOperation() local 41 return typeConverter.isLegal(op.getOperandTypes()); in runOnOperation() 44 [&](CallOp op) { return typeConverter.isLegal(op); }); in runOnOperation() 46 return typeConverter.isSignatureLegal(op.getType()); in runOnOperation() 49 typeConverter.addConversion([](Type type) { return type; }); in runOnOperation() 50 typeConverter.addConversion( in runOnOperation() 67 typeConverter.addArgumentMaterialization( in runOnOperation() 79 populateDecomposeCallGraphTypesPatterns(context, typeConverter, decomposer, in runOnOperation()
|
/external/llvm-project/mlir/lib/Conversion/LinalgToSPIRV/ |
D | LinalgToSPIRVPass.cpp | 32 SPIRVTypeConverter typeConverter(targetAttr); in runOnOperation() local 34 populateLinalgToSPIRVPatterns(context, typeConverter, patterns); in runOnOperation() 35 populateBuiltinFuncToSPIRVPatterns(context, typeConverter, patterns); in runOnOperation() 40 return typeConverter.isSignatureLegal(op.getType()) && in runOnOperation() 41 typeConverter.isLegal(&op.getBody()); in runOnOperation()
|
D | LinalgToSPIRV.cpp | 147 typeConverter, originalInputType, convertedInput, {x}, loc, rewriter); in matchAndRewrite() 166 typeConverter.getIndexType(rewriter.getContext()), loc, rewriter); in matchAndRewrite() 169 spirv::getElementPtr(typeConverter, originalOutputType, convertedOutput, in matchAndRewrite() 205 SPIRVTypeConverter &typeConverter, in populateLinalgToSPIRVPatterns() argument 207 patterns.insert<SingleWorkgroupReduction>(context, typeConverter); in populateLinalgToSPIRVPatterns()
|
/external/llvm-project/mlir/lib/Conversion/GPUCommon/ |
D | GPUOpsLowering.h | 22 explicit GPUFuncOpLowering(LLVMTypeConverter &typeConverter) in GPUFuncOpLowering() 24 typeConverter.getDialect()->getContext(), in GPUFuncOpLowering() 25 typeConverter) {} in GPUFuncOpLowering() 44 auto elementType = typeConverter->convertType(type.getElementType()) in matchAndRewrite() 57 auto funcType = typeConverter->convertType(gpuFuncOp.getType()) in matchAndRewrite() 130 auto ptrType = typeConverter->convertType(type.getElementType()) in matchAndRewrite() 149 &llvmFuncOp.getBody(), *typeConverter, &signatureConversion))) in matchAndRewrite() 158 GPUReturnOpLowering(LLVMTypeConverter &typeConverter) in GPUReturnOpLowering() 160 typeConverter.getDialect()->getContext(), in GPUReturnOpLowering() 161 typeConverter) {} in GPUReturnOpLowering()
|
D | IndexIntrinsicsOpLowering.h | 38 explicit GPUIndexIntrinsicOpLowering(LLVMTypeConverter &typeConverter) in GPUIndexIntrinsicOpLowering() 40 typeConverter.getDialect()->getContext(), in GPUIndexIntrinsicOpLowering() 41 typeConverter), in GPUIndexIntrinsicOpLowering() 42 indexBitwidth(typeConverter.getIndexTypeBitwidth()) {} in GPUIndexIntrinsicOpLowering()
|
D | ConvertLaunchFuncToRuntimeCalls.cpp | 71 explicit ConvertOpToGpuRuntimeCallPattern(LLVMTypeConverter &typeConverter) in ConvertOpToGpuRuntimeCallPattern() argument 72 : ConvertOpToLLVMPattern<OpTy>(typeConverter) {} in ConvertOpToGpuRuntimeCallPattern() 161 ConvertHostRegisterOpToGpuRuntimeCallPattern(LLVMTypeConverter &typeConverter) in ConvertHostRegisterOpToGpuRuntimeCallPattern() argument 162 : ConvertOpToGpuRuntimeCallPattern<gpu::HostRegisterOp>(typeConverter) {} in ConvertHostRegisterOpToGpuRuntimeCallPattern() 175 ConvertAllocOpToGpuRuntimeCallPattern(LLVMTypeConverter &typeConverter) in ConvertAllocOpToGpuRuntimeCallPattern() argument 176 : ConvertOpToGpuRuntimeCallPattern<gpu::AllocOp>(typeConverter) {} in ConvertAllocOpToGpuRuntimeCallPattern() 189 ConvertDeallocOpToGpuRuntimeCallPattern(LLVMTypeConverter &typeConverter) in ConvertDeallocOpToGpuRuntimeCallPattern() argument 190 : ConvertOpToGpuRuntimeCallPattern<gpu::DeallocOp>(typeConverter) {} in ConvertDeallocOpToGpuRuntimeCallPattern() 203 ConvertWaitOpToGpuRuntimeCallPattern(LLVMTypeConverter &typeConverter) in ConvertWaitOpToGpuRuntimeCallPattern() argument 204 : ConvertOpToGpuRuntimeCallPattern<gpu::WaitOp>(typeConverter) {} in ConvertWaitOpToGpuRuntimeCallPattern() [all …]
|
/external/llvm-project/mlir/include/mlir/Dialect/SPIRV/ |
D | SPIRVLowering.h | 70 SPIRVOpLowering(MLIRContext *context, SPIRVTypeConverter &typeConverter, 73 typeConverter(typeConverter) {} 76 SPIRVTypeConverter &typeConverter; 84 SPIRVTypeConverter &typeConverter, 125 spirv::AccessChainOp getElementPtr(SPIRVTypeConverter &typeConverter,
|
/external/llvm-project/mlir/lib/Conversion/SPIRVToLLVM/ |
D | ConvertSPIRVToLLVM.cpp | 140 LLVMTypeConverter &typeConverter, in broadcast() argument 143 auto llvmVectorType = typeConverter.convertType(vectorType); in broadcast() 144 auto llvmI32Type = typeConverter.convertType(rewriter.getIntegerType(32)); in broadcast() 157 LLVMTypeConverter &typeConverter, in optionallyBroadcast() argument 161 return broadcast(loc, value, numElements, typeConverter, rewriter); in optionallyBroadcast() 222 LLVMTypeConverter &typeConverter, in replaceWithLoadOrStore() argument 226 auto dstType = typeConverter.convertType(loadOp.getType()); in replaceWithLoadOrStore() 309 auto dstType = typeConverter.convertType(op.component_ptr().getType()); in matchAndRewrite() 315 auto llvmIndexType = typeConverter.convertType(indexType); in matchAndRewrite() 334 auto dstType = typeConverter.convertType(op.pointer().getType()); in matchAndRewrite() [all …]
|
/external/llvm-project/mlir/include/mlir/Conversion/StandardToLLVM/ |
D | ConvertStandardToLLVM.h | 274 LLVMTypeConverter &typeConverter, 409 LLVMTypeConverter &typeConverter, 429 LLVMTypeConverter &typeConverter, Value memRefDescPtr, 433 LLVMTypeConverter &typeConverter, 439 LLVMTypeConverter &typeConverter, Value memRefDescPtr, 443 LLVMTypeConverter &typeConverter, Value memRefDescPtr, 448 LLVMTypeConverter &typeConverter, 452 LLVMTypeConverter typeConverter, Value sizeBasePtr, 456 LLVMTypeConverter typeConverter, Value sizeBasePtr, 461 LLVMTypeConverter &typeConverter, [all …]
|
/external/llvm-project/mlir/lib/Dialect/SCF/Transforms/ |
D | StructuralTypeConversions.cpp | 28 Type newType = typeConverter->convertType(type); in matchAndRewrite() 96 Type newType = typeConverter->convertType(type); in matchAndRewrite() 137 MLIRContext *context, TypeConverter &typeConverter, in populateSCFStructuralTypeConversionsAndLegality() argument 140 typeConverter, context); in populateSCFStructuralTypeConversionsAndLegality() 142 return typeConverter.isLegal(op->getResultTypes()); in populateSCFStructuralTypeConversionsAndLegality() 149 return typeConverter.isLegal(op.getOperandTypes()); in populateSCFStructuralTypeConversionsAndLegality()
|
/external/llvm-project/mlir/lib/Conversion/GPUToSPIRV/ |
D | ConvertGPUToSPIRVPass.cpp | 60 SPIRVTypeConverter typeConverter(targetAttr); in runOnOperation() local 63 populateGPUToSPIRVPatterns(context, typeConverter, patterns); in runOnOperation() 64 populateSCFToSPIRVPatterns(context, typeConverter,scfContext, patterns); in runOnOperation() 65 populateStandardToSPIRVPatterns(context, typeConverter, patterns); in runOnOperation()
|
/external/llvm-project/mlir/lib/Transforms/ |
D | Bufferize.cpp | 86 MLIRContext *context, BufferizeTypeConverter &typeConverter, in populateEliminateBufferizeMaterializationsPatterns() argument 89 typeConverter, context); in populateEliminateBufferizeMaterializationsPatterns() 102 BufferizeTypeConverter typeConverter; in runOnFunction() local 106 populateEliminateBufferizeMaterializationsPatterns(context, typeConverter, in runOnFunction() 118 [&](Operation *op) { return typeConverter.isLegal(op); }); in runOnFunction()
|
/external/llvm-project/mlir/lib/Dialect/Shape/Transforms/ |
D | StructuralTypeConversions.cpp | 60 MLIRContext *context, TypeConverter &typeConverter, in populateShapeStructuralTypeConversionsAndLegality() argument 63 typeConverter, context); in populateShapeStructuralTypeConversionsAndLegality() 65 return typeConverter.isLegal(op.getResultTypes()); in populateShapeStructuralTypeConversionsAndLegality() 68 return typeConverter.isLegal(op.getOperandTypes()); in populateShapeStructuralTypeConversionsAndLegality()
|
/external/llvm-project/mlir/lib/Conversion/StandardToSPIRV/ |
D | ConvertStandardToSPIRVPass.cpp | 38 SPIRVTypeConverter typeConverter(targetAttr); in runOnOperation() local 40 populateStandardToSPIRVPatterns(context, typeConverter, patterns); in runOnOperation() 41 populateBuiltinFuncToSPIRVPatterns(context, typeConverter, patterns); in runOnOperation()
|
D | ConvertStandardToSPIRV.cpp | 162 static Value adjustAccessChainForBitwidth(SPIRVTypeConverter &typeConverter, in adjustAccessChainForBitwidth() argument 177 Type t = typeConverter.convertType(op.component_ptr().getType()); in adjustAccessChainForBitwidth() 279 Type spirvType = typeConverter.convertType(allocType); in matchAndRewrite() 334 auto dstType = this->typeConverter.convertType(operation.getType()); in matchAndRewrite() 373 this->typeConverter.convertType(operation.getResult().getType()); in matchAndRewrite() 509 auto dstType = this->typeConverter.convertType(op.getResult().getType()); in matchAndRewrite() 541 this->typeConverter.convertType(operation.getResult().getType()); in matchAndRewrite() 594 auto dstType = typeConverter.convertType(srcType); in matchAndRewrite() 677 Type dstType = typeConverter.convertType(srcType); in matchAndRewrite() 803 operandType != this->typeConverter.convertType(operandType)) { \ in matchAndRewrite() [all …]
|
/external/llvm-project/mlir/lib/Conversion/StandardToLLVM/ |
D | StandardToLLVM.cpp | 447 LLVMTypeConverter &typeConverter, in ConvertToLLVMPattern() argument 449 : ConversionPattern(rootOpName, benefit, typeConverter, context) {} in ConvertToLLVMPattern() 528 LLVMTypeConverter &typeConverter, in fromStaticShape() argument 543 auto convertedType = typeConverter.convertType(type); in fromStaticShape() 822 OpBuilder &builder, Location loc, LLVMTypeConverter &typeConverter, in computeSizes() argument 828 LLVM::LLVMType indexType = typeConverter.getIndexType(); in computeSizes() 834 builder, loc, indexType, ceilDiv(typeConverter.getPointerBitwidth(), 8)); in computeSizes() 837 ceilDiv(typeConverter.getIndexTypeBitwidth(), 8)); in computeSizes() 885 LLVMTypeConverter &typeConverter, in alignedPtr() argument 892 createIndexAttrConstant(builder, loc, typeConverter.getIndexType(), 1); in alignedPtr() [all …]
|
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/ |
D | Bufferize.cpp | 181 BufferizeAnyLinalgOp(TypeConverter &typeConverter) in BufferizeAnyLinalgOp() argument 182 : ConversionPattern(/*benefit=*/1, typeConverter, MatchAnyOpTypeTag()) {} in BufferizeAnyLinalgOp() 326 BufferizeTypeConverter typeConverter; in runOnOperation() local 334 return typeConverter.isLegal(op); in runOnOperation() 340 populateLinalgBufferizePatterns(&context, typeConverter, patterns); in runOnOperation() 353 MLIRContext *context, BufferizeTypeConverter &typeConverter, in populateLinalgBufferizePatterns() argument 355 patterns.insert<BufferizeAnyLinalgOp>(typeConverter); in populateLinalgBufferizePatterns() 362 >(typeConverter, context); in populateLinalgBufferizePatterns()
|