Home
last modified time | relevance | path

Searched refs:getMemorySpaceAsInt (Results 1 – 25 of 30) sorted by relevance

12

/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/Transforms/
H A DBufferizableOpInterfaceImpl.cpp160 if (trueType.getMemorySpaceAsInt() != falseType.getMemorySpaceAsInt()) in bufferize()
175 stridedLayout, trueType.getMemorySpaceAsInt()); in bufferize()
/llvm-project-15.0.7/mlir/lib/IR/
H A DBuiltinTypes.cpp419 unsigned BaseMemRefType::getMemorySpaceAsInt() const { in getMemorySpaceAsInt() function in BaseMemRefType
421 return rankedMemRefTy.getMemorySpaceAsInt(); in getMemorySpaceAsInt()
422 return cast<UnrankedMemRefType>().getMemorySpaceAsInt(); in getMemorySpaceAsInt()
528 unsigned mlir::detail::getMemorySpaceAsInt(Attribute memorySpace) { in getMemorySpaceAsInt() function in mlir::detail
545 unsigned MemRefType::getMemorySpaceAsInt() const { in getMemorySpaceAsInt() function in MemRefType
546 return detail::getMemorySpaceAsInt(getMemorySpace()); in getMemorySpaceAsInt()
702 unsigned UnrankedMemRefType::getMemorySpaceAsInt() const { in getMemorySpaceAsInt() function in UnrankedMemRefType
703 return detail::getMemorySpaceAsInt(getMemorySpace()); in getMemorySpaceAsInt()
H A DTypeDetail.h145 unsigned getMemorySpaceAsInt(Attribute memorySpace);
/llvm-project-15.0.7/mlir/lib/Dialect/NVGPU/IR/
H A DNVGPUDialect.cpp76 if (dstMemref.getMemorySpaceAsInt() != workgroupAddressSpace) in verify()
225 if (!(srcMemref.getMemorySpaceAsInt() == smemAddressSpace)) in verify()
/llvm-project-15.0.7/mlir/lib/Dialect/AMDGPU/IR/
H A DAMDGPUDialect.cpp35 if (bufferType.getMemorySpaceAsInt() != 0) in verifyRawBufferOp()
/llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/
H A DTypeConverter.cpp308 LLVM::LLVMPointerType::get(elementType, type.getMemorySpaceAsInt()); in getMemRefDescriptorFields()
326 unsigned space = type.getMemorySpaceAsInt(); in getMemRefDescriptorSize()
359 unsigned space = type.getMemorySpaceAsInt(); in getUnrankedMemRefDescriptorSize()
402 return LLVM::LLVMPointerType::get(elementType, type.getMemorySpaceAsInt()); in convertMemRefToBarePtr()
H A DPattern.cpp117 type.getMemorySpaceAsInt()); in getElementPtrType()
/llvm-project-15.0.7/mlir/lib/Dialect/NVGPU/Transforms/
H A DOptimizeSharedMemory.cpp176 if (!memRefType || memRefType.getMemorySpaceAsInt() != in optimizeSharedMemoryReadsAndWrites()
256 .getMemorySpaceAsInt() != in runOnOperation()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Affine/IR/
H A DAffineOps.h131 return getSrcMemRef().getType().cast<MemRefType>().getMemorySpaceAsInt(); in getSrcMemorySpace()
152 return getDstMemRef().getType().cast<MemRefType>().getMemorySpaceAsInt(); in getDstMemorySpace()
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/IR/
H A DBufferizationOps.cpp34 if (srcType.getMemorySpaceAsInt() != destType.getMemorySpaceAsInt()) in castOrReallocMemRefValue()
179 copyBuffer.getType().cast<BaseMemRefType>().getMemorySpaceAsInt(); in bufferize()
H A DBufferizableOpInterface.cpp119 copyBufferType->getMemorySpaceAsInt())); in allocateTensorForShapedValue()
/llvm-project-15.0.7/mlir/lib/Conversion/MemRefToSPIRV/
H A DMemRefToSPIRV.cpp94 spirv::StorageClass::Workgroup) != type.getMemorySpaceAsInt()) in isAllocationSupported()
98 spirv::StorageClass::Function) != type.getMemorySpaceAsInt()) in isAllocationSupported()
121 type.getMemorySpaceAsInt()); in getAtomicOpScope()
/llvm-project-15.0.7/mlir/lib/Dialect/Tensor/Transforms/
H A DBufferizableOpInterfaceImpl.cpp71 sourceMemRefType.getMemorySpaceAsInt()); in bufferize()
141 bufferType.getMemorySpaceAsInt()); in bufferize()
165 AffineMap(), bufferType.getMemorySpaceAsInt()); in bufferize()
810 srcBuffer->getType().cast<BaseMemRefType>().getMemorySpaceAsInt()); in bufferize()
/llvm-project-15.0.7/mlir/lib/Conversion/MemRefToLLVM/
H A DMemRefToLLVM.cpp376 unsigned addressSpace = unrankedMemRefType.getMemorySpaceAsInt(); in extractSizeOfUnrankedMemRef()
627 initialValue, alignment, type.getMemorySpaceAsInt()); in matchAndRewrite()
655 unsigned memSpace = type.getMemorySpaceAsInt(); in allocateBuffer()
1014 operandType.cast<UnrankedMemRefType>().getMemorySpaceAsInt(); in extractPointersAndOffset()
1214 unsigned addressSpace = targetType.getMemorySpaceAsInt(); in convertSourceMemRefToDescriptor()
1685 viewMemRefType.getMemorySpaceAsInt()), in matchAndRewrite()
1694 viewMemRefType.getMemorySpaceAsInt()), in matchAndRewrite()
1928 srcMemRefType.getMemorySpaceAsInt()), in matchAndRewrite()
1939 srcMemRefType.getMemorySpaceAsInt()), in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/
H A DBufferResultsToOutParams.cpp138 AffineMap(), memrefType.getMemorySpaceAsInt()); in updateCalls()
H A DFuncBufferizableOpInterfaceImpl.cpp89 layoutAttr.getValue(), rankedMemrefType.getMemorySpaceAsInt()); in getBufferizedFunctionArgType()
/llvm-project-15.0.7/mlir/lib/Conversion/NVGPUToNVVM/
H A DNVGPUToNVVM.cpp368 LLVM::LLVMPointerType::get(i8Ty, dstMemrefType.getMemorySpaceAsInt()); in matchAndRewrite()
376 LLVM::LLVMPointerType::get(i8Ty, srcMemrefType.getMemorySpaceAsInt()); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Transforms/
H A DBufferizableOpInterfaceImpl.cpp186 if (thenMemrefType.getMemorySpaceAsInt() != in bufferize()
187 elseMemrefType.getMemorySpaceAsInt()) in bufferize()
192 thenMemrefType.getMemorySpaceAsInt()); in bufferize()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToNVVM/
H A DLowerGpuOpsToNVVMOps.cpp188 if (type.getMemorySpaceAsInt() != in runOnOperation()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DBuiltinTypes.h142 unsigned getMemorySpaceAsInt() const;
H A DBuiltinTypes.td565 unsigned getMemorySpaceAsInt() const;
873 unsigned getMemorySpaceAsInt() const;
/llvm-project-15.0.7/mlir/lib/Dialect/GPU/IR/
H A DGPUDialect.cpp990 if (type.getMemorySpaceAsInt() != memorySpace) { in verifyAttributions()
1172 auto srcMemSpace = srcMemrefType.getMemorySpaceAsInt(); in verify()
1200 auto dstMemSpace = dstMemrefType.getMemorySpaceAsInt(); in verify()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/
H A DSPIRVConversion.cpp381 type.getMemorySpaceAsInt()); in convertBoolMemrefType()
433 type.getMemorySpaceAsInt()); in convertMemrefType()
/llvm-project-15.0.7/mlir/lib/Conversion/VectorToLLVM/
H A DConvertVectorToLLVM.cpp106 memRefType.getMemorySpaceAsInt() != 0) in getIndexedPtrs()
118 auto pType = LLVM::LLVMPointerType::get(vt, memRefType.getMemorySpaceAsInt()); in castDataPtr()
/llvm-project-15.0.7/mlir/lib/Dialect/MemRef/IR/
H A DMemRefOps.cpp1764 srcType.getMemorySpaceAsInt()); in computeExpandedType()
1928 srcType.getMemorySpaceAsInt()); in computeCollapsedType()
1972 *computedLayout, srcType.getMemorySpaceAsInt()); in verify()

12