aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/CommandGuide/llvm-remarkutil.rst
diff options
context:
space:
mode:
authorMartin Erhart <merhart@google.com>2023-08-02 08:08:03 +0000
committerMartin Erhart <merhart@google.com>2023-08-02 08:08:18 +0000
commitd790a217a746ff63190d30669674fce1bc0a4723 (patch)
tree7b9d89b10659869d7217322811f713efb5be31df /llvm/docs/CommandGuide/llvm-remarkutil.rst
parentc2093b85044d87805c39267c65ac9032d5454e0e (diff)
downloadllvm-d790a217a746ff63190d30669674fce1bc0a4723.zip
llvm-d790a217a746ff63190d30669674fce1bc0a4723.tar.gz
llvm-d790a217a746ff63190d30669674fce1bc0a4723.tar.bz2
[mlir] Add getArgOperandsMutable method to CallOpInterface
Add a method to the CallOpInterface to get a mutable operand range over the function arguments. This allows to add, remove, or change the type of call arguments in a generic manner without having to assume that the argument operand range is at the end of the operand list, or having to type switch on all supported concrete operation kinds. Alternatively, a new OpInterface could be added which inherits from CallOpInterface and appends it with the mutable variants of the base interface. There will be two users of this new function in the beginning: (1) A few passes in the Arc dialect in CIRCT already use a downstream implementation of the alternative case mentioned above: https://github.com/llvm/circt/blob/main/include/circt/Dialect/Arc/ArcInterfaces.td#L15 (2) The BufferDeallocation pass will be modified to be able to pass ownership of memrefs to called private functions if the caller does not need the memref anymore by appending the function argument list with a boolean value per memref, thus enabling earlier deallocation of the memref which can lead to lower peak memory usage. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D156675
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-remarkutil.rst')
0 files changed, 0 insertions, 0 deletions