Home
last modified time | relevance | path

Searched refs:arith (Results 1 – 25 of 971) sorted by relevance

12345678910>>...39

/llvm-project-15.0.7/mlir/test/Dialect/Arithmetic/
H A Dint-range-interface.mlir7 %c1 = arith.constant 1 : index
8 %c2 = arith.constant 2 : index
13 %4 = arith.addi %1, %3 : index
21 %c1 = arith.constant 1 : i32
22 %c2 = arith.constant 2 : i32
25 %2 = arith.addi %0, %1 : i32
28 %5 = arith.andi %3, %4 : i1
33 // CHECK-NOT: arith.cmpi sle
37 %c0 = arith.constant 0 : i64
45 %5 = arith.andi %3, %4 : i1
[all …]
H A Dunsigned-when-equivalent.mlir4 // CHECK: arith.divsi
5 // CHECK: arith.ceildivsi
6 // CHECK: arith.floordivsi
7 // CHECK: arith.remsi
8 // CHECK: arith.minsi
9 // CHECK: arith.maxsi
10 // CHECK: arith.extsi
11 // CHECK: arith.cmpi sle
12 // CHECK: arith.cmpi slt
13 // CHECK: arith.cmpi sge
[all …]
H A Dcanonicalize.mlir30 %c0_i64 = arith.constant 0 : i64
31 %c1_i64 = arith.constant 1 : i64
51 %c0_i1 = arith.constant false
52 %c1_i1 = arith.constant true
62 %true = arith.constant true
63 %false = arith.constant false
148 %c1 = arith.constant 1 : i64
169 %c0 = arith.constant 0 : i64
1374 %0 = arith.negf %c : f32
1382 %0 = arith.negf %f : f32
[all …]
H A Dexpand-ops.mlir7 %res = arith.ceildivsi %arg0, %arg1 : i32
37 %res = arith.ceildivsi %arg0, %arg1 : index
67 %res = arith.floordivsi %arg0, %arg1 : i32
121 %res = arith.ceildivui %arg0, %arg1 : i32
138 %res = arith.ceildivui %arg0, %arg1 : index
153 %result = arith.maxf %a, %b : f32
181 %result = arith.minf %a, %b : f32
196 %result = arith.maxsi %a, %b : i32
206 %result = arith.minsi %a, %b : i32
217 %result = arith.maxui %a, %b : i32
[all …]
/llvm-project-15.0.7/mlir/test/Transforms/
H A Dconstant-fold.mlir11 %0 = arith.constant 4.5 : f32
12 %1 = arith.constant 1.5 : f32
14 %2 = arith.addf %0, %1 : f32
27 %0 = arith.constant 4.5 : f32
28 %1 = arith.constant 1.5 : f32
31 %2 = arith.addf %0, %1 : f32
83 %0 = arith.constant 1 : i32
84 %1 = arith.constant 5 : i32
87 %2 = arith.addi %0, %1 : i32
99 %c1 = arith.constant 1 : i1
[all …]
H A Dparallel-loop-collapsing.mlir5 %c0 = arith.constant 0 : index
6 %c1 = arith.constant 1 : index
7 %c2 = arith.constant 2 : index
8 %c3 = arith.constant 3 : index
9 %c4 = arith.constant 4 : index
10 %c5 = arith.constant 5 : index
11 %c6 = arith.constant 6 : index
12 %c7 = arith.constant 7 : index
13 %c8 = arith.constant 8 : index
14 %c9 = arith.constant 9 : index
[all …]
H A Dcse.mlir9 %0 = arith.constant 1 : i32
12 %1 = arith.constant 1 : i32
34 %c = arith.addf %a, %b : f32
35 %d = arith.addf %a, %b : f32
36 %e = arith.addf %a, %b : f32
37 %f = arith.addf %a, %b : f32
40 %g = arith.addf %c, %d : f32
41 %h = arith.addf %e, %f : f32
42 %i = arith.addf %c, %e : f32
60 %0 = arith.constant 0 : i32
[all …]
H A Dloop-invariant-code-motion.mlir5 %cf7 = arith.constant 7.0 : f32
6 %cf8 = arith.constant 8.0 : f32
9 %v0 = arith.addf %cf7, %cf8 : f32
32 %cf7 = arith.constant 7.0 : f32
33 %cf8 = arith.constant 8.0 : f32
144 // CHECK-NEXT: arith.addf
174 // CHECK-NEXT: arith.addf
176 // CHECK-NEXT: arith.addf
208 // CHECK-NEXT: arith.addf
211 // CHECK-NEXT: arith.addf
[all …]
/llvm-project-15.0.7/mlir/test/IR/
H A Drepro_b120295301.mlir5 %1 = "arith.constant"() {value = dense<0.1> : tensor<1xf32>} : () -> (tensor<1xf32>)
6 %2 = "arith.constant"() {value = dense<0.1> : tensor<2xf32>} : () -> (tensor<2xf32>)
7 %3 = "arith.constant"() {value = dense<0.1> : tensor<3xf32>} : () -> (tensor<3xf32>)
8 %4 = "arith.constant"() {value = dense<0.1> : tensor<4xf32>} : () -> (tensor<4xf32>)
9 %5 = "arith.constant"() {value = dense<0.1> : tensor<5xf32>} : () -> (tensor<5xf32>)
10 %6 = "arith.constant"() {value = dense<0.1> : tensor<6xf32>} : () -> (tensor<6xf32>)
11 %7 = "arith.constant"() {value = dense<0.1> : tensor<7xf32>} : () -> (tensor<7xf32>)
12 %8 = "arith.constant"() {value = dense<0.1> : tensor<8xf32>} : () -> (tensor<8xf32>)
13 %9 = "arith.constant"() {value = dense<0.1> : tensor<9xf32>} : () -> (tensor<9xf32>)
14 %10 = "arith.constant"() {value = dense<0.1> : tensor<10xf32>} : () -> (tensor<10xf32>)
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/Transforms/
H A DExpandOps.cpp37 rewriter.create<arith::CmpIOp>(loc, arith::CmpIPredicate::eq, a, zero); in matchAndRewrite()
63 rewriter.create<arith::CmpIOp>(loc, arith::CmpIPredicate::sgt, b, zero); in matchAndRewrite()
81 rewriter.create<arith::CmpIOp>(loc, arith::CmpIPredicate::slt, a, zero); in matchAndRewrite()
83 rewriter.create<arith::CmpIOp>(loc, arith::CmpIPredicate::sgt, a, zero); in matchAndRewrite()
85 rewriter.create<arith::CmpIOp>(loc, arith::CmpIPredicate::slt, b, zero); in matchAndRewrite()
205 arith::MaxFOp, in runOnOperation()
206 arith::MaxSIOp, in runOnOperation()
207 arith::MaxUIOp, in runOnOperation()
208 arith::MinFOp, in runOnOperation()
209 arith::MinSIOp, in runOnOperation()
[all …]
/llvm-project-15.0.7/mlir/test/Dialect/Math/
H A Dpolynomial-approximation.mlir89 // CHECK: %[[res:.*]] = arith.select
152 // CHECK: %[[VAL_40:.*]] = arith.select
167 // CHECK: %[[EXP_X:.*]] = arith.select
173 // CHECK: %[[LOG_U:.*]] = arith.select
196 // CHECK: %[[VAL_115:.*]] = arith.select
276 // CHECK: %[[VAL_71:.*]] = arith.select
288 // CHECK: %[[VAL_65:.*]] = arith.select
300 // CHECK: %[[VAL_71:.*]] = arith.select
315 // CHECK: %[[LOG_U:.*]] = arith.select
333 // CHECK: %[[VAL_79:.*]] = arith.select
[all …]
/llvm-project-15.0.7/mlir/test/Conversion/TosaToArith/
H A Dtosa-to-arith.mlir19 // CHECK-DAG: %[[C0:.+]] = arith.constant 0 : i32
20 // CHECK-DAG: %[[C1:.+]] = arith.constant 1 : i32
21 // CHECK-DAG: %[[C2:.+]] = arith.constant 2 : i32
22 // CHECK-DAG: %[[C30:.+]] = arith.constant 30 : i32
23 // CHECK-DAG: %[[C32:.+]] = arith.constant 32 : i32
24 // CHECK-DAG: %[[C32L:.+]] = arith.constant 32 : i64
32 // CHECK-DAG: %[[LOW:.+]] = arith.muli %arg0, %arg1
43 // CHECK-DAG: %[[CN1:.+]] = arith.constant -1
95 // CHECK-DAG: %[[C0:.+]] = arith.constant 0 : i48
96 // CHECK-DAG: %[[C1:.+]] = arith.constant 1 : i64
[all …]
/llvm-project-15.0.7/mlir/test/Dialect/SCF/
H A Dloop-range.mlir4 %c0 = arith.constant 0 : index
5 %c1 = arith.constant 1 : index
6 %c4 = arith.constant 4 : index
8 %0 = arith.addi %arg2, %i : index
9 %1 = arith.muli %0, %c4 : index
11 %3 = arith.muli %2, %2 : i32
32 %c0 = arith.constant 0 : index
33 %c1 = arith.constant 1 : index
34 %c4 = arith.constant 4 : index
65 %c0 = arith.constant 0 : index
[all …]
H A Dparallel-loop-tiling-inbound-check.mlir10 %sum_elem = arith.addf %B_elem, %C_elem : f32
49 %c0 = arith.constant 0 : index
50 %c3 = arith.constant 3 : index
51 %c22 = arith.constant 22 : index
52 %c24 = arith.constant 24 : index
80 %c2 = arith.constant 2 : index
81 %c0 = arith.constant 0 : index
82 %c1 = arith.constant 1 : index
128 %c0 = arith.constant 0 : index
129 %c1 = arith.constant 1 : index
[all …]
/llvm-project-15.0.7/mlir/test/lib/IR/
H A DTestMatchers.cpp59 auto p2 = m_Op<arith::AddFOp>(m_Op<arith::AddFOp>(), m_Any()); in test1()
63 auto p3 = m_Op<arith::AddFOp>(m_Any(), m_Op<arith::AddFOp>()); in test1()
67 auto p4 = m_Op<arith::MulFOp>(m_Op<arith::AddFOp>(), m_Any()); in test1()
71 auto p5 = m_Op<arith::MulFOp>(m_Any(), m_Op<arith::AddFOp>()); in test1()
75 auto p6 = m_Op<arith::MulFOp>(m_Op<arith::MulFOp>(), m_Any()); in test1()
79 auto p7 = m_Op<arith::MulFOp>(m_Op<arith::MulFOp>(), m_Op<arith::MulFOp>()); in test1()
84 m_Op<arith::MulFOp>(m_Op<arith::MulFOp>(), m_Op<arith::MulFOp>()); in test1()
91 auto mulOfMuladd = m_Op<arith::MulFOp>(m_Op<arith::MulFOp>(), m_Op<arith::AddFOp>()); in test1()
93 auto p9 = m_Op<arith::MulFOp>(m_Op<arith::MulFOp>( in test1()
117 auto p14 = m_Op<arith::MulFOp>(a, m_Op<arith::AddFOp>(c, b)); in test1()
[all …]
/llvm-project-15.0.7/mlir/test/Conversion/ComplexToStandard/
H A Dconvert-to-standard.mlir54 // CHECK-DAG: %[[HALF:.*]] = arith.constant 5.000000e-01 : f32
101 // CHECK: %[[ZERO:.*]] = arith.constant 0.000000e+00 : f32
111 // CHECK: %[[INF:.*]] = arith.constant 0x7F800000 : f32
126 // CHECK: %[[ONE:.*]] = arith.constant 1.000000e+00 : f32
230 // CHECK: %[[ONE:.*]] = arith.constant 1.000000e+00 : f32
267 // CHECK: %[[ONE:.*]] = arith.constant 1.000000e+00 : f32
316 // CHECK: %[[INF:.*]] = arith.constant 0x7F800000 : f32
325 // CHECK: %[[ONE:.*]] = arith.constant 1.000000e+00 : f32
368 // CHECK: %[[TRUE:.*]] = arith.constant true
573 // CHECK: %[[INF:.*]] = arith.constant 0x7F800000 : f32
[all …]
/llvm-project-15.0.7/mlir/test/Conversion/AffineToStandard/
H A Dlower-affine.mlir30 %sum_0 = arith.constant 0.0 : f32
258 %cst0 = arith.constant 0 : i64
259 %cst1 = arith.constant 1 : i64
577 %1 = arith.constant 11.0 : f32
617 %c0 = arith.constant 0 : index
618 %c64 = arith.constant 64 : index
634 %c64 = arith.constant 64 : index
698 %2 = arith.mulf %0, %1 : f32
736 %3 = arith.mulf %1, %2 : f32
761 %c_0 = arith.constant 0 : index
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/ComplexToStandard/
H A DComplexToStandard.cpp95 arith::AndIOp, arith::OrIOp>;
560 b.create<arith::CmpFOp>(arith::CmpFPredicate::UNO, real, real); in matchAndRewrite()
562 b.create<arith::CmpFOp>(arith::CmpFPredicate::UNO, imag, imag); in matchAndRewrite()
775 b.create<arith::CmpFOp>(arith::CmpFPredicate::OLT, real, zero); in matchAndRewrite()
777 b.create<arith::CmpFOp>(arith::CmpFPredicate::OLT, imag, zero); in matchAndRewrite()
799 b.create<arith::CmpFOp>(arith::CmpFPredicate::OEQ, real, zero); in matchAndRewrite()
801 b.create<arith::CmpFOp>(arith::CmpFPredicate::OEQ, imag, zero); in matchAndRewrite()
828 b.create<arith::CmpFOp>(arith::CmpFPredicate::OEQ, real, zero); in matchAndRewrite()
830 b.create<arith::CmpFOp>(arith::CmpFPredicate::OEQ, imag, zero); in matchAndRewrite()
951 builder.create<arith::CmpFOp>(arith::CmpFPredicate::OGE, c, zero), in powOpConversionImpl()
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToLLVM/
H A DArithmeticToLLVM.cpp29 VectorConvertToLLVMPattern<arith::DivUIOp, LLVM::UDivOp>;
31 VectorConvertToLLVMPattern<arith::DivSIOp, LLVM::SDivOp>;
33 VectorConvertToLLVMPattern<arith::RemUIOp, LLVM::URemOp>;
35 VectorConvertToLLVMPattern<arith::RemSIOp, LLVM::SRemOp>;
41 VectorConvertToLLVMPattern<arith::ShRUIOp, LLVM::LShrOp>;
43 VectorConvertToLLVMPattern<arith::ShRSIOp, LLVM::AShrOp>;
81 matchAndRewrite(arith::ConstantOp op, OpAdaptor adaptor,
93 matchAndRewrite(arith::IndexCastOp op, OpAdaptor adaptor,
101 matchAndRewrite(arith::CmpIOp op, OpAdaptor adaptor,
109 matchAndRewrite(arith::CmpFOp op, OpAdaptor adaptor,
[all …]
/llvm-project-15.0.7/mlir/test/Dialect/Async/
H A Dasync-parallel-for-num-worker-threads.mlir8 // CHECK-DAG: %[[scalingCstInit:.*]] = arith.constant 8.000000e+00 : f32
9 // CHECK-DAG: %[[bracketLowerBound4:.*]] = arith.constant 4 : index
10 // CHECK-DAG: %[[scalingCst4:.*]] = arith.constant 4.000000e+00 : f32
11 // CHECK-DAG: %[[bracketLowerBound8:.*]] = arith.constant 8 : index
12 // CHECK-DAG: %[[scalingCst8:.*]] = arith.constant 2.000000e+00 : f32
13 // CHECK-DAG: %[[bracketLowerBound16:.*]] = arith.constant 16 : index
15 // CHECK-DAG: %[[bracketLowerBound32:.*]] = arith.constant 32 : index
36 %lb = arith.constant 0 : index
37 %ub = arith.constant 100 : index
38 %st = arith.constant 1 : index
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToSPIRV/
H A DArithmeticToSPIRV.cpp533 arith::XOrIOp op, OpAdaptor adaptor, in matchAndRewrite()
554 arith::XOrIOp op, OpAdaptor adaptor, in matchAndRewrite()
667 arith::CmpIOp op, OpAdaptor adaptor, in matchAndRewrite()
677 case arith::CmpIPredicate::eq: { in matchAndRewrite()
682 case arith::CmpIPredicate::ne: { in matchAndRewrite()
687 case arith::CmpIPredicate::uge: in matchAndRewrite()
688 case arith::CmpIPredicate::ugt: in matchAndRewrite()
689 case arith::CmpIPredicate::ule: in matchAndRewrite()
690 case arith::CmpIPredicate::ult: { in matchAndRewrite()
795 arith::CmpFOp op, OpAdaptor adaptor, in matchAndRewrite()
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/TosaToArith/
H A DTosaToArith.cpp55 return rewriter.create<arith::ConstantOp>( in getConstantValue()
93 round = rewriter.create<arith::ShRUIOp>(loc, round, one64); in matchAndRewrite()
101 Value positive = rewriter.create<arith::CmpIOp>( in matchAndRewrite()
102 loc, arith::CmpIPredicate::sge, value, zero); in matchAndRewrite()
106 Value valid = rewriter.create<arith::CmpIOp>( in matchAndRewrite()
163 Value shiftOver32 = rewriter.create<arith::CmpIOp>( in matchAndRewrite()
165 Value roundHighBits = rewriter.create<arith::CmpIOp>( in matchAndRewrite()
181 Value valuePositive = rewriter.create<arith::CmpIOp>( in matchAndRewrite()
182 loc, arith::CmpIPredicate::sge, value32, zero32); in matchAndRewrite()
208 Value wasRounded = rewriter.create<arith::CmpIOp>( in matchAndRewrite()
[all …]
/llvm-project-15.0.7/mlir/test/Conversion/TosaToLinalg/
H A Dtosa-to-linalg.mlir153 // CHECK: arith.addf
157 // CHECK: arith.subf
161 // CHECK: arith.mulf
165 // CHECK: arith.negf
185 // CHECK: arith.cmpf
189 // CHECK: arith.cmpf
193 // CHECK: arith.cmpf
201 // CHECK: arith.cmpf
206 // CHECK: arith.cmpf
219 // CHECK: arith.cmpf
[all …]
/llvm-project-15.0.7/mlir/test/Analysis/
H A Dtest-liveness.mlir39 // CHECK: arith.addi
91 // CHECK: arith.addi
125 // CHECK: arith.cmpi
149 // CHECK: arith.addi
151 // CHECK: arith.addi
165 // CHECK: arith.addi
220 // CHECK: arith.addi
224 // CHECK: arith.addi
226 // CHECK: arith.addi
228 // CHECK: arith.muli
[all …]
/llvm-project-15.0.7/mlir/test/Dialect/NVGPU/
H A Doptimize-shared-memory.mlir14 // CHECK: [[c6:%.+]] = arith.constant 6 : index
16 // CHECK: [[c2:%.+]] = arith.constant 2 : index
25 // CHECK: [[c6:%.+]] = arith.constant 6 : index
27 // CHECK: [[c2:%.+]] = arith.constant 2 : index
34 // CHECK: [[c15:%.+]] = arith.constant 15 : index
36 // CHECK: [[c3:%.+]] = arith.constant 3 : index
47 // CHECK: [[c3:%.+]] = arith.constant 3 : index
71 // CHECK: [[c6:%.+]] = arith.constant 6 : index
73 // CHECK: [[c1:%.+]] = arith.constant 1 : index
82 // CHECK: [[c6:%.+]] = arith.constant 6 : index
[all …]

12345678910>>...39