Lines Matching refs:targetEnv
40 LabelT label, const spirv::TargetEnv &targetEnv, in checkExtensionRequirements() argument
43 if (targetEnv.allows(ors)) in checkExtensionRequirements()
68 LabelT label, const spirv::TargetEnv &targetEnv, in checkCapabilityRequirements() argument
71 if (targetEnv.allows(ors)) in checkCapabilityRequirements()
184 return targetEnv.getAttr().getContext(); in getContext()
265 static Type convertScalarType(const spirv::TargetEnv &targetEnv, in convertScalarType() argument
276 if (succeeded(checkCapabilityRequirements(type, targetEnv, capabilities)) &&
277 succeeded(checkExtensionRequirements(type, targetEnv, extensions)))
288 return Builder(targetEnv.getContext()).getF32Type();
293 return IntegerType::get(targetEnv.getContext(), /*width=*/32,
298 static Type convertVectorType(const spirv::TargetEnv &targetEnv, in convertVectorType() argument
319 if (succeeded(checkCapabilityRequirements(type, targetEnv, capabilities)) &&
320 succeeded(checkExtensionRequirements(type, targetEnv, extensions)))
324 targetEnv, options, type.getElementType().cast<spirv::ScalarType>(),
337 static Type convertTensorType(const spirv::TargetEnv &targetEnv, in convertTensorType() argument
363 auto arrayElemType = convertScalarType(targetEnv, options, scalarType); in convertTensorType()
376 static Type convertBoolMemrefType(const spirv::TargetEnv &targetEnv, in convertBoolMemrefType() argument
399 convertScalarType(targetEnv, options, elementType, storageClass); in convertBoolMemrefType()
423 static Type convertMemrefType(const spirv::TargetEnv &targetEnv, in convertMemrefType() argument
428 return convertBoolMemrefType(targetEnv, options, type); in convertMemrefType()
444 convertVectorType(targetEnv, options, vecType, storageClass); in convertMemrefType()
447 convertScalarType(targetEnv, options, scalarType, storageClass); in convertMemrefType()
487 : targetEnv(targetAttr), options(options) { in SPIRVTypeConverter()
504 return convertScalarType(this->targetEnv, this->options, scalarType); in SPIRVTypeConverter()
510 return convertScalarType(this->targetEnv, this->options, scalarType); in SPIRVTypeConverter()
515 return convertVectorType(this->targetEnv, this->options, vectorType); in SPIRVTypeConverter()
519 return convertTensorType(this->targetEnv, this->options, tensorType); in SPIRVTypeConverter()
523 return convertMemrefType(this->targetEnv, this->options, memRefType); in SPIRVTypeConverter()
832 : ConversionTarget(*targetAttr.getContext()), targetEnv(targetAttr) {} in SPIRVConversionTarget()
840 if (minVersion && *minVersion > this->targetEnv.getVersion()) { in isLegalOp()
849 if (maxVersion && *maxVersion < this->targetEnv.getVersion()) { in isLegalOp()
861 if (failed(checkExtensionRequirements(op->getName(), this->targetEnv, in isLegalOp()
869 if (failed(checkCapabilityRequirements(op->getName(), this->targetEnv, in isLegalOp()
894 if (failed(checkExtensionRequirements(op->getName(), this->targetEnv, in isLegalOp()
900 if (failed(checkCapabilityRequirements(op->getName(), this->targetEnv, in isLegalOp()