MLIR 22.0.0git
Func.h File Reference
#include <stdint.h>
#include "mlir-c/IR.h"
#include "mlir-c/Support.h"

Go to the source code of this file.

Functions

 MLIR_DECLARE_CAPI_DIALECT_REGISTRATION (Func, func)
MLIR_CAPI_EXPORTED void mlirFuncSetArgAttr (MlirOperation op, intptr_t pos, MlirStringRef name, MlirAttribute attr)
 Sets the argument attribute 'name' of an argument at index 'pos'.
MLIR_CAPI_EXPORTED void mlirFuncSetResultAttr (MlirOperation op, intptr_t pos, MlirStringRef name, MlirAttribute attr)

Function Documentation

◆ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION()

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION ( Func ,
func  )

References MLIR_CAPI_EXPORTED.

◆ mlirFuncSetArgAttr()

MLIR_CAPI_EXPORTED void mlirFuncSetArgAttr ( MlirOperation op,
intptr_t pos,
MlirStringRef name,
MlirAttribute attr )

Sets the argument attribute 'name' of an argument at index 'pos'.

Asserts that the operation is a FuncOp.

Definition at line 17 of file Func.cpp.

References mlirFuncSetArgAttr(), and unwrap().

Referenced by mlirFuncSetArgAttr().

◆ mlirFuncSetResultAttr()

MLIR_CAPI_EXPORTED void mlirFuncSetResultAttr ( MlirOperation op,
intptr_t pos,
MlirStringRef name,
MlirAttribute attr )

Definition at line 23 of file Func.cpp.

References unwrap().