Home
last modified time | relevance | path

Searched refs:ConstOp (Results 1 – 13 of 13) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaDecomposeTransposeConv.cpp200 Value weightPaddingVal = createOpAndInfer<tosa::ConstOp>( in matchAndRewrite()
230 Value transposeWeightVal = rewriter.create<tosa::ConstOp>( in matchAndRewrite()
264 Value inputPaddingVal = createOpAndInfer<tosa::ConstOp>( in matchAndRewrite()
280 auto zeroBias = rewriter.create<tosa::ConstOp>( in matchAndRewrite()
325 Value transposeConvVal = rewriter.create<tosa::ConstOp>( in matchAndRewrite()
H A DTosaFoldConstantTranspose.cpp80 rewriter.replaceOpWithNewOp<tosa::ConstOp>( in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/TosaToArith/
H A DTosaToArithPass.cpp33 target.addIllegalOp<tosa::ConstOp>(); in runOnOperation()
H A DTosaToArith.cpp25 class ConstOpConverter : public OpRewritePattern<tosa::ConstOp> {
27 using OpRewritePattern<tosa::ConstOp>::OpRewritePattern;
29 LogicalResult matchAndRewrite(tosa::ConstOp op, in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DRelLookupTableConverter.cpp70 Constant *ConstOp = cast<Constant>(&Op); in shouldConvertToRelLookupTable() local
76 if (!IsConstantOffsetFromGlobal(ConstOp, GVOp, Offset, DL)) in shouldConvertToRelLookupTable()
/llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/
H A DTosaToLinalgPass.cpp51 target.addLegalOp<tosa::ConstOp>(); in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/
H A DTosaCanonicalizations.cpp108 rewriter.replaceOpWithNewOp<tosa::ConstOp>(op, outputAttr.getType(), in matchAndRewrite()
281 auto constantVal = rewriter.create<tosa::ConstOp>( in matchAndRewrite()
446 OpFoldResult ConstOp::fold(ArrayRef<Attribute> operands) { in fold()
H A DTosaOps.cpp93 return builder.create<tosa::ConstOp>(loc, type, value.cast<ElementsAttr>()); in materializeConstant()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Tosa/
H A DTosaTestPasses.cpp90 rewriter.create<tosa::ConstOp>(op->getLoc(), dstQConstType, inputElems); in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstants.cpp577 const Constant *ConstOp = dyn_cast<Constant>(Op); in ConstHasGlobalValuePredicate() local
578 if (!ConstOp) in ConstHasGlobalValuePredicate()
580 if (Visited.insert(ConstOp).second) in ConstHasGlobalValuePredicate()
581 WorkList.push_back(ConstOp); in ConstHasGlobalValuePredicate()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DDependenceAnalysis.cpp2399 const SCEVConstant *ConstOp = getConstantPart(Product); in gcdMIVtest() local
2400 if (!ConstOp) in gcdMIVtest()
2402 APInt ConstOpValue = ConstOp->getAPInt(); in gcdMIVtest()
H A DInstructionSimplify.cpp4183 if (Constant *ConstOp = dyn_cast<Constant>(NewOp)) in simplifyWithOpReplaced() local
4184 ConstOps.push_back(ConstOp); in simplifyWithOpReplaced()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp954 ConstantSDNode *ConstOp; in combineShiftToAVG() local
955 if ((ConstOp = isConstOrConstSplat(Op1, DemandedElts)) && in combineShiftToAVG()
956 ConstOp->isOne()) { in combineShiftToAVG()
961 if ((ConstOp = isConstOrConstSplat(Op2, DemandedElts)) && in combineShiftToAVG()
962 ConstOp->isOne()) { in combineShiftToAVG()
967 if ((ConstOp = isConstOrConstSplat(Op3, DemandedElts)) && in combineShiftToAVG()
968 ConstOp->isOne()) { in combineShiftToAVG()