diff options
author | Pierre Oechsel <pierre.oechsel@gmail.com> | 2020-04-16 10:24:48 +0200 |
---|---|---|
committer | Alex Zinenko <zinenko@google.com> | 2020-04-16 10:27:39 +0200 |
commit | c2f628e46c32dce91be0d23f9b603a11a74173f6 (patch) | |
tree | ad78414911c181a629b0df6a7663deae738f9948 | |
parent | c4d3188adb5bc306b3e9f52ba261fa31f724ea5b (diff) | |
download | llvm-c2f628e46c32dce91be0d23f9b603a11a74173f6.zip llvm-c2f628e46c32dce91be0d23f9b603a11a74173f6.tar.gz llvm-c2f628e46c32dce91be0d23f9b603a11a74173f6.tar.bz2 |
[MLIR] [EDSC] Add folded_xxxx handles for common std instructions.
Differential Revision: https://reviews.llvm.org/D77729
-rw-r--r-- | mlir/include/mlir/Dialect/StandardOps/EDSC/Intrinsics.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mlir/include/mlir/Dialect/StandardOps/EDSC/Intrinsics.h b/mlir/include/mlir/Dialect/StandardOps/EDSC/Intrinsics.h index 9df53d3..50dc0a0 100644 --- a/mlir/include/mlir/Dialect/StandardOps/EDSC/Intrinsics.h +++ b/mlir/include/mlir/Dialect/StandardOps/EDSC/Intrinsics.h @@ -142,6 +142,28 @@ using folded_std_constant_int = folded::ValueBuilder<ConstantIntOp>; using folded_std_constant = folded::ValueBuilder<ConstantOp>; using folded_std_dim = folded::ValueBuilder<DimOp>; using folded_std_muli = folded::ValueBuilder<MulIOp>; +using folded_std_addi = folded::ValueBuilder<AddIOp>; +using folded_std_addf = folded::ValueBuilder<AddFOp>; +using folded_std_alloc = folded::ValueBuilder<AllocOp>; +using folded_std_constant = folded::ValueBuilder<ConstantOp>; +using folded_std_constant_float = folded::ValueBuilder<ConstantFloatOp>; +using folded_std_constant_index = folded::ValueBuilder<ConstantIndexOp>; +using folded_std_constant_int = folded::ValueBuilder<ConstantIntOp>; +using folded_std_dim = folded::ValueBuilder<DimOp>; +using folded_std_extract_element = folded::ValueBuilder<ExtractElementOp>; +using folded_std_index_cast = folded::ValueBuilder<IndexCastOp>; +using folded_std_muli = folded::ValueBuilder<MulIOp>; +using folded_std_mulf = folded::ValueBuilder<MulFOp>; +using folded_std_memref_cast = folded::ValueBuilder<MemRefCastOp>; +using folded_std_select = folded::ValueBuilder<SelectOp>; +using folded_std_load = folded::ValueBuilder<LoadOp>; +using folded_std_subi = folded::ValueBuilder<SubIOp>; +using folded_std_sub_view = folded::ValueBuilder<SubViewOp>; +using folded_std_tanh = folded::ValueBuilder<TanhOp>; +using folded_std_tensor_load = folded::ValueBuilder<TensorLoadOp>; +using folded_std_view = folded::ValueBuilder<ViewOp>; +using folded_std_zero_extendi = folded::ValueBuilder<ZeroExtendIOp>; +using folded_std_sign_extendi = folded::ValueBuilder<SignExtendIOp>; } // namespace intrinsics } // namespace edsc } // namespace mlir |