Attributes


ASTFunctionDeclAttr

Wraps a clang::FunctionDecl AST node

Wraps a clang::FunctionDecl AST node. Operations usually optionally use these, which might be available depending on the lowering stage.

This always implies a non-null AST reference (verified).

Parameters:

Parameter C++ type Description
astDecl clang::FunctionDecl *  

CstArrayAttr

A constant array from ArrayAttr or StringRefAttr

An CIR array attribute is an array of literals of the specified attr types.

Parameters:

Parameter C++ type Description
type ::mlir::Type  
value Attribute  

NullAttr

A simple attr to represent nullptr

Syntax:

!cir.null<
  ::mlir::Type   # type
>

The NullAttr represents the value of nullptr within cir.

Parameters:

Parameter C++ type Description
type ::mlir::Type