diff options
author | River Riddle <riddleriver@gmail.com> | 2020-03-06 13:55:36 -0800 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2020-03-06 14:04:36 -0800 |
commit | 20dca52288adfb64cdeb25fd25fbe0bb8628e7c3 (patch) | |
tree | 3f658106486194dda5d36e5fc0b3ba591aeed7ff /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | f8923584da83be461aafab3f45cc41f872fa7d74 (diff) | |
download | llvm-20dca52288adfb64cdeb25fd25fbe0bb8628e7c3.zip llvm-20dca52288adfb64cdeb25fd25fbe0bb8628e7c3.tar.gz llvm-20dca52288adfb64cdeb25fd25fbe0bb8628e7c3.tar.bz2 |
[mlir][SideEffects] Enable specifying side effects directly on the arguments/results of an operation.
Summary:
New classes are added to ODS to enable specifying additional information on the arguments and results of an operation. These classes, `Arg` and `Res` allow for adding a description and a set of 'decorators' along with the constraint. This enables specifying the side effects of an operation directly on the arguments and results themselves.
Example:
```
def LoadOp : Std_Op<"load"> {
let arguments = (ins Arg<AnyMemRef, "the MemRef to load from",
[MemRead]>:$memref,
Variadic<Index>:$indices);
}
```
Differential Revision: https://reviews.llvm.org/D74440
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions