Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing dialects to C API #82190

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mlir/include/mlir-c/Dialect/AMDGPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(AMDGPU, amdgpu);
}
#endif

#include "mlir/Dialect/AMDGPU/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_AMDGPU_H
25 changes: 25 additions & 0 deletions mlir/include/mlir-c/Dialect/AMX.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//===-- mlir-c/Dialect/AMX.h - C API for AMX 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 MLIR_C_DIALECT_AMX_H
#define MLIR_C_DIALECT_AMX_H

#include "mlir-c/IR.h"

#ifdef __cplusplus
extern "C" {
#endif

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(AMX, amx);

#ifdef __cplusplus
}
#endif

#endif // MLIR_C_DIALECT_AMX_H
27 changes: 27 additions & 0 deletions mlir/include/mlir-c/Dialect/Affine.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//===-- mlir-c/Dialect/Affine.h - C API for Affine 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 MLIR_C_DIALECT_AFFINE_H
#define MLIR_C_DIALECT_AFFINE_H

#include "mlir-c/IR.h"

#ifdef __cplusplus
extern "C" {
#endif

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Affine, affine);

#ifdef __cplusplus
}
#endif

#include "mlir/Dialect/Affine/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_AFFINE_H
2 changes: 2 additions & 0 deletions mlir/include/mlir-c/Dialect/Arith.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Arith, arith);
}
#endif

#include "mlir/Dialect/Arith/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_ARITH_H
26 changes: 26 additions & 0 deletions mlir/include/mlir-c/Dialect/ArmNeon.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//===-- mlir-c/Dialect/ArmNeon.h - C API for ArmNeon 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 MLIR_C_DIALECT_ARMNEON_H
#define MLIR_C_DIALECT_ARMNEON_H

#include "mlir-c/IR.h"

#ifdef __cplusplus
extern "C" {
#endif

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(ArmNeon, arm_neon);

#ifdef __cplusplus
}
#endif

#endif // MLIR_C_DIALECT_ARMNEON_H
27 changes: 27 additions & 0 deletions mlir/include/mlir-c/Dialect/ArmSME.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//===-- mlir-c/Dialect/ArmSME.h - C API for ArmSME 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 MLIR_C_DIALECT_ARMSME_H
#define MLIR_C_DIALECT_ARMSME_H

#include "mlir-c/IR.h"

#ifdef __cplusplus
extern "C" {
#endif

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(ArmSME, arm_sme);

#ifdef __cplusplus
}
#endif

#include "mlir/Dialect/ArmSME/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_ARMSME_H
27 changes: 27 additions & 0 deletions mlir/include/mlir-c/Dialect/ArmSVE.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//===-- mlir-c/Dialect/ArmSVE.h - C API for ArmSVE 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 MLIR_C_DIALECT_ARMSME_H
#define MLIR_C_DIALECT_ARMSME_H

#include "mlir-c/IR.h"

#ifdef __cplusplus
extern "C" {
#endif

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(ArmSVE, arm_sve);

#ifdef __cplusplus
}
#endif

#include "mlir/Dialect/ArmSVE/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_ARMSME_H
28 changes: 28 additions & 0 deletions mlir/include/mlir-c/Dialect/Bufferization.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//===-- mlir-c/Dialect/Bufferization.h - C API for Bufferization 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 MLIR_C_DIALECT_BUFFERIZATION_H
#define MLIR_C_DIALECT_BUFFERIZATION_H

#include "mlir-c/IR.h"

#ifdef __cplusplus
extern "C" {
#endif

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Bufferization, bufferization);

#ifdef __cplusplus
}
#endif

#include "mlir/Dialect/Bufferization/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_BUFFERIZATION_H
26 changes: 26 additions & 0 deletions mlir/include/mlir-c/Dialect/Complex.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//===-- mlir-c/Dialect/Complex.h - C API for Complex 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 MLIR_C_DIALECT_COMPLEX_H
#define MLIR_C_DIALECT_COMPLEX_H

#include "mlir-c/IR.h"

#ifdef __cplusplus
extern "C" {
#endif

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Complex, complex);

#ifdef __cplusplus
}
#endif

#endif // MLIR_C_DIALECT_COMPLEX_H
25 changes: 25 additions & 0 deletions mlir/include/mlir-c/Dialect/DLTI.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//===-- mlir-c/Dialect/DLTI.h - C API for DLTI 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 MLIR_C_DIALECT_DLTI_H
#define MLIR_C_DIALECT_DLTI_H

#include "mlir-c/IR.h"

#ifdef __cplusplus
extern "C" {
#endif

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(DLTI, dlti);

#ifdef __cplusplus
}
#endif

#endif // MLIR_C_DIALECT_DLTI_H
27 changes: 27 additions & 0 deletions mlir/include/mlir-c/Dialect/EmitC.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//===-- mlir-c/Dialect/EmitC.h - C API for EmitC 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 MLIR_C_DIALECT_EMITC_H
#define MLIR_C_DIALECT_EMITC_H

#include "mlir-c/IR.h"

#ifdef __cplusplus
extern "C" {
#endif

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(EmitC, emitc);

#ifdef __cplusplus
}
#endif

#include "mlir/Dialect/EmitC/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_EMITC_H
2 changes: 2 additions & 0 deletions mlir/include/mlir-c/Dialect/Func.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ MLIR_CAPI_EXPORTED void mlirFuncSetArgAttr(MlirOperation op, intptr_t pos,
}
#endif

#include "mlir/Dialect/Func/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_FUNC_H
25 changes: 25 additions & 0 deletions mlir/include/mlir-c/Dialect/Index.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//===-- mlir-c/Dialect/Index.h - C API for Index 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 MLIR_C_DIALECT_INDEX_H
#define MLIR_C_DIALECT_INDEX_H

#include "mlir-c/IR.h"

#ifdef __cplusplus
extern "C" {
#endif

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Index, index);

#ifdef __cplusplus
}
#endif

#endif // MLIR_C_DIALECT_INDEX_H
2 changes: 2 additions & 0 deletions mlir/include/mlir-c/Dialect/LLVM.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,6 @@ mlirLLVMDIModuleAttrGetScope(MlirAttribute diModule);
}
#endif

#include "mlir/Dialect/LLVMIR/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_LLVM_H
2 changes: 2 additions & 0 deletions mlir/include/mlir-c/Dialect/MLProgram.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(MLProgram, ml_program);
}
#endif

#include "mlir/Dialect/MLProgram/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_MLPROGRAM_H
25 changes: 25 additions & 0 deletions mlir/include/mlir-c/Dialect/MPI.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//===-- mlir-c/Dialect/MPI.h - C API for MPI 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 MLIR_C_DIALECT_MPI_H
#define MLIR_C_DIALECT_MPI_H

#include "mlir-c/IR.h"

#ifdef __cplusplus
extern "C" {
#endif

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(MPI, mpi);

#ifdef __cplusplus
}
#endif

#endif // MLIR_C_DIALECT_MPI_H
2 changes: 2 additions & 0 deletions mlir/include/mlir-c/Dialect/Math.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Math, math);
}
#endif

#include "mlir/Dialect/Math/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_MATH_H
2 changes: 2 additions & 0 deletions mlir/include/mlir-c/Dialect/MemRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(MemRef, memref);
}
#endif

#include "mlir/Dialect/MemRef/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_MEMREF_H
27 changes: 27 additions & 0 deletions mlir/include/mlir-c/Dialect/Mesh.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//===-- mlir-c/Dialect/Mesh.h - C API for Mesh 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 MLIR_C_DIALECT_MESH_H
#define MLIR_C_DIALECT_MESH_H

#include "mlir-c/IR.h"

#ifdef __cplusplus
extern "C" {
#endif

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Mesh, mesh);

#ifdef __cplusplus
}
#endif

#include "mlir/Dialect/Mesh/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_MESH_H
2 changes: 2 additions & 0 deletions mlir/include/mlir-c/Dialect/NVGPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ MLIR_CAPI_EXPORTED MlirType mlirNVGPUTensorMapDescriptorTypeGet(
}
#endif

#include "mlir/Dialect/NVGPU/Transforms/Passes.capi.h.inc"

#endif // MLIR_C_DIALECT_NVGPU_H
Loading