diff options
author | Rolf Morel <rolf.morel@intel.com> | 2025-02-10 13:05:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-10 12:05:13 +0000 |
commit | f796bc622a7725708b8ffbe0c7a684a8557e77a3 (patch) | |
tree | 47762ea399b88a4f1d50f3b98ab205cdf7bcae3b /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 771f6b9f43039a4701a3ab76ac2456857ddf74ac (diff) | |
download | llvm-f796bc622a7725708b8ffbe0c7a684a8557e77a3.zip llvm-f796bc622a7725708b8ffbe0c7a684a8557e77a3.tar.gz llvm-f796bc622a7725708b8ffbe0c7a684a8557e77a3.tar.bz2 |
[MLIR][Linalg] Expose linalg.matmul and linalg.contract via Python API (#126377)
Now that linalg.matmul is in tablegen, "hand write" the Python wrapper
that OpDSL used to derive. Similarly, add a Python wrapper for the new
linalg.contract op.
Required following misc. fixes:
1) make linalg.matmul's parsing and printing consistent w.r.t. whether
indexing_maps occurs before or after operands, i.e. per the tests cases
it comes _before_.
2) tablegen for linalg.contract did not state it accepted an optional
cast attr.
3) In ODS's C++-generating code, expand partial support for `$_builder`
access in `Attr::defaultValue` to full support. This enables access to
the current `MlirContext` when constructing the default value (as is
required when the default value consists of affine maps).
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions