[Mlir-commits] [mlir] [MLIR][XeGPU] Add XeGPU scattered ops (PR #86594)

Mehdi Amini llvmlistbot at llvm.org
Mon Mar 25 16:10:13 PDT 2024


================
@@ -96,6 +107,16 @@ void TensorDescType::print(::mlir::AsmPrinter &printer) const {
   printer << ">";
 }
 
+TensorDescType TensorDescType::get(mlir::MLIRContext *context,
+                                   llvm::ArrayRef<int64_t> shape,
+                                   mlir::Type elementType, bool scattered,
----------------
joker-eph wrote:

Since you're taking a Type as argument here, you don't need to also take a context.

Instead of a `TypeBuilder` you just have to declare it as `TypeBuilderWithInferredContext`

https://github.com/llvm/llvm-project/pull/86594


More information about the Mlir-commits mailing list