| /llvm-project-15.0.7/mlir/lib/Dialect/Utils/ |
| H A D | StaticValueUtils.cpp | 78 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 D | AffineCanonicalizationUtils.cpp | 190 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 D | TensorTilingInterfaceImpl.cpp | 116 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 D | TensorOps.cpp | 1138 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 D | LoopSpecialization.cpp | 114 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 D | StaticValueUtils.h | 57 Optional<int64_t> getConstantIntValue(OpFoldResult ofr);
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/ |
| H A D | Hoisting.cpp | 60 auto getConstantIntValue = [](OpFoldResult ofr) -> llvm::Optional<int64_t> { in isEqualOffsetSizeOrStride() local 69 auto cst1 = getConstantIntValue(op1), cst2 = getConstantIntValue(op2); in isEqualOffsetSizeOrStride()
|
| H A D | Tiling.cpp | 199 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 D | Vectorization.cpp | 728 getConstantIntValue(padOp.getMixedLowPad()[i]) == in tryVectorizeCopy() 1054 return getConstantIntValue(std::get<0>(it)) == std::get<1>(it); in rewriteUser()
|
| H A D | Transforms.cpp | 153 tileSizes.push_back(getConstantIntValue(shapeSize) in scalarizeDynamicDims()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tensor/Transforms/ |
| H A D | SplitPadding.cpp | 29 if (Optional<int64_t> val = getConstantIntValue(attrOrValue)) in isZero()
|
| /llvm-project-15.0.7/mlir/include/mlir/Interfaces/ |
| H A D | ViewLikeInterface.td | 422 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 D | MipsSEISelDAGToDAG.cpp | 870 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 D | Utils.cpp | 352 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 D | CodeGen.cpp | 69 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 D | MemRefOps.cpp | 2489 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 D | TensorOps.td | 1023 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 D | LegalizeDAG.cpp | 346 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 D | SelectionDAGISel.cpp | 3306 const ConstantInt *Val=cast<ConstantSDNode>(Imm)->getConstantIntValue(); in SelectCodeCommon()
|
| H A D | LegalizeIntegerTypes.cpp | 5601 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 D | SelectionDAGNodes.h | 1582 const ConstantInt *getConstantIntValue() const { return Value; }
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86ISelDAGToDAG.cpp | 3909 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 D | HexagonISelLowering.cpp | 2396 const ConstantInt *CI = CN->getConstantIntValue(); in getBuildVectorConstInts()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Vector/IR/ |
| H A D | VectorOps.cpp | 3830 return getConstantIntValue(value) == static_cast<int64_t>(0); in matchAndRewrite()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelDAGToDAG.cpp | 5236 getConstantIntValue(), dl, in Select()
|