Searched refs:ConstOp (Results 1 – 13 of 13) sorted by relevance
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/ |
| H A D | TosaDecomposeTransposeConv.cpp | 200 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 D | TosaFoldConstantTranspose.cpp | 80 rewriter.replaceOpWithNewOp<tosa::ConstOp>( in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/TosaToArith/ |
| H A D | TosaToArithPass.cpp | 33 target.addIllegalOp<tosa::ConstOp>(); in runOnOperation()
|
| H A D | TosaToArith.cpp | 25 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 D | RelLookupTableConverter.cpp | 70 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 D | TosaToLinalgPass.cpp | 51 target.addLegalOp<tosa::ConstOp>(); in runOnOperation()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/ |
| H A D | TosaCanonicalizations.cpp | 108 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 D | TosaOps.cpp | 93 return builder.create<tosa::ConstOp>(loc, type, value.cast<ElementsAttr>()); in materializeConstant()
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/Tosa/ |
| H A D | TosaTestPasses.cpp | 90 rewriter.create<tosa::ConstOp>(op->getLoc(), dstQConstType, inputElems); in matchAndRewrite()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Constants.cpp | 577 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 D | DependenceAnalysis.cpp | 2399 const SCEVConstant *ConstOp = getConstantPart(Product); in gcdMIVtest() local 2400 if (!ConstOp) in gcdMIVtest() 2402 APInt ConstOpValue = ConstOp->getAPInt(); in gcdMIVtest()
|
| H A D | InstructionSimplify.cpp | 4183 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 D | TargetLowering.cpp | 954 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()
|