Home
last modified time | relevance | path

Searched refs:isIndex (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGBlocks.h175 bool isIndex() const { return (Data & 1) != 0; } in isIndex() function
176 bool isConstant() const { return !isIndex(); } in isConstant()
179 assert(isIndex()); in getIndex()
183 assert(isIndex()); in getOffset()
187 assert(isIndex()); in getCleanup()
191 assert(isIndex()); in setCleanup()
/llvm-project-15.0.7/mlir/lib/IR/
H A DTypes.cpp28 bool Type::isIndex() const { return isa<IndexType>(); } in isIndex() function in Type
85 bool Type::isIntOrIndex() const { return isa<IntegerType>() || isIndex(); } in isIntOrIndex()
89 bool Type::isIntOrIndexOrFloat() const { return isIntOrFloat() || isIndex(); } in isIntOrIndexOrFloat()
H A DAttributeDetail.h38 if (eltType.isIndex()) in getDenseElementBitWidth()
H A DBuilders.cpp171 if (type.isIndex()) in getIntegerAttr()
H A DBuiltinAttributes.cpp350 assert((getType().isIndex() || getType().isSignlessInteger()) && in getInt()
1152 if (type.isIndex()) in isValidIntOrFloat()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/Utils/
H A DUtils.cpp67 bool targetIsIndex = targetType.isIndex(); in getValueOrCreateCastToIndexLike()
68 bool valueIsIndex = value.getType().isIndex(); in getValueOrCreateCastToIndexLike()
/llvm-project-15.0.7/mlir/lib/Conversion/SPIRVCommon/
H A DPattern.h33 !op.getType().isIndex() && dstType != op.getType()) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Affine/
H A DTestAffineLoopParametricTiling.cpp61 assert(blockArgument.getType().isIndex() && in getTilingParameters()
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DInferIntRangeInterface.cpp30 if (type.isIndex()) in getStorageBitwidth()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DHoistPadding.cpp265 if (operand.getType().isIndex()) in dropNonIndexDependencies()
318 [](Type type) { return !type.isIndex(); })) { in dropNonIndexDependencies()
H A DDecomposeLinalgOps.cpp134 if (elementType.isIndex()) in getZero()
/llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Transforms/
H A DCodegenUtils.cpp38 if (tp.isIndex()) in overheadTypeEncoding()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Quant/
H A DQuantTypes.h184 using Type::isIndex;
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DTypes.h123 bool isIndex() const;
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/IR/
H A DAffineOps.cpp262 if (!value.getType().isIndex()) in isValidDim()
282 if (!value.getType().isIndex()) in isValidDim()
362 if (!value.getType().isIndex()) in isValidSymbol()
388 if (!value.getType().isIndex()) in isValidSymbol()
1320 if (!idx.getType().isIndex()) in verifyInvariantsImpl()
1326 if (!idx.getType().isIndex()) in verifyInvariantsImpl()
1332 if (!idx.getType().isIndex()) in verifyInvariantsImpl()
1410 if (!idx.getType().isIndex()) in verifyInvariantsImpl()
1494 if (body->getNumArguments() == 0 || !body->getArgument(0).getType().isIndex()) in verifyRegions()
2622 if (!idx.getType().isIndex()) in verifyMemoryOpIndexing()
/llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/IR/
H A DSparseTensorDialect.cpp206 if ((width == 0 && etp.isIndex()) || (width > 0 && etp.isInteger(width))) in isMatchingWidth()
/llvm-project-15.0.7/mlir/lib/Dialect/MemRef/IR/
H A DMemRefOps.cpp1091 [](Type t) { return t.isIndex(); })) in verify()
1103 [](Type t) { return t.isIndex(); })) in verify()
1107 if (!getNumElements().getType().isIndex()) in verify()
1119 [](Type t) { return t.isIndex(); })) in verify()
1130 if (!getStride().getType().isIndex() || in verify()
1131 !getNumElementsPerStride().getType().isIndex()) in verify()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DAttributeParser.cpp355 unsigned width = type.isIndex() ? IndexType::kInternalStorageBitWidth in buildAttributeAPInt()
380 } else if ((type.isSignedInteger() || type.isIndex()) && in buildAttributeAPInt()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Utils/
H A DUtils.cpp294 assert(dividend.getType().isIndex() && "expected index-typed value"); in ceilDivPositive()
309 assert(dividend.getType().isIndex() && "expected index-typed value"); in ceilDivPositive()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/
H A DArithmeticOps.cpp185 return constOp.getType().isIndex(); in classof()
1166 return (srcType.isIndex() && dstType.isSignlessInteger()) || in areCastCompatible()
1167 (srcType.isSignlessInteger() && dstType.isIndex()); in areCastCompatible()
/llvm-project-15.0.7/mlir/lib/Target/Cpp/
H A DTranslateToCpp.cpp338 if (t.getType().isIndex()) { in printOperation()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/TransformOps/
H A DLinalgTransformOps.cpp701 !op->getResult(0).getType().isIndex()) { in apply()
/llvm-project-15.0.7/mlir/lib/Dialect/Tensor/IR/
H A DTensorOps.cpp587 [](Type ty) { return ty.isIndex(); })) in verifyRegions()
1851 if (!en.value().isIndex()) in verifyRegions()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Utils/
H A DUtils.cpp221 assert(value.getType().isIndex() && "expect value to have index type"); in getUpperBoundForIndex()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/IR/
H A DSCF.cpp322 if (!body->getArgument(0).getType().isIndex()) in verifyRegions()
2175 if (!arg.getType().isIndex()) in verify()

12