You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
533 B
16 lines
533 B
4 months ago
|
//===- Support.cpp - Helpers for C interface to MLIR API ------------------===//
|
||
|
//
|
||
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||
|
// See https://llvm.org/LICENSE.txt for license information.
|
||
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#include "mlir-c/Support.h"
|
||
|
|
||
|
#include <cstring>
|
||
|
|
||
|
MlirStringRef mlirStringRefCreateFromCString(const char *str) {
|
||
|
return mlirStringRefCreate(str, strlen(str));
|
||
|
}
|