• Home
  • Raw
  • Download

Lines Matching refs:targetEnv

39     LabelT label, const spirv::TargetEnv &targetEnv,  in checkExtensionRequirements()  argument
42 if (targetEnv.allows(ors)) in checkExtensionRequirements()
66 LabelT label, const spirv::TargetEnv &targetEnv, in checkCapabilityRequirements() argument
69 if (targetEnv.allows(ors)) in checkCapabilityRequirements()
234 convertScalarType(const spirv::TargetEnv &targetEnv, spirv::ScalarType type, in convertScalarType() argument
243 if (succeeded(checkCapabilityRequirements(type, targetEnv, capabilities)) &&
244 succeeded(checkExtensionRequirements(type, targetEnv, extensions)))
259 return Builder(targetEnv.getContext()).getF32Type();
265 targetEnv.getContext());
270 convertVectorType(const spirv::TargetEnv &targetEnv, VectorType type, in convertVectorType() argument
288 if (succeeded(checkCapabilityRequirements(type, targetEnv, capabilities)) &&
289 succeeded(checkExtensionRequirements(type, targetEnv, extensions)))
293 targetEnv, type.getElementType().cast<spirv::ScalarType>(), storageClass);
305 static Optional<Type> convertTensorType(const spirv::TargetEnv &targetEnv, in convertTensorType() argument
330 auto arrayElemType = convertScalarType(targetEnv, scalarType); in convertTensorType()
343 static Optional<Type> convertMemrefType(const spirv::TargetEnv &targetEnv, in convertMemrefType() argument
356 arrayElemType = convertVectorType(targetEnv, vecType, storageClass); in convertMemrefType()
358 arrayElemType = convertScalarType(targetEnv, scalarType, storageClass); in convertMemrefType()
411 : targetEnv(targetAttr) { in SPIRVTypeConverter()
433 return convertScalarType(targetEnv, scalarType); in SPIRVTypeConverter()
439 return convertScalarType(targetEnv, scalarType); in SPIRVTypeConverter()
444 return convertVectorType(targetEnv, vectorType); in SPIRVTypeConverter()
448 return convertTensorType(targetEnv, tensorType); in SPIRVTypeConverter()
452 return convertMemrefType(targetEnv, memRefType); in SPIRVTypeConverter()
682 : ConversionTarget(*targetAttr.getContext()), targetEnv(targetAttr) {} in SPIRVConversionTarget()
689 if (minVersion.getMinVersion() > this->targetEnv.getVersion()) { in isLegalOp()
697 if (maxVersion.getMaxVersion() < this->targetEnv.getVersion()) { in isLegalOp()
709 if (failed(checkExtensionRequirements(op->getName(), this->targetEnv, in isLegalOp()
717 if (failed(checkCapabilityRequirements(op->getName(), this->targetEnv, in isLegalOp()
737 if (failed(checkExtensionRequirements(op->getName(), this->targetEnv, in isLegalOp()
743 if (failed(checkCapabilityRequirements(op->getName(), this->targetEnv, in isLegalOp()