Home
last modified time | relevance | path

Searched refs:getLhs (Results 1 – 25 of 41) sorted by relevance

12

/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/
H A DArithmeticOps.cpp196 return getLhs(); in fold()
228 return getLhs(); in fold()
267 return getLhs(); in fold()
290 return getLhs(); in fold()
325 return getLhs(); in fold()
351 return getLhs(); in fold()
400 return getLhs(); in fold()
499 return getLhs(); in fold()
512 return getLhs(); in fold()
529 return getLhs(); in fold()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Complex/IR/
H A DComplexOps.cpp115 if (auto sub = getLhs().getDefiningOp<SubOp>()) in fold()
117 return sub.getLhs(); in fold()
121 if (getLhs() == sub.getRhs()) in fold()
122 return sub.getLhs(); in fold()
/llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToLLVM/
H A DArithmeticToLLVM.cpp166 auto operandType = adaptor.getLhs().getType(); in matchAndRewrite()
174 adaptor.getLhs(), adaptor.getRhs()); in matchAndRewrite()
189 adaptor.getLhs(), adaptor.getRhs()); in matchAndRewrite()
201 auto operandType = adaptor.getLhs().getType(); in matchAndRewrite()
209 adaptor.getLhs(), adaptor.getRhs()); in matchAndRewrite()
224 adaptor.getLhs(), adaptor.getRhs()); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/AMX/Transforms/
H A DLegalizeForLLVMExport.cpp170 adaptor.getLhs(), adaptor.getRhs()); in matchAndRewrite()
195 adaptor.getLhs(), adaptor.getRhs()); in matchAndRewrite()
199 adaptor.getLhs(), adaptor.getRhs()); in matchAndRewrite()
203 adaptor.getLhs(), adaptor.getRhs()); in matchAndRewrite()
207 adaptor.getLhs(), adaptor.getRhs()); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/Transforms/
H A DExpandOps.cpp33 Value a = op.getLhs(); in matchAndRewrite()
56 Value a = op.getLhs(); in matchAndRewrite()
108 Value a = op.getLhs(); in matchAndRewrite()
156 Value lhs = op.getLhs(); in matchAndRewrite()
181 Value lhs = op.getLhs(); in matchAndRewrite()
H A DUnsignedWhenEquivalent.cpp99 op.getLhs(), op.getRhs()); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToSPIRV/
H A DArithmeticToSPIRV.cpp669 Type srcType = op.getLhs().getType(); in matchAndRewrite()
678 rewriter.replaceOpWithNewOp<spirv::LogicalEqualOp>(op, adaptor.getLhs(), in matchAndRewrite()
683 rewriter.replaceOpWithNewOp<spirv::LogicalNotEqualOp>(op, adaptor.getLhs(), in matchAndRewrite()
697 rewriter.create<arith::ExtUIOp>(op.getLoc(), type, adaptor.getLhs()); in matchAndRewrite()
718 Type srcType = op.getLhs().getType(); in matchAndRewrite()
733 rewriter.replaceOpWithNewOp<spirvOp>(op, adaptor.getLhs(), \ in matchAndRewrite()
763 rewriter.replaceOpWithNewOp<spirvOp>(op, adaptor.getLhs(), \ in matchAndRewrite()
798 rewriter.replaceOpWithNewOp<spirv::OrderedOp>(op, adaptor.getLhs(), in matchAndRewrite()
804 rewriter.replaceOpWithNewOp<spirv::UnorderedOp>(op, adaptor.getLhs(), in matchAndRewrite()
825 Value lhsIsNan = rewriter.create<spirv::IsNanOp>(loc, adaptor.getLhs()); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/ComplexToStandard/
H A DComplexToStandard.cpp59 Value lhs = adaptor.getLhs(); in matchAndRewrite()
101 auto type = adaptor.getLhs() in matchAndRewrite()
131 auto type = adaptor.getLhs().getType().template cast<ComplexType>(); in matchAndRewrite()
135 Value realLhs = b.create<complex::ReOp>(elementType, adaptor.getLhs()); in matchAndRewrite()
139 Value imagLhs = b.create<complex::ImOp>(elementType, adaptor.getLhs()); in matchAndRewrite()
221 auto type = adaptor.getLhs().getType().cast<ComplexType>(); in matchAndRewrite()
225 rewriter.create<complex::ReOp>(loc, elementType, adaptor.getLhs()); in matchAndRewrite()
227 rewriter.create<complex::ImOp>(loc, elementType, adaptor.getLhs()); in matchAndRewrite()
532 auto type = adaptor.getLhs().getType().cast<ComplexType>(); in matchAndRewrite()
535 Value lhsReal = b.create<complex::ReOp>(elementType, adaptor.getLhs()); in matchAndRewrite()
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/MathToSPIRV/
H A DMathToSPIRV.cpp103 rewriter.create<spirv::BitcastOp>(loc, intType, adaptor.getLhs()); in matchAndRewrite()
226 spirv::ConstantOp::getZero(adaptor.getLhs().getType(), loc, rewriter); in matchAndRewrite()
228 rewriter.create<spirv::FOrdLessThanOp>(loc, adaptor.getLhs(), zero); in matchAndRewrite()
229 Value abs = rewriter.create<spirv::GLFAbsOp>(loc, adaptor.getLhs()); in matchAndRewrite()
/llvm-project-15.0.7/flang/lib/Optimizer/Transforms/
H A DAffinePromotion.cpp208 mlir::AffineExprKind::Add, toAffineExpr(op.getLhs()), in toAffineExpr()
212 return affineBinaryOp(mlir::AffineExprKind::Add, op.getLhs(), in toAffineExpr()
215 return affineBinaryOp(mlir::AffineExprKind::Mul, op.getLhs(), in toAffineExpr()
218 return affineBinaryOp(mlir::AffineExprKind::Mod, op.getLhs(), in toAffineExpr()
234 auto lhsAffine = toAffineExpr(cmpOp.getLhs()); in fromCmpIOp()
/llvm-project-15.0.7/mlir/lib/Conversion/VectorToGPU/
H A DVectorToGPU.cpp285 Value lhs = op.getLhs(), rhs = op.getRhs(), res = op.getAcc(); in matchAndRewrite()
385 if (contract.getLhs() == op.getResult()) in inferFragType()
672 Value opA = valueMapping.find(op.getLhs())->second; in convertContractOp()
684 Value opA = valueMapping.find(op.getLhs())->second; in convertContractOpToMmaSync()
687 int64_t m = op.getLhs().getType().cast<VectorType>().getShape()[0]; in convertContractOpToMmaSync()
689 int64_t k = op.getLhs().getType().cast<VectorType>().getShape()[1]; in convertContractOpToMmaSync()
H A DNvGpuSupport.cpp75 if (contract.getLhs() == op->getResult(0)) { in getWarpMatrixInfo()
280 Value lhs = op.getLhs(); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Math/Transforms/
H A DAlgebraicSimplification.cpp44 Value x = op.getLhs(); in matchAndRewrite()
/llvm-project-15.0.7/flang/unittests/Optimizer/Builder/
H A DDoLoopHelperTest.cpp52 EXPECT_EQ(c10, subOp.getLhs()); in TEST_F()
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/Transforms/
H A DOptimizeForNVVM.cpp54 Value lhs = rewriter.create<LLVM::FPExtOp>(loc, f32Type, op.getLhs()); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/
H A DVectorTransforms.cpp554 Optional<Value> mult = createContractArithOp(loc, op.getLhs(), b, acc, in matchAndRewrite()
567 rewriter.create<vector::ExtractOp>(loc, eltType, op.getLhs(), pos); in matchAndRewrite()
668 Value newLhs = contractOp.getLhs(); in matchAndRewrite()
1039 Value lhs = contractOp.getLhs(); in matchAndRewrite()
1096 Value lhs = contractOp.getLhs(); in matchAndRewrite()
1387 Value lhs = op.getLhs(); in matchAndRewrite()
1464 kind(op.getKind()), lhs(op.getLhs()), rhs(op.getRhs()), in UnrolledOuterProductGenerator()
1656 Value lhs = op.getLhs(), rhs = op.getRhs(); in matchAndRewrite()
1917 auto lhs = reshapeLoad(loc, op.getLhs(), lhsType, lhsIndex, d, rewriter); in lowerParallel()
1966 Value m = createMul(loc, op.getLhs(), op.getRhs(), isInt, rewriter); in lowerReduction()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Dialect/AMX/
H A DAMX.td197 return getLhs().getType().cast<VectorType>();
238 return getLhs().getType().cast<VectorType>();
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToOpenMP/
H A DSCFToOpenMP.cpp116 bool sameOperands = select.getOperand(kTrueValue) == compare.getLhs() && in matchSelectReduction()
119 select.getOperand(kFalseValue) == compare.getLhs(); in matchSelectReduction()
/llvm-project-15.0.7/flang/unittests/Optimizer/Builder/Runtime/
H A DNumericTest.cpp66 EXPECT_EQ(s, cmpOp.getLhs()); in testGenNearest()
/llvm-project-15.0.7/mlir/lib/Dialect/Shape/IR/
H A DShape.cpp417 return getLhs(); in fold()
1460 if (getLhs() == getRhs()) in fold()
1461 return getLhs(); in fold()
1492 if (getLhs() == getRhs()) in fold()
1493 return getLhs(); in fold()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DLowerToAffineLoops.cpp118 loc, binaryAdaptor.getLhs(), loopIvs); in matchAndRewrite()
/llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/
H A DLowerToAffineLoops.cpp118 loc, binaryAdaptor.getLhs(), loopIvs); in matchAndRewrite()
/llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/
H A DLowerToAffineLoops.cpp118 loc, binaryAdaptor.getLhs(), loopIvs); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/VectorToLLVM/
H A DConvertVectorToLLVM.cpp160 adaptor.getLhs(), adaptor.getRhs(), matmulOp.getLhsRows(), in matchAndRewrite()
722 fmaOp, adaptor.getLhs(), adaptor.getRhs(), adaptor.getAcc()); in matchAndRewrite()
873 Value extrLHS = rewriter.create<ExtractOp>(loc, op.getLhs(), i); in matchAndRewrite()
/llvm-project-15.0.7/clang/include/clang/Tooling/Syntax/
H A DNodes.h202 Expression *getLhs();

12