aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChao Chen <chao.chen@intel.com>2024-03-26 17:56:19 +0000
committerChao Chen <chao.chen@intel.com>2024-03-26 17:56:19 +0000
commit8c305fe03c430abf6a546181867a73e499c36fbb (patch)
treea7c64af0889b075f8a9765b0ca6d5c85be7c0bc7
parent4ca38ed33e5e6bcb8d483b2f22a7aed790217726 (diff)
parenta375116a4c7938d7a3b812c871a0e26b37ff45f5 (diff)
downloadllvm-8c305fe03c430abf6a546181867a73e499c36fbb.zip
llvm-8c305fe03c430abf6a546181867a73e499c36fbb.tar.gz
llvm-8c305fe03c430abf6a546181867a73e499c36fbb.tar.bz2
Merge branch 'users/chencha3/xegpu_scatter_ops_upstream' of https://github.com/llvm/llvm-project into xegpu_scatter_ops_upstream
-rw-r--r--mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td2
-rw-r--r--mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td
index 5cea38a..41fe0ea 100644
--- a/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td
+++ b/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td
@@ -393,7 +393,7 @@ def XeGPU_CreateDescOp: XeGPU_Op<"create_tdesc", [Pure, ViewLikeOpInterface]> {
let description = [{
"create_tdesc" is similar to "create_nd_tdesc" in terms that it creates
a Tensor Descriptor (TensorDescType) for a memory region. While "create_nd_tdesc"
- is for creating continious subviews, "create_tdesc" is for creating non-continious
+ is for creating continuous subviews, "create_tdesc" is for creating non-continuous
(scattered) subviews, allowing each work-item in a subgroup specifying their own offset.
It accepts the following parameters:
diff --git a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp b/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
index 972cee6..6c64467 100644
--- a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
+++ b/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
@@ -54,7 +54,7 @@ static int64_t getRankOf(Value val) {
auto type = val.getType();
if (auto ty = llvm::dyn_cast<ShapedType>(type))
return ty.getRank();
- return (int64_t)0;
+ return 0;
};
static bool isReadHintOrNone(const CachePolicyAttr &attr) {