Home
last modified time | relevance | path

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

/external/llvm-project/mlir/lib/Dialect/SPIRV/
DTargetAndABI.cpp22 spirv::TargetEnv::TargetEnv(spirv::TargetEnvAttr targetAttr) in TargetEnv() argument
23 : targetAttr(targetAttr) { in TargetEnv()
24 for (spirv::Extension ext : targetAttr.getExtensions()) in TargetEnv()
29 spirv::getImpliedExtensions(targetAttr.getVersion())) in TargetEnv()
32 for (spirv::Capability cap : targetAttr.getCapabilities()) { in TargetEnv()
42 return targetAttr.getVersion(); in getVersion()
74 return targetAttr.getVendorID(); in getVendorID()
78 return targetAttr.getDeviceType(); in getDeviceType()
82 return targetAttr.getDeviceID(); in getDeviceID()
86 return targetAttr.getResourceLimits(); in getResourceLimits()
[all …]
DSPIRVLowering.cpp410 SPIRVTypeConverter::SPIRVTypeConverter(spirv::TargetEnvAttr targetAttr) in SPIRVTypeConverter() argument
411 : targetEnv(targetAttr) { in SPIRVTypeConverter()
668 spirv::SPIRVConversionTarget::get(spirv::TargetEnvAttr targetAttr) { in get() argument
671 new SPIRVConversionTarget(targetAttr)); in get()
681 spirv::TargetEnvAttr targetAttr) in SPIRVConversionTarget() argument
682 : ConversionTarget(*targetAttr.getContext()), targetEnv(targetAttr) {} in SPIRVConversionTarget()
/external/llvm-project/mlir/include/mlir/Dialect/SPIRV/
DTargetAndABI.h30 explicit TargetEnv(TargetEnvAttr targetAttr);
61 TargetEnvAttr getAttr() const { return targetAttr; } in getAttr()
64 operator TargetEnvAttr() const { return targetAttr; } in TargetEnvAttr()
67 TargetEnvAttr targetAttr;
83 bool needsInterfaceVarABIAttrs(TargetEnvAttr targetAttr);
122 AddressingModel getAddressingModel(TargetEnvAttr targetAttr);
126 FailureOr<ExecutionModel> getExecutionModel(TargetEnvAttr targetAttr);
130 FailureOr<MemoryModel> getMemoryModel(TargetEnvAttr targetAttr);
DSPIRVLowering.h42 explicit SPIRVTypeConverter(spirv::TargetEnvAttr targetAttr);
94 static std::unique_ptr<SPIRVConversionTarget> get(TargetEnvAttr targetAttr);
97 explicit SPIRVConversionTarget(TargetEnvAttr targetAttr);
/external/llvm-project/mlir/lib/Conversion/StandardToSPIRV/
DConvertStandardToSPIRVPass.cpp34 auto targetAttr = spirv::lookupTargetEnvOrDefault(module); in runOnOperation() local
36 spirv::SPIRVConversionTarget::get(targetAttr); in runOnOperation()
38 SPIRVTypeConverter typeConverter(targetAttr); in runOnOperation()
/external/llvm-project/mlir/lib/Conversion/LinalgToSPIRV/
DLinalgToSPIRVPass.cpp28 auto targetAttr = spirv::lookupTargetEnvOrDefault(module); in runOnOperation() local
30 spirv::SPIRVConversionTarget::get(targetAttr); in runOnOperation()
32 SPIRVTypeConverter typeConverter(targetAttr); in runOnOperation()
/external/llvm-project/mlir/lib/Conversion/GPUToSPIRV/
DConvertGPUToSPIRVPass.cpp56 auto targetAttr = spirv::lookupTargetEnvOrDefault(module); in runOnOperation() local
58 spirv::SPIRVConversionTarget::get(targetAttr); in runOnOperation()
60 SPIRVTypeConverter typeConverter(targetAttr); in runOnOperation()
/external/llvm-project/mlir/lib/Dialect/SPIRV/Transforms/
DUpdateVCEPass.cpp94 spirv::TargetEnvAttr targetAttr = spirv::lookupTargetEnv(module); in runOnOperation() local
95 if (!targetAttr) { in runOnOperation()
100 spirv::TargetEnv targetEnv(targetAttr); in runOnOperation()
101 spirv::Version allowedVersion = targetAttr.getVersion(); in runOnOperation()
/external/llvm-project/mlir/lib/Conversion/VectorToSPIRV/
DVectorToSPIRV.cpp139 auto targetAttr = spirv::lookupTargetEnvOrDefault(module); in runOnOperation() local
141 spirv::SPIRVConversionTarget::get(targetAttr); in runOnOperation()
143 SPIRVTypeConverter typeConverter(targetAttr); in runOnOperation()