LLZK 3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
OpInterfaces.cpp.inc
Go to the documentation of this file.
1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* Interface Definitions *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
10::mlir::TypedValue<::mlir::IntegerType> llzk::verif::ConditionOpInterface::getCondition() {
11 return getImpl()->getCondition(getImpl(), getOperation());
12 }
13
14void llzk::verif::ConditionOpInterface::getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect>> & effects) {
15 return getImpl()->implMemoryEffectOpInterface->getEffects(getImpl()->implMemoryEffectOpInterface, getOperation(), effects);
16 }
17
18::llvm::SmallVector<::llzk::verif::InvariantTargetOpInterface> llzk::verif::ContractTargetOpInterface::getLoops() {
19 return getImpl()->getLoops(getImpl(), getOperation());
20 }
21
23 return getImpl()->implSymbolOpInterface->getNameAttr(getImpl()->implSymbolOpInterface, getOperation());
24 }
25
27 return getImpl()->implSymbolOpInterface->setName(getImpl()->implSymbolOpInterface, getOperation(), name);
28 }
29
31 return getImpl()->implSymbolOpInterface->getVisibility(getImpl()->implSymbolOpInterface, getOperation());
32 }
33
35 return getImpl()->implSymbolOpInterface->isNested(getImpl()->implSymbolOpInterface, getOperation());
36 }
37
39 return getImpl()->implSymbolOpInterface->isPrivate(getImpl()->implSymbolOpInterface, getOperation());
40 }
41
43 return getImpl()->implSymbolOpInterface->isPublic(getImpl()->implSymbolOpInterface, getOperation());
44 }
45
46void llzk::verif::ContractTargetOpInterface::setVisibility(mlir::SymbolTable::Visibility vis) {
47 return getImpl()->implSymbolOpInterface->setVisibility(getImpl()->implSymbolOpInterface, getOperation(), vis);
48 }
49
51 return getImpl()->implSymbolOpInterface->setNested(getImpl()->implSymbolOpInterface, getOperation());
52 }
53
55 return getImpl()->implSymbolOpInterface->setPrivate(getImpl()->implSymbolOpInterface, getOperation());
56 }
57
59 return getImpl()->implSymbolOpInterface->setPublic(getImpl()->implSymbolOpInterface, getOperation());
60 }
61
64::std::optional<::mlir::SymbolTable::UseRange> llzk::verif::ContractTargetOpInterface::getSymbolUses(::mlir::Operation * from) {
65 return getImpl()->implSymbolOpInterface->getSymbolUses(getImpl()->implSymbolOpInterface, getOperation(), from);
66 }
67
71 return getImpl()->implSymbolOpInterface->symbolKnownUseEmpty(getImpl()->implSymbolOpInterface, getOperation(), from);
72 }
73
76::llvm::LogicalResult llzk::verif::ContractTargetOpInterface::replaceAllSymbolUses(::mlir::StringAttr newSymbol, ::mlir::Operation * from) {
77 return getImpl()->implSymbolOpInterface->replaceAllSymbolUses(getImpl()->implSymbolOpInterface, getOperation(), newSymbol, from);
78 }
79
82 return getImpl()->implSymbolOpInterface->isOptionalSymbol(getImpl()->implSymbolOpInterface, getOperation());
83 }
84
87 return getImpl()->implSymbolOpInterface->canDiscardOnUseEmpty(getImpl()->implSymbolOpInterface, getOperation());
88 }
89
92 return getImpl()->implSymbolOpInterface->isDeclaration(getImpl()->implSymbolOpInterface, getOperation());
93 }
94
95::mlir::FailureOr<::mlir::StringRef> llzk::verif::InvariantTargetOpInterface::getLabel() {
96 return getImpl()->getLabel(getImpl(), getOperation());
97 }
98
100 return getImpl()->getArgumentTypes(getImpl(), getOperation());
101 }
102
103void llzk::verif::PostconditionOpInterface::getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect>> & effects) {
104 return getImpl()->implMemoryEffectOpInterface->getEffects(getImpl()->implMemoryEffectOpInterface, getOperation(), effects);
105 }
106
107::mlir::TypedValue<::mlir::IntegerType> llzk::verif::PostconditionOpInterface::getCondition() {
108 return getImpl()->implConditionOpInterface->getCondition(getImpl()->implConditionOpInterface, getOperation());
109 }
110
111void llzk::verif::PreconditionOpInterface::getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect>> & effects) {
112 return getImpl()->implMemoryEffectOpInterface->getEffects(getImpl()->implMemoryEffectOpInterface, getOperation(), effects);
113 }
114
115::mlir::TypedValue<::mlir::IntegerType> llzk::verif::PreconditionOpInterface::getCondition() {
116 return getImpl()->implConditionOpInterface->getCondition(getImpl()->implConditionOpInterface, getOperation());
117 }
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable from
Definition LICENSE.txt:45
void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
Collects all of the operation's effects into effects.
::mlir::TypedValue<::mlir::IntegerType > getCondition()
Gets the SSA Value for the condition operand.
bool isPublic()
Returns true if this symbol has public visibility.
void setPublic()
Sets the visibility of this symbol to be public.
bool isPrivate()
Returns true if this symbol has private visibility.
::mlir::StringAttr getNameAttr()
Returns the name of this symbol.
void setPrivate()
Sets the visibility of this symbol to be private.
void setName(::mlir::StringAttr name)
Sets the name of this symbol.
bool isDeclaration()
Returns true if this operation is a declaration of a symbol (as opposed to a definition).
void setVisibility(mlir::SymbolTable::Visibility vis)
Sets the visibility of this symbol.
bool isNested()
Returns true if this symbol has nested visibility.
::std::optional<::mlir::SymbolTable::UseRange > getSymbolUses(::mlir::Operation *from)
Get all of the uses of the current symbol that are nested within the given operation 'from'.
void setNested()
Sets the visibility of this symbol to be nested.
::llvm::SmallVector<::llzk::verif::InvariantTargetOpInterface > getLoops()
Gets the ops that can be targeted by invariant ops.
::llvm::LogicalResult replaceAllSymbolUses(::mlir::StringAttr newSymbol, ::mlir::Operation *from)
Attempt to replace all uses of the current symbol with the provided symbol 'newSymbol' that are neste...
bool symbolKnownUseEmpty(::mlir::Operation *from)
Return if the current symbol is known to have no uses that are nested within the given operation 'fro...
bool canDiscardOnUseEmpty()
Returns true if this operation can be discarded if it has no remaining symbol uses.
mlir::SymbolTable::Visibility getVisibility()
Gets the visibility of this symbol.
bool isOptionalSymbol()
Returns true if this operation optionally defines a symbol based on the presence of the symbol name.
::mlir::FailureOr<::mlir::StringRef > getLabel()
Gets the label of the loop, if available.
::mlir::SmallVector<::mlir::Type > getArgumentTypes()
Gets the types of the values that the invariant binds inside its body.
::mlir::TypedValue<::mlir::IntegerType > getCondition()
Gets the SSA Value for the condition operand.
void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
Collects all of the operation's effects into effects.
::mlir::TypedValue<::mlir::IntegerType > getCondition()
Gets the SSA Value for the condition operand.
void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
Collects all of the operation's effects into effects.