diff options
author | Alex Zinenko <zinenko@google.com> | 2020-09-15 12:04:59 +0200 |
---|---|---|
committer | Alex Zinenko <zinenko@google.com> | 2020-09-16 16:04:36 +0200 |
commit | 855ec517a300daee6acb48474b6d3304c0914c60 (patch) | |
tree | 1256c45cce2e19746cac759d3fc2ff3202159fd4 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | cb9528a0420e01caf7f3dc8288a11258fcf1425d (diff) | |
download | llvm-855ec517a300daee6acb48474b6d3304c0914c60.zip llvm-855ec517a300daee6acb48474b6d3304c0914c60.tar.gz llvm-855ec517a300daee6acb48474b6d3304c0914c60.tar.bz2 |
[mlir] Model StringRef in C API
Numerous MLIR functions return instances of `StringRef` to refer to a
non-owning fragment of a string (usually owned by the context). This is a
relatively simple class that is defined in LLVM. Provide a simple wrapper in
the MLIR C API that contains the pointer and length of the string fragment and
use it for Standard attribute functions that return StringRef instead of the
previous, callback-based mechanism.
Reviewed By: stellaraccident
Differential Revision: https://reviews.llvm.org/D87677
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions