Home
last modified time | relevance | path

Searched refs:targetEnv (Results 1 – 9 of 9) sorted by relevance

/external/llvm-project/mlir/lib/Dialect/SPIRV/
DSPIRVLowering.cpp39 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
[all …]
DSPIRVDialect.cpp1124 static void print(spirv::TargetEnvAttr targetEnv, DialectAsmPrinter &printer) { in print() argument
1126 print(targetEnv.getTripleAttr(), printer); in print()
1127 spirv::Vendor vendorID = targetEnv.getVendorID(); in print()
1128 spirv::DeviceType deviceType = targetEnv.getDeviceType(); in print()
1129 uint32_t deviceID = targetEnv.getDeviceID(); in print()
1138 printer << ", " << targetEnv.getResourceLimits() << ">"; in print()
1154 if (auto targetEnv = attr.dyn_cast<TargetEnvAttr>()) in printAttribute() local
1155 print(targetEnv, printer); in printAttribute()
DSPIRVOps.cpp2068 auto targetEnv = spirv::getDefaultTargetEnv(broadcastOp.getContext()); in verify() local
2070 targetEnv = spirv::lookupTargetEnvOrDefault(spirvModule); in verify()
2072 if (targetEnv.getVersion() < spirv::Version::V_1_5) { in verify()
/external/llvm-project/mlir/lib/Dialect/SPIRV/Transforms/
DUpdateVCEPass.cpp43 Operation *op, const spirv::TargetEnv &targetEnv, in checkAndUpdateExtensionRequirements() argument
47 if (Optional<spirv::Extension> chosen = targetEnv.allows(ors)) { in checkAndUpdateExtensionRequirements()
71 Operation *op, const spirv::TargetEnv &targetEnv, in checkAndUpdateCapabilityRequirements() argument
75 if (Optional<spirv::Capability> chosen = targetEnv.allows(ors)) { in checkAndUpdateCapabilityRequirements()
100 spirv::TargetEnv targetEnv(targetAttr); in runOnOperation() local
124 op, targetEnv, extensions.getExtensions(), deducedExtensions))) in runOnOperation()
130 op, targetEnv, capabilities.getCapabilities(), in runOnOperation()
150 op, targetEnv, typeExtensions, deducedExtensions))) in runOnOperation()
156 op, targetEnv, typeCapabilities, deducedCapabilities))) in runOnOperation()
DLowerABIAttributesPass.cpp127 spirv::TargetEnvAttr targetEnv = spirv::lookupTargetEnv(funcOp); in lowerEntryPointABIAttr() local
129 spirv::getExecutionModel(targetEnv); in lowerEntryPointABIAttr()
235 spirv::TargetEnv targetEnv(spirv::lookupTargetEnv(module)); in runOnOperation() local
237 SPIRVTypeConverter typeConverter(targetEnv); in runOnOperation()
/external/llvm-project/mlir/lib/Conversion/GPUToSPIRV/
DConvertGPUToSPIRV.cpp220 spirv::TargetEnvAttr targetEnv = spirv::lookupTargetEnvOrDefault(funcOp); in getDefaultABIAttrs() local
221 if (!spirv::needsInterfaceVarABIAttrs(targetEnv)) in getDefaultABIAttrs()
283 spirv::TargetEnvAttr targetEnv = spirv::lookupTargetEnvOrDefault(moduleOp); in matchAndRewrite() local
284 spirv::AddressingModel addressingModel = spirv::getAddressingModel(targetEnv); in matchAndRewrite()
285 FailureOr<spirv::MemoryModel> memoryModel = spirv::getMemoryModel(targetEnv); in matchAndRewrite()
/external/llvm-project/mlir/include/mlir/Dialect/SPIRV/
DSPIRVLowering.h63 spirv::TargetEnv targetEnv;
110 TargetEnv targetEnv; variable
/external/llvm-project/mlir/test/lib/Dialect/SPIRV/
DTestAvailability.cpp132 auto targetEnv = fn.getOperation() in runOnFunction() local
135 if (!targetEnv) { in runOnFunction()
140 auto target = spirv::SPIRVConversionTarget::get(targetEnv); in runOnFunction()
/external/deqp/external/vulkancts/framework/vulkan/
DvkPrograms.cpp104 spv_target_env targetEnv = SPV_ENV_VULKAN_1_0; in optimizeCompiledBinary() local
109 case SPIRV_VERSION_1_0: targetEnv = SPV_ENV_VULKAN_1_0; break; in optimizeCompiledBinary()
112 case SPIRV_VERSION_1_3: targetEnv = SPV_ENV_VULKAN_1_1; break; in optimizeCompiledBinary()
113 case SPIRV_VERSION_1_4: targetEnv = SPV_ENV_VULKAN_1_1_SPIRV_1_4; break; in optimizeCompiledBinary()
114 case SPIRV_VERSION_1_5: targetEnv = SPV_ENV_VULKAN_1_2; break; in optimizeCompiledBinary()
119 spvtools::Optimizer optimizer(targetEnv); in optimizeCompiledBinary()