aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorAndrei Golubev <andrey.golubev@intel.com>2025-06-18 16:18:12 +0200
committerGitHub <noreply@github.com>2025-06-18 16:18:12 +0200
commitee070d08163ac09842d9bf0c1315f311df39faf1 (patch)
tree2bb924d61b0a587316c4c4088a9d8d75728ceb6c /llvm/lib/CodeGen/MachineFunction.cpp
parent40d2f392106f43a60eea79f433b47a5ce44fc4a4 (diff)
downloadllvm-ee070d08163ac09842d9bf0c1315f311df39faf1.zip
llvm-ee070d08163ac09842d9bf0c1315f311df39faf1.tar.gz
llvm-ee070d08163ac09842d9bf0c1315f311df39faf1.tar.bz2
[mlir][bufferization] Support custom types (1/N) (#142986)
Following the addition of TensorLike and BufferLike type interfaces (see 00eaff3e9c897c263a879416d0f151d7ca7eeaff), introduce minimal changes required to bufferize a custom tensor operation into a custom buffer operation. To achieve this, new interface methods are added to TensorLike type interface that abstract away the differences between existing (tensor -> memref) and custom conversions. The scope of the changes is intentionally limited (for example, BufferizableOpInterface is untouched) in order to first understand the basics and reach consensus design-wise. --- Notable changes: * mlir::bufferization::getBufferType() returns BufferLikeType (instead of BaseMemRefType) * ToTensorOp / ToBufferOp operate on TensorLikeType / BufferLikeType. Operation argument "memref" renamed to "buffer" * ToTensorOp's tensor type inferring builder is dropped (users now need to provide the tensor type explicitly)
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions