Home
last modified time | relevance | path

Searched refs:getIndexType (Results 1 – 25 of 110) sorted by relevance

12345

/llvm-project-15.0.7/mlir/unittests/Dialect/MemRef/
H A DInferShapeTest.cpp22 auto sourceMemref = MemRefType::get({10, 5}, b.getIndexType()); in TEST()
28 MemRefType::get({2}, b.getIndexType(), AffineMap::get(1, 0, dim0 + 13)); in TEST()
38 auto sourceMemref = MemRefType::get({10, 5}, b.getIndexType(), in TEST()
43 MemRefType::get({2}, b.getIndexType(), AffineMap::get(1, 0, dim0 + 2003)); in TEST()
52 auto sourceMemref = MemRefType::get({10, 5}, b.getIndexType(), in TEST()
57 MemRefType::get({}, b.getIndexType(), in TEST()
/llvm-project-15.0.7/flang/unittests/Optimizer/Builder/
H A DDoLoopHelperTest.cpp46 firBuilder.getUnknownLoc(), firBuilder.getIndexType(), 10); in TEST_F()
62 firBuilder.getUnknownLoc(), firBuilder.getIndexType(), 1); in TEST_F()
64 firBuilder.getUnknownLoc(), firBuilder.getIndexType(), 20); in TEST_F()
77 firBuilder.getUnknownLoc(), firBuilder.getIndexType(), 1); in TEST_F()
79 firBuilder.getUnknownLoc(), firBuilder.getIndexType(), 20); in TEST_F()
81 firBuilder.getUnknownLoc(), firBuilder.getIndexType(), 2); in TEST_F()
H A DFIRBuilderTest.cpp47 auto zero1 = builder.createIntegerConstant(loc, builder.getIndexType(), 0); in createCondition()
48 auto zero2 = builder.createIntegerConstant(loc, builder.getIndexType(), 0); in createCondition()
109 builder.createIntegerConstant(loc, builder.getIndexType(), 0); in TEST_F()
120 builder.createIntegerConstant(loc, builder.getIndexType(), 0); in TEST_F()
136 auto idxTy = builder.getIndexType(); in TEST_F()
141 EXPECT_EQ(builder.getIndexType(), zeroOp.getResult().getType()); in TEST_F()
483 auto extent = builder.create<fir::UndefOp>(loc, builder.getIndexType()); in TEST_F()
/llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/
H A DMemRefBuilder.cpp102 loc, resultType, builder.getIntegerAttr(builder.getIndexType(), value)); in createIndexAttrConstant()
342 Type indexType = typeConverter.getIndexType(); in computeSizes()
406 createIndexAttrConstant(builder, loc, typeConverter.getIndexType(), 1); in alignedPtr()
421 createIndexAttrConstant(builder, loc, typeConverter.getIndexType(), 1); in setAlignedPtr()
435 createIndexAttrConstant(builder, loc, typeConverter.getIndexType(), 2); in offset()
451 createIndexAttrConstant(builder, loc, typeConverter.getIndexType(), 2); in setOffset()
463 Type indexTy = typeConverter.getIndexType(); in sizeBasePtr()
472 createIndexAttrConstant(builder, loc, typeConverter.getIndexType(), 0); in sizeBasePtr()
482 Type indexPtrTy = LLVM::LLVMPointerType::get(typeConverter.getIndexType()); in size()
492 Type indexPtrTy = LLVM::LLVMPointerType::get(typeConverter.getIndexType()); in setSize()
[all …]
H A DPattern.cpp37 Type ConvertToLLVMPattern::getIndexType() const { in getIndexType() function in ConvertToLLVMPattern
38 return getTypeConverter()->getIndexType(); in getIndexType()
60 loc, resultType, builder.getIntegerAttr(builder.getIndexType(), value)); in createIndexAttrConstant()
65 return createIndexAttrConstant(builder, loc, getIndexType(), value); in createIndexConstant()
168 sizeBytes = rewriter.create<LLVM::PtrToIntOp>(loc, getIndexType(), gepPtr); in getMemRefDescriptorSizes()
184 return rewriter.create<LLVM::PtrToIntOp>(loc, getIndexType(), gep); in getSizeInBytes()
251 Type indexType = getTypeConverter()->getIndexType(); in copyUnrankedDescriptors()
H A DTypeConverter.cpp168 Type LLVMTypeConverter::getIndexType() { in getIndexType() function in LLVMTypeConverter
177 return getIndexType(); in convertIndexType()
309 auto indexTy = getIndexType(); in getMemRefDescriptorFields()
328 (1 + 2 * type.getRank()) * layout.getTypeSize(getIndexType()); in getMemRefDescriptorSize()
351 return {getIndexType(), in getUnrankedMemRefDescriptorFields()
360 return layout.getTypeSize(getIndexType()) + in getUnrankedMemRefDescriptorSize()
/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DComplex.h65 builder.getIndexType(), static_cast<int>(partId))})); in extract()
73 builder.getIndexType(), static_cast<int>(partId))})); in insert()
78 return builder.createIntegerConstant(loc, builder.getIndexType(), in createPartId()
/llvm-project-15.0.7/flang/lib/Optimizer/Builder/
H A DDoLoopHelper.cpp36 lb, ub, builder.createIntegerConstant(loc, builder.getIndexType(), 1), in createLoop()
43 auto indexType = builder.getIndexType(); in createLoop()
H A DCharacter.cpp133 auto indexType = builder.getIndexType(); in toExtendedValue()
272 auto i = builder.createConvert(loc, builder.getIndexType(), index); in createElementAddr()
432 auto idxTy = builder.getIndexType(); in createAssign()
462 auto lhsLenIdx = builder.createConvert(loc, builder.getIndexType(), lhsLen); in createConcatenate()
524 auto indexType = builder.getIndexType(); in createLenTrim()
649 auto zero = builder.getIntegerAttr(builder.getIndexType(), 0); in createSingletonFromCode()
660 auto zero = builder.getIntegerAttr(builder.getIndexType(), 0); in extractCodeFromSingleton()
703 {builder.getIntegerAttr(builder.getIndexType(), 0)})); in extractCharacterProcedureTuple()
712 {builder.getIntegerAttr(builder.getIndexType(), 1)})); in extractCharacterProcedureTuple()
729 {builder.getIntegerAttr(builder.getIndexType(), 0)})); in createCharacterProcedureTuple()
[all …]
H A DFIRBuilder.cpp168 auto idxTy = getIndexType(); in allocateLocal()
311 mlir::Value unknownLen = create<fir::UndefOp>(loc, getIndexType()); in convertWithSemantics()
369 auto idxTy = getIndexType(); in genShape()
415 auto idxTy = getIndexType(); in createSlice()
586 auto idxTy = builder.getIndexType(); in readExtent()
642 auto idxTy = builder.getIndexType(); in readExtents()
750 auto idxTy = builder.getIndexType(); in getFromBox()
863 auto idxTy = builder.getIndexType(); in createExtents()
914 auto idxTy = builder.getIndexType(); in componentToExtendedValue()
1037 mlir::Type idxTy = builder.getIndexType(); in genComponentByComponentAssignment()
[all …]
H A DMutableBox.cpp118 auto idxTy = builder.getIndexType(); in readShape()
293 builder.createIntegerConstant(loc, builder.getIndexType(), 1); in updateMutableProperties()
335 auto zero = builder.createIntegerConstant(loc, builder.getIndexType(), 0); in createUnallocatedBox()
539 auto idxTy = builder.getIndexType(); in associateMutableBoxWithRemap()
604 auto idxTy = builder.getIndexType(); in associateMutableBoxWithRemap()
640 auto idxTy = builder.getIndexType(); in getNewLengths()
/llvm-project-15.0.7/mlir/lib/Conversion/ShapeToStandard/
H A DShapeToStandard.cpp87 Type indexTy = lb.getIndexType(); in getBroadcastedDim()
132 Type indexTy = lb.getIndexType(); in matchAndRewrite()
197 RankedTensorType::get({op.getShape().size()}, rewriter.getIndexType()); in matchAndRewrite()
247 Type indexTy = lb.getIndexType(); in matchAndRewrite()
352 rewriter.replaceOpWithNewOp<tensor::ExtractOp>(op, rewriter.getIndexType(), in matchAndRewrite()
403 Type indexTy = rewriter.getIndexType(); in matchAndRewrite()
486 Type indexTy = rewriter.getIndexType(); in matchAndRewrite()
572 loc, RankedTensorType::get({rank}, rewriter.getIndexType()), in matchAndRewrite()
/llvm-project-15.0.7/flang/lib/Lower/
H A DVectorSubscripts.cpp86 mlir::Type idxTy = builder.getIndexType(); in gen()
165 mlir::Type idxTy = builder.getIndexType(); in genRankedArrayRefSubscriptAndBase()
324 mlir::Type idxTy = builder.getIndexType(); in createSlice()
353 mlir::Type idxTy = builder.getIndexType(); in genLoopBounds()
388 mlir::Type idxTy = builder.getIndexType(); in getElementAt()
/llvm-project-15.0.7/mlir/lib/Conversion/MemRefToLLVM/
H A DMemRefToLLVM.cpp42 return LLVM::lookupOrCreateGenericAllocFn(module, getIndexType()); in getAllocFn()
44 return LLVM::lookupOrCreateMallocFn(module, getIndexType()); in getAllocFn()
152 return LLVM::lookupOrCreateAlignedAllocFn(module, getIndexType()); in getAllocFn()
391 getTypeConverter()->getIndexType(), addressSpace); in extractSizeOfUnrankedMemRef()
830 loc, getIndexType(), rewriter.getIndexAttr(rank)); in rewrite()
880 loc, getIndexType(), rewriter.getIndexAttr(1)); in lowerToMemCopyIntrinsic()
943 auto one = rewriter.create<LLVM::ConstantOp>(loc, getIndexType(), in lowerToMemCopyFunctionCall()
959 loc, getIndexType(), rewriter.getIndexAttr(typeSize)); in lowerToMemCopyFunctionCall()
1188 Type indexType = getIndexType(); in convertSourceMemRefToDescriptor()
1261 Type indexType = getTypeConverter()->getIndexType(); in convertSourceMemRefToDescriptor()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h166 IntegerType *getIndexType() const { in getIndexType() function
172 return ConstantInt::get(getIndexType(), Value); in getIndex()
/llvm-project-15.0.7/mlir/include/mlir/Conversion/MemRefToLLVM/
H A DAllocLikeConversion.h19 using ConvertToLLVMPattern::getIndexType;
/llvm-project-15.0.7/mlir/lib/IR/
H A DBuilders.cpp48 IndexType Builder::getIndexType() { return IndexType::get(context); } in getIndexType() function in Builder
96 return IntegerAttr::get(getIndexType(), APInt(64, value)); in getIndexAttr()
123 VectorType::get(static_cast<int64_t>(values.size()), getIndexType()), in getIndexVectorAttr()
144 getIndexType()), in getIndexTensorAttr()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DNativeTypeArray.cpp47 return Session.getSymbolCache().findSymbolByTypeIndex(Record.getIndexType()); in getArrayIndexTypeId()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/IR/
H A DAffineOps.cpp458 auto indexTy = parser.getBuilder().getIndexType(); in parseDimAndSymbolList()
495 auto indexTy = builder.getIndexType(); in parse()
730 b.getIndexType(), loc)); in materializeConstants()
1622 inductionVariable.type = builder.getIndexType(); in parse()
2573 auto indexTy = builder.getIndexType(); in parse()
2714 auto indexTy = parser.getBuilder().getIndexType(); in parse()
2805 auto indexType = builder.getIndexType(); in parseAffineMinMaxOp()
3131 auto indexTy = builder.getIndexType(); in parse()
3740 auto indexType = builder.getIndexType(); in parse()
3891 auto indexTy = builder.getIndexType(); in parse()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/Transforms/
H A DSPIRVConversion.h70 Type getIndexType() const;
/llvm-project-15.0.7/mlir/lib/Conversion/TensorToSPIRV/
H A DTensorToSPIRV.cpp81 auto indexType = typeConverter.getIndexType(); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/FuncToLLVM/
H A DFuncToLLVM.cpp226 loc, typeConverter.convertType(builder.getIndexType()), in wrapExternalFunction()
227 builder.getIntegerAttr(builder.getIndexType(), 1)); in wrapExternalFunction()
253 loc, typeConverter.convertType(builder.getIndexType()), in wrapExternalFunction()
254 builder.getIntegerAttr(builder.getIndexType(), 1)); in wrapExternalFunction()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/Utils/
H A DLocal.h32 Type *IntIdxTy = DL.getIndexType(GEP->getType());
/llvm-project-15.0.7/mlir/lib/Dialect/Tensor/Utils/
H A DUtils.cpp28 SmallVector<Type> blockArgTypes(rank, builder.getIndexType()); in createPadScalarOp()
/llvm-project-15.0.7/mlir/lib/Dialect/Async/Transforms/
H A DAsyncParallelFor.cpp220 Type indexTy = rewriter.getIndexType(); in getParallelComputeFunctionType()
476 inputTypes.push_back(rewriter.getIndexType()); // add blockStart argument in createAsyncDispatchFunction()
493 Type indexTy = b.getIndexType(); in createAsyncDispatchFunction()
700 b.create<AddToGroupOp>(rewriter.getIndexType(), execute.token(), group); in doSequentialDispatch()
849 b.create<arith::IndexCastOp>(b.getIndexType(), scaledNumInt); in matchAndRewrite()

12345