diff options
author | Mogball <jeffniu22@gmail.com> | 2021-09-15 14:25:29 -0700 |
---|---|---|
committer | Jacques Pienaar <jpienaar@google.com> | 2021-09-15 14:25:29 -0700 |
commit | cb8c30d35dc9eedca4b8073e96f06e9ce8f12192 (patch) | |
tree | 4ffc989f7f4f2d1f0e2829fcb5d58eb44bb3fc03 /llvm/lib/CodeGen/SplitKit.cpp | |
parent | f4382d4b0972ac31a2027610adfb9d4dc36caa2e (diff) | |
download | llvm-cb8c30d35dc9eedca4b8073e96f06e9ce8f12192.zip llvm-cb8c30d35dc9eedca4b8073e96f06e9ce8f12192.tar.gz llvm-cb8c30d35dc9eedca4b8073e96f06e9ce8f12192.tar.bz2 |
[DRR] Explicit Return Types in Rewrites
Adds a new rewrite directive returnType that can be added at the end of an op's
argument list to explicitly specify return types.
```
(OpX $v0, $v1, (returnType "$_builder.getI32Type()"))
```
Pass in a bound value to copy its return type, or pass a native code call to
dynamically create new types.
```
(OpX $v0, $v1, (returnType $v0, (NativeCodeCall<"..."> $v1)))
```
Reviewed By: jpienaar
Differential Revision: https://reviews.llvm.org/D109472
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
0 files changed, 0 insertions, 0 deletions