1 //===- Support.cpp - Helpers for C interface to MLIR API ------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include "mlir-c/Support.h" 10 11 #include <cstring> 12 mlirStringRefCreateFromCString(const char * str)13MlirStringRef mlirStringRefCreateFromCString(const char *str) { 14 return mlirStringRefCreate(str, strlen(str)); 15 } 16