Skip to content

Commit c2f628e

Browse files
poechselftynse
authored andcommitted
[MLIR] [EDSC] Add folded_xxxx handles for common std instructions.
Differential Revision: https://reviews.llvm.org/D77729
1 parent c4d3188 commit c2f628e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

mlir/include/mlir/Dialect/StandardOps/EDSC/Intrinsics.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,28 @@ using folded_std_constant_int = folded::ValueBuilder<ConstantIntOp>;
142142
using folded_std_constant = folded::ValueBuilder<ConstantOp>;
143143
using folded_std_dim = folded::ValueBuilder<DimOp>;
144144
using folded_std_muli = folded::ValueBuilder<MulIOp>;
145+
using folded_std_addi = folded::ValueBuilder<AddIOp>;
146+
using folded_std_addf = folded::ValueBuilder<AddFOp>;
147+
using folded_std_alloc = folded::ValueBuilder<AllocOp>;
148+
using folded_std_constant = folded::ValueBuilder<ConstantOp>;
149+
using folded_std_constant_float = folded::ValueBuilder<ConstantFloatOp>;
150+
using folded_std_constant_index = folded::ValueBuilder<ConstantIndexOp>;
151+
using folded_std_constant_int = folded::ValueBuilder<ConstantIntOp>;
152+
using folded_std_dim = folded::ValueBuilder<DimOp>;
153+
using folded_std_extract_element = folded::ValueBuilder<ExtractElementOp>;
154+
using folded_std_index_cast = folded::ValueBuilder<IndexCastOp>;
155+
using folded_std_muli = folded::ValueBuilder<MulIOp>;
156+
using folded_std_mulf = folded::ValueBuilder<MulFOp>;
157+
using folded_std_memref_cast = folded::ValueBuilder<MemRefCastOp>;
158+
using folded_std_select = folded::ValueBuilder<SelectOp>;
159+
using folded_std_load = folded::ValueBuilder<LoadOp>;
160+
using folded_std_subi = folded::ValueBuilder<SubIOp>;
161+
using folded_std_sub_view = folded::ValueBuilder<SubViewOp>;
162+
using folded_std_tanh = folded::ValueBuilder<TanhOp>;
163+
using folded_std_tensor_load = folded::ValueBuilder<TensorLoadOp>;
164+
using folded_std_view = folded::ValueBuilder<ViewOp>;
165+
using folded_std_zero_extendi = folded::ValueBuilder<ZeroExtendIOp>;
166+
using folded_std_sign_extendi = folded::ValueBuilder<SignExtendIOp>;
145167
} // namespace intrinsics
146168
} // namespace edsc
147169
} // namespace mlir

0 commit comments

Comments
 (0)