Home
last modified time | relevance | path

Searched refs:getConstantIntValue (Results 1 – 25 of 29) sorted by relevance

12

/llvm-project-15.0.7/mlir/lib/Dialect/Utils/
H A DStaticValueUtils.cpp78 Optional<int64_t> getConstantIntValue(OpFoldResult ofr) { in getConstantIntValue() function
95 auto val = getConstantIntValue(ofr); in isConstantIntValue()
104 auto cst1 = getConstantIntValue(ofr1), cst2 = getConstantIntValue(ofr2); in isEqualConstantIntOrValue()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Utils/
H A DAffineCanonicalizationUtils.cpp190 if (!newOperands[i] || getConstantIntValue(newOperands[i])) in canonicalizeMinMaxOp()
208 auto stepInt = getConstantIntValue(step); in addLoopRangeConstraints()
221 Optional<int64_t> lbInt = getConstantIntValue(lb); in addLoopRangeConstraints()
222 Optional<int64_t> ubInt = getConstantIntValue(ub); in addLoopRangeConstraints()
327 if (auto constUb = getConstantIntValue(ub)) in rewritePeeledMinMaxOp()
329 if (auto constStep = getConstantIntValue(step)) in rewritePeeledMinMaxOp()
/llvm-project-15.0.7/mlir/lib/Dialect/Tensor/IR/
H A DTensorTilingInterfaceImpl.cpp116 if (auto constInt = getConstantIntValue(val)) { in bubbleUpPadSlice()
138 bool hasLowPad = getConstantIntValue(low) != static_cast<int64_t>(0); in bubbleUpPadSlice()
141 bool hasHighPad = getConstantIntValue(high) != static_cast<int64_t>(0); in bubbleUpPadSlice()
197 if (auto newLengthInt = getConstantIntValue(newLength)) { in bubbleUpPadSlice()
H A DTensorOps.cpp1138 Optional<int64_t> sizeVal = getConstantIntValue(size.value()); in getDroppedDims()
1388 if (getConstantIntValue(ofr) != static_cast<int64_t>(0)) in foldIdentityOffsetSizeAndStrideOpInterface()
1394 if (getConstantIntValue(std::get<0>(it)) != std::get<1>(it)) in foldIdentityOffsetSizeAndStrideOpInterface()
1397 if (getConstantIntValue(ofr) != static_cast<int64_t>(1)) in foldIdentityOffsetSizeAndStrideOpInterface()
1742 getConstantIntValue(insertSliceOp.getMixedSizes()[i])) in matchAndRewrite()
1944 if (getConstantIntValue(en.value()) != static_cast<int64_t>(0)) in getPaddedDims()
2135 (getConstantIntValue(innerOffset) == static_cast<int64_t>(0))) { in matchAndRewrite()
2140 (getConstantIntValue(outerOffset) == static_cast<int64_t>(0))) { in matchAndRewrite()
2161 if (getConstantIntValue(sliceSize) != sourceSize) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Transforms/
H A DLoopSpecialization.cpp114 auto lbInt = getConstantIntValue(forOp.getLowerBound()); in peelForLoop()
115 auto ubInt = getConstantIntValue(forOp.getUpperBound()); in peelForLoop()
116 auto stepInt = getConstantIntValue(forOp.getStep()); in peelForLoop()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Utils/
H A DStaticValueUtils.h57 Optional<int64_t> getConstantIntValue(OpFoldResult ofr);
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DHoisting.cpp60 auto getConstantIntValue = [](OpFoldResult ofr) -> llvm::Optional<int64_t> { in isEqualOffsetSizeOrStride() local
69 auto cst1 = getConstantIntValue(op1), cst2 = getConstantIntValue(op2); in isEqualOffsetSizeOrStride()
H A DTiling.cpp199 Optional<int64_t> tileSizeConst = getConstantIntValue(tileSize); in canOmitTileOffsetInBoundsCheck()
200 Optional<int64_t> numThreadsConst = getConstantIntValue(numThreads); in canOmitTileOffsetInBoundsCheck()
201 Optional<int64_t> iterSizeConst = getConstantIntValue(iterationSize); in canOmitTileOffsetInBoundsCheck()
H A DVectorization.cpp728 getConstantIntValue(padOp.getMixedLowPad()[i]) == in tryVectorizeCopy()
1054 return getConstantIntValue(std::get<0>(it)) == std::get<1>(it); in rewriteUser()
H A DTransforms.cpp153 tileSizes.push_back(getConstantIntValue(shapeSize) in scalarizeDynamicDims()
/llvm-project-15.0.7/mlir/lib/Dialect/Tensor/Transforms/
H A DSplitPadding.cpp29 if (Optional<int64_t> val = getConstantIntValue(attrOrValue)) in isZero()
/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DViewLikeInterface.td422 return ::mlir::getConstantIntValue(ofr) == static_cast<int64_t>(1);
434 return ::mlir::getConstantIntValue(ofr) == static_cast<int64_t>(0);
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsSEISelDAGToDAG.cpp870 cast<ConstantSDNode>(Constant)->getConstantIntValue(); in trySelect()
942 cast<ConstantSDNode>(Constant)->getConstantIntValue(); in trySelect()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Utils/
H A DUtils.cpp352 return getConstantIntValue(ofr) != static_cast<int64_t>(1); in makeComposedExtractSliceOp()
405 return getConstantIntValue(ofr) != static_cast<int64_t>(0); in makeComposedPadHighOp()
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DCodeGen.cpp69 static int64_t getConstantIntValue(mlir::Value val) { in getConstantIntValue() function
1428 std::int64_t cstIndex = getConstantIntValue(componentIndex); in genBoxOffsetGep()
2329 : getConstantIntValue(op); in getFieldNumber()
2357 type = tupTy.getType(getConstantIntValue(nxtOpnd)); in supportedCoordinate()
2381 type = strTy.getType(getConstantIntValue(nxtOpnd)); in arraysHaveKnownShape()
2571 cpnTy = tupTy.getType(getConstantIntValue(nxtOpnd)); in doRewriteRefOrPtr()
/llvm-project-15.0.7/mlir/lib/Dialect/MemRef/IR/
H A DMemRefOps.cpp2489 Optional<int64_t> intValue = getConstantIntValue(ofr); in isTrivialSubViewOp()
2496 Optional<int64_t> intValue = getConstantIntValue(ofr); in isTrivialSubViewOp()
2504 Optional<int64_t> intValue = getConstantIntValue(size.value()); in isTrivialSubViewOp()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Tensor/IR/
H A DTensorOps.td1023 return getConstantIntValue(ofr) == static_cast<int64_t>(0);
1029 return getConstantIntValue(ofr) == static_cast<int64_t>(0);
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp346 SDValue CPIdx = DAG.getConstantPool(CP->getConstantIntValue(), in ExpandConstant()
1943 CV.push_back(const_cast<ConstantInt *>(V->getConstantIntValue())); in ExpandBUILD_VECTOR()
1948 const ConstantInt *CI = V->getConstantIntValue(); in ExpandBUILD_VECTOR()
H A DSelectionDAGISel.cpp3306 const ConstantInt *Val=cast<ConstantSDNode>(Imm)->getConstantIntValue(); in SelectCodeCommon()
H A DLegalizeIntegerTypes.cpp5601 if (CN->getConstantIntValue()->getValue().getActiveBits() < 64) { in ExpandIntOp_STACKMAP()
5640 if (CN->getConstantIntValue()->getValue().getActiveBits() < 64) { in ExpandIntOp_PATCHPOINT()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h1582 const ConstantInt *getConstantIntValue() const { return Value; }
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp3909 const ConstantInt *Val = cast<ConstantSDNode>(Imm)->getConstantIntValue(); in emitPCMPISTR()
3942 const ConstantInt *Val = cast<ConstantSDNode>(Imm)->getConstantIntValue(); in emitPCMPESTR()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp2396 const ConstantInt *CI = CN->getConstantIntValue(); in getBuildVectorConstInts()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/IR/
H A DVectorOps.cpp3830 return getConstantIntValue(value) == static_cast<int64_t>(0); in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp5236 getConstantIntValue(), dl, in Select()

12