[all-commits] [llvm/llvm-project] 855ec5: [mlir] Model StringRef in C API
ftynse via All-commits
all-commits at lists.llvm.org
Wed Sep 16 07:04:58 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 855ec517a300daee6acb48474b6d3304c0914c60
https://github.com/llvm/llvm-project/commit/855ec517a300daee6acb48474b6d3304c0914c60
Author: Alex Zinenko <zinenko at google.com>
Date: 2020-09-16 (Wed, 16 Sep 2020)
Changed paths:
M mlir/docs/CAPI.md
M mlir/include/mlir-c/StandardAttributes.h
A mlir/include/mlir-c/Support.h
A mlir/include/mlir/CAPI/Support.h
M mlir/lib/Bindings/Python/IRModules.cpp
M mlir/lib/CAPI/IR/CMakeLists.txt
M mlir/lib/CAPI/IR/StandardAttributes.cpp
A mlir/lib/CAPI/IR/Support.cpp
M mlir/test/CAPI/ir.c
Log Message:
-----------
[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
More information about the All-commits
mailing list