Files
gps/tools/local/circt/include/circt-c/Dialect/CHIRRTL.h
T
2026-07-12 11:01:51 +03:00

39 lines
1.2 KiB
C

//===- CHIRRTL.h - C interface for the CHIRRTL dialect ------------*- C -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//
#ifndef CIRCT_C_DIALECT_CHIRRTL_H
#define CIRCT_C_DIALECT_CHIRRTL_H
#include "mlir-c/IR.h"
#ifdef __cplusplus
extern "C" {
#endif
//===----------------------------------------------------------------------===//
// Dialect API.
//===----------------------------------------------------------------------===//
MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(CHIRRTL, chirrtl);
//===----------------------------------------------------------------------===//
// Type API.
//===----------------------------------------------------------------------===//
MLIR_CAPI_EXPORTED MlirType chirrtlTypeGetCMemory(MlirContext ctx,
MlirType elementType,
uint64_t numElements);
MLIR_CAPI_EXPORTED MlirType chirrtlTypeGetCMemoryPort(MlirContext ctx);
#ifdef __cplusplus
}
#endif
#endif // CIRCT_C_DIALECT_CHIRRTL_H