Home
last modified time | relevance | path

Searched refs:elementPtrType (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/
H A DPattern.cpp99 Type elementPtrType = memRefDescriptor.getElementPtrType(); in getStridedElementPtr() local
100 return index ? rewriter.create<LLVM::GEPOp>(loc, elementPtrType, base, index) in getStridedElementPtr()
164 Type elementPtrType = getElementPtrType(memRefType); in getMemRefDescriptorSizes() local
165 Value nullPtr = rewriter.create<LLVM::NullOp>(loc, elementPtrType); in getMemRefDescriptorSizes()
166 Value gepPtr = rewriter.create<LLVM::GEPOp>(loc, elementPtrType, nullPtr, in getMemRefDescriptorSizes()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/
H A DGPUToLLVMConversion.cpp467 Type elementPtrType = this->getElementPtrType(memRefType); in matchAndRewrite() local
472 rewriter.create<LLVM::BitcastOp>(loc, elementPtrType, allocatedPtr); in matchAndRewrite()
812 Type elementPtrType = getElementPtrType(memRefType); in matchAndRewrite() local
813 Value nullPtr = rewriter.create<LLVM::NullOp>(loc, elementPtrType); in matchAndRewrite()
814 Value gepPtr = rewriter.create<LLVM::GEPOp>(loc, elementPtrType, nullPtr, in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/MemRefToLLVM/
H A DMemRefToLLVM.cpp72 Type elementPtrType = this->getElementPtrType(memRefType); in allocateBuffer() local
77 rewriter.create<LLVM::BitcastOp>(loc, elementPtrType, results[0]); in allocateBuffer()
87 rewriter.create<LLVM::IntToPtrOp>(loc, elementPtrType, alignmentInt); in allocateBuffer()
169 Type elementPtrType = this->getElementPtrType(memRefType); in allocateBuffer() local
175 rewriter.create<LLVM::BitcastOp>(loc, elementPtrType, results[0]); in allocateBuffer()
205 auto elementPtrType = this->getElementPtrType(allocaOp.getType()); in allocateBuffer() local
208 loc, elementPtrType, sizeBytes, allocaOp.getAlignment().value_or(0)); in allocateBuffer()
665 Type elementPtrType = LLVM::LLVMPointerType::get(elementType, memSpace); in allocateBuffer() local
671 rewriter.create<LLVM::GEPOp>(loc, elementPtrType, addressOf, operands); in allocateBuffer()
680 rewriter.create<LLVM::IntToPtrOp>(loc, elementPtrType, deadBeefConst); in allocateBuffer()