10#ifndef MLIR_C_DIALECT_COMPLEX_H
11#define MLIR_C_DIALECT_COMPLEX_H
34 MlirLocation loc, MlirType type,
double real,
double imag);
MLIR_CAPI_EXPORTED double mlirComplexAttrGetRealDouble(MlirAttribute attr)
Returns the real value stored in the given complex attribute, interpreting the value as double.
MLIR_CAPI_EXPORTED bool mlirAttributeIsAComplex(MlirAttribute attr)
Checks whether the given attribute is a complex attribute.
MLIR_CAPI_EXPORTED MlirAttribute mlirComplexAttrDoubleGetChecked(MlirLocation loc, MlirType type, double real, double imag)
Same as "mlirComplexAttrDoubleGet", but if the type is not valid for a construction of a ComplexAttr,...
MLIR_CAPI_EXPORTED double mlirComplexAttrGetImagDouble(MlirAttribute attr)
Returns the imaginaryvalue stored in the given complex attribute, interpreting the value as double.
MLIR_CAPI_EXPORTED MlirAttribute mlirComplexAttrDoubleGet(MlirContext ctx, MlirType type, double real, double imag)
Creates a complex attribute in the given context with the given double real and imaginary values and ...
MLIR_CAPI_EXPORTED MlirTypeID mlirComplexAttrGetTypeID(void)
Returns the typeID of a Complex attribute.
#define MLIR_DECLARE_CAPI_DIALECT_REGISTRATION(Name, Namespace)
#define MLIR_CAPI_EXPORTED