LLZK 2.1.1
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
Attrs.capi.cpp.inc
Go to the documentation of this file.
1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* Attr C API Implementations *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* From: Attrs.td *|
7|* *|
8\*===----------------------------------------------------------------------===*/
9
10
11#include <mlir/CAPI/IR.h>
12#include <mlir/CAPI/Support.h>
13#include <llvm/ADT/TypeSwitch.h>
14#include <utility>
15
16using namespace mlir;
17using namespace llvm;
18
20 return llvm::isa<OverflowSemanticsAttr>(unwrap(inp));
21}
22
23MlirAttribute llzkCast_OverflowSemanticsAttrGet(MlirContext ctx, LlzkCastOverflowSemantics value) {
24
25 return wrap(OverflowSemanticsAttr::get(unwrap(ctx), unwrap(value)));
26}
27
29 return wrap(llvm::cast<OverflowSemanticsAttr>(unwrap(inp)).getValue());
30}
31
bool llzkAttributeIsA_Cast_OverflowSemanticsAttr(MlirAttribute inp)
Returns true if the Attribute is a llzk::cast::OverflowSemanticsAttr.
MlirAttribute llzkCast_OverflowSemanticsAttrGet(MlirContext ctx, LlzkCastOverflowSemantics value)
Create a llzk::cast::OverflowSemanticsAttr Attribute with the given parameters.
LlzkCastOverflowSemantics llzkCast_OverflowSemanticsAttrGetValue(MlirAttribute inp)
Get 'value' parameter from a llzk::cast::OverflowSemanticsAttr Attribute.
LlzkCastOverflowSemantics