Home
last modified time | relevance | path

Searched refs:NegOp (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineNegator.cpp294 Value *NegOp = negate(I->getOperand(0), Depth + 1); in visitImpl() local
295 if (!NegOp) // Early return. in visitImpl()
297 return Builder.CreateFreeze(NegOp, I->getName() + ".neg"); in visitImpl()
374 Value *NegOp = negate(I->getOperand(0), Depth + 1); in visitImpl() local
375 if (!NegOp) // Early return. in visitImpl()
377 return Builder.CreateTrunc(NegOp, I->getType(), I->getName() + ".neg"); in visitImpl()
409 if (Value *NegOp = negate(Op, Depth + 1)) { in visitImpl() local
410 NegatedOps.emplace_back(NegOp); // Successfully negated operand! in visitImpl()
/llvm-project-15.0.7/mlir/lib/Dialect/Complex/IR/
H A DComplexOps.cpp131 OpFoldResult NegOp::fold(ArrayRef<Attribute> operands) { in fold()
135 if (auto negOp = getOperand().getDefiningOp<NegOp>()) in fold()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Complex/IR/
H A DComplexOps.td356 // NegOp
359 def NegOp : ComplexUnaryOp<"neg", [SameOperandsAndResultType]> {
/llvm-project-15.0.7/mlir/lib/Conversion/ComplexToStandard/
H A DComplexToStandard.cpp702 struct NegOpConversion : public OpConversionPattern<complex::NegOp> {
703 using OpConversionPattern<complex::NegOp>::OpConversionPattern;
706 matchAndRewrite(complex::NegOp op, OpAdaptor adaptor, in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Utils/
H A DMerger.cpp928 if (isa<complex::NegOp>(def)) in buildTensorExp()
1112 return rewriter.create<complex::NegOp>(loc, v0); in buildExp()
/llvm-project-15.0.7/mlir/python/mlir/dialects/linalg/opdsl/lang/
H A Demitter.py413 return complex.NegOp(x).result
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGBuiltin.cpp2540 Value *NegOp = Builder.CreateNSWNeg(ArgValue, "neg"); in EmitBuiltinExpr() local
2543 Value *Result = Builder.CreateSelect(CmpResult, NegOp, ArgValue, "abs"); in EmitBuiltinExpr()