Home
last modified time | relevance | path

Searched refs:AddOp (Results 1 – 25 of 62) sorted by relevance

123

/llvm-project-15.0.7/mlir/lib/Conversion/AMDGPUToROCDL/
H A DAMDGPUToROCDL.cpp199 voffset ? rewriter.create<LLVM::AddOp>(loc, voffset, index) : index; in matchAndRewrite()
205 voffset ? rewriter.create<LLVM::AddOp>(loc, voffset, extraOffsetConst) in matchAndRewrite()
214 sgprOffset = rewriter.create<LLVM::AddOp>( in matchAndRewrite()
217 sgprOffset = rewriter.create<LLVM::AddOp>( in matchAndRewrite()
/llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/
H A DDialect.cpp227 void AddOp::build(mlir::OpBuilder &builder, mlir::OperationState &state, in build()
233 mlir::ParseResult AddOp::parse(mlir::OpAsmParser &parser, in parse()
238 void AddOp::print(mlir::OpAsmPrinter &p) { printBinaryOp(p, *this); } in print()
242 void AddOp::inferShapes() { getResult().setType(getOperand(0).getType()); } in inferShapes()
/llvm-project-15.0.7/mlir/examples/toy/Ch4/mlir/
H A DDialect.cpp227 void AddOp::build(mlir::OpBuilder &builder, mlir::OperationState &state, in build()
233 mlir::ParseResult AddOp::parse(mlir::OpAsmParser &parser, in parse()
238 void AddOp::print(mlir::OpAsmPrinter &p) { printBinaryOp(p, *this); } in print()
242 void AddOp::inferShapes() { getResult().setType(getOperand(0).getType()); } in inferShapes()
/llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/
H A DDialect.cpp227 void AddOp::build(mlir::OpBuilder &builder, mlir::OperationState &state, in build()
233 mlir::ParseResult AddOp::parse(mlir::OpAsmParser &parser, in parse()
238 void AddOp::print(mlir::OpAsmPrinter &p) { printBinaryOp(p, *this); } in print()
242 void AddOp::inferShapes() { getResult().setType(getOperand(0).getType()); } in inferShapes()
/llvm-project-15.0.7/mlir/test/python/dialects/
H A Dtosa.py8 assert tosa.AddOp
H A Dcomplex_dialect.py25 return mlir_complex.AddOp(arg, arg)
/llvm-project-15.0.7/mlir/examples/toy/Ch3/mlir/
H A DDialect.cpp165 void AddOp::build(mlir::OpBuilder &builder, mlir::OperationState &state, in build()
171 mlir::ParseResult AddOp::parse(mlir::OpAsmParser &parser, in parse()
176 void AddOp::print(mlir::OpAsmPrinter &p) { printBinaryOp(p, *this); } in print()
/llvm-project-15.0.7/mlir/examples/toy/Ch2/mlir/
H A DDialect.cpp165 void AddOp::build(mlir::OpBuilder &builder, mlir::OperationState &state, in build()
171 mlir::ParseResult AddOp::parse(mlir::OpAsmParser &parser, in parse()
176 void AddOp::print(mlir::OpAsmPrinter &p) { printBinaryOp(p, *this); } in print()
/llvm-project-15.0.7/mlir/lib/Conversion/ComplexToLLVM/
H A DComplexToLLVM.cpp163 struct AddOpConversion : public ConvertOpToLLVMPattern<complex::AddOp> {
164 using ConvertOpToLLVMPattern<complex::AddOp>::ConvertOpToLLVMPattern;
167 matchAndRewrite(complex::AddOp op, OpAdaptor adaptor, in matchAndRewrite()
171 unpackBinaryComplexOperands<complex::AddOp>(op, adaptor, rewriter); in matchAndRewrite()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/
H A DDialect.cpp254 void AddOp::build(mlir::OpBuilder &builder, mlir::OperationState &state, in build()
260 mlir::ParseResult AddOp::parse(mlir::OpAsmParser &parser, in parse()
265 void AddOp::print(mlir::OpAsmPrinter &p) { printBinaryOp(p, *this); } in print()
269 void AddOp::inferShapes() { getResult().setType(getOperand(0).getType()); } in inferShapes()
/llvm-project-15.0.7/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp583 SDValue AddOp; in isADDADDMUL() local
586 AddOp = N0; in isADDADDMUL()
589 AddOp = N1; in isADDADDMUL()
602 Addend0 = AddOp.getOperand(0); in isADDADDMUL()
603 Addend1 = AddOp.getOperand(1); in isADDADDMUL()
610 Mul0 = AddOp.getOperand(0).getOperand(0); in isADDADDMUL()
611 Mul1 = AddOp.getOperand(0).getOperand(1); in isADDADDMUL()
612 Addend0 = AddOp.getOperand(1); in isADDADDMUL()
620 Mul0 = AddOp.getOperand(1).getOperand(0); in isADDADDMUL()
621 Mul1 = AddOp.getOperand(1).getOperand(1); in isADDADDMUL()
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/MemRefToLLVM/
H A DAllocLikeConversion.cpp19 Value bumped = rewriter.create<LLVM::AddOp>(loc, input, bump); in createAligned()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/
H A DTosaCanonicalizations.cpp163 struct AddZeroOptimization : public OpRewritePattern<tosa::AddOp> {
166 LogicalResult matchAndRewrite(tosa::AddOp op, in matchAndRewrite()
195 void AddOp::getCanonicalizationPatterns(RewritePatternSet &results, in getCanonicalizationPatterns()
/llvm-project-15.0.7/mlir/examples/toy/Ch3/include/toy/
H A DOps.td89 // AddOp
92 def AddOp : Toy_Op<"add", [NoSideEffect]> {
105 // Allow building an AddOp with from the two input operands.
/llvm-project-15.0.7/mlir/examples/toy/Ch2/include/toy/
H A DOps.td90 // AddOp
93 def AddOp : Toy_Op<"add"> {
106 // Allow building an AddOp with from the two input operands.
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaDecomposeDepthwise.cpp108 .replaceOpWithNewOp<tosa::AddOp>(op, outputShapeType, outputValue, in matchAndRewrite()
H A DTosaMakeBroadcastable.cpp245 patterns.add<ConvertTosaOp<tosa::AddOp>>(ctx); in runOnOperation()
/llvm-project-15.0.7/mlir/lib/Dialect/Complex/IR/
H A DComplexOps.cpp111 OpFoldResult AddOp::fold(ArrayRef<Attribute> operands) { in fold()
/llvm-project-15.0.7/mlir/examples/toy/Ch4/include/toy/
H A DOps.td92 // AddOp
95 def AddOp : Toy_Op<"add",
109 // Allow building an AddOp with from the two input operands.
/llvm-project-15.0.7/mlir/examples/toy/Ch6/include/toy/
H A DOps.td92 // AddOp
95 def AddOp : Toy_Op<"add",
109 // Allow building an AddOp with from the two input operands.
/llvm-project-15.0.7/mlir/examples/toy/Ch5/include/toy/
H A DOps.td92 // AddOp
95 def AddOp : Toy_Op<"add",
109 // Allow building an AddOp with from the two input operands.
/llvm-project-15.0.7/llvm/lib/TableGen/
H A DSetTheory.cpp38 struct AddOp : public SetTheory::Operator { struct
257 addOperator("add", std::make_unique<AddOp>()); in SetTheory()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/include/toy/
H A DOps.td115 // AddOp
118 def AddOp : Toy_Op<"add",
132 // Allow building an AddOp with from the two input operands.
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp1772 Instruction *AddOp = nullptr, *SubOp = nullptr; in foldAddSubSelect() local
1777 AddOp = FI; in foldAddSubSelect()
1783 AddOp = TI; in foldAddSubSelect()
1787 if (AddOp) { in foldAddSubSelect()
1789 if (SubOp->getOperand(0) == AddOp->getOperand(0)) { in foldAddSubSelect()
1790 OtherAddOp = AddOp->getOperand(1); in foldAddSubSelect()
1791 } else if (SubOp->getOperand(0) == AddOp->getOperand(1)) { in foldAddSubSelect()
1792 OtherAddOp = AddOp->getOperand(0); in foldAddSubSelect()
1802 FastMathFlags Flags = AddOp->getFastMathFlags(); in foldAddSubSelect()
1812 if (AddOp != TI) in foldAddSubSelect()
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/
H A DMemRefBuilder.cpp369 builder.create<LLVM::AddOp>(loc, indexType, doubleRank, one); in computeSizes()
374 Value allocationSize = builder.create<LLVM::AddOp>( in computeSizes()

123