diff --git a/mlir/include/mlir/EDSC/Intrinsics.h b/mlir/include/mlir/EDSC/Intrinsics.h --- a/mlir/include/mlir/EDSC/Intrinsics.h +++ b/mlir/include/mlir/EDSC/Intrinsics.h @@ -200,11 +200,14 @@ using affine_store = OperationBuilder; using alloc = ValueBuilder; using call = OperationBuilder; +using constant = ValueBuilder; using constant_float = ValueBuilder; using constant_index = ValueBuilder; using constant_int = ValueBuilder; using dealloc = OperationBuilder; using dim = ValueBuilder; +using extract_element = ValueBuilder; +using index_cast = ValueBuilder; using muli = ValueBuilder; using mulf = ValueBuilder; using memref_cast = ValueBuilder; @@ -213,7 +216,10 @@ using std_load = ValueBuilder; using std_store = OperationBuilder; using subi = ValueBuilder; +using sub_view = ValueBuilder; using tanh = ValueBuilder; +using tensor_load = ValueBuilder; +using tensor_store = OperationBuilder; using view = ValueBuilder; using zero_extendi = ValueBuilder; using sign_extendi = ValueBuilder; diff --git a/mlir/lib/Conversion/LinalgToLLVM/LinalgToLLVM.cpp b/mlir/lib/Conversion/LinalgToLLVM/LinalgToLLVM.cpp --- a/mlir/lib/Conversion/LinalgToLLVM/LinalgToLLVM.cpp +++ b/mlir/lib/Conversion/LinalgToLLVM/LinalgToLLVM.cpp @@ -51,7 +51,7 @@ using addi = ValueBuilder; using bitcast = ValueBuilder; using cmpi = ValueBuilder; -using constant = ValueBuilder; +using llvm_constant = ValueBuilder; using extractvalue = ValueBuilder; using gep = ValueBuilder; using insertvalue = ValueBuilder; @@ -265,7 +265,7 @@ return rewriter.replaceOp(op, {desc}), matchSuccess(); Value zero = - constant(int64Ty, rewriter.getIntegerAttr(rewriter.getIndexType(), 0)); + llvm_constant(int64Ty, rewriter.getIntegerAttr(rewriter.getIndexType(), 0)); // Compute and insert view sizes (max - min along the range) and strides. // Skip the non-range operands as they will be projected away from the view. int numNewDims = 0;