Use MlirStringRef throughout the C API
authorGeorge <>
Mon, 23 Nov 2020 21:08:00 +0000 (13:08 -0800)
committerGeorge <>
Mon, 23 Nov 2020 22:07:30 +0000 (14:07 -0800)
commitdf9ae5992889560a8f3c6760b54d5051b47c7bf5
treecfe92cb01be7f7b11e5663d67f7e815245dc2aaf
parentab29f091eb64c8608ba943df604b218bcff41a26
Use MlirStringRef throughout the C API

While this makes the unit tests a bit more verbose, this simplifies the creation of bindings because only the bidirectional mapping between the host language's string type and MlirStringRef need to be implemented.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D91905
mlir/include/mlir-c/IR.h
mlir/include/mlir-c/Support.h
mlir/include/mlir/CAPI/Utils.h
mlir/lib/CAPI/IR/IR.cpp
mlir/lib/CAPI/IR/StandardAttributes.cpp
mlir/test/CAPI/ir.c
mlir/test/CAPI/pass.c