MLIR  20.0.0git
Functions
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'. More...
 

Function Documentation

◆ MLIR_DECLARE_CAPI_DIALECT_REGISTRATION()

MLIR_DECLARE_CAPI_DIALECT_REGISTRATION ( Func  ,
func   
)

◆ 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 unwrap().