|
LLZK 3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
|
Shared signature and template-instantiation checks for a resolved call-like target. More...
#include <KnownTargetVerifier.h>
Public Member Functions | |
| KnownTargetVerifier (OriginOp *op, const SymbolLookupResult< TargetOp > &target) | |
| TargetOp | getTarget () const |
| Return the resolved target for operation-specific checks. | |
| mlir::FunctionType | getTargetType () const |
| Return the target signature used for input and output verification. | |
| template<typename T> | |
| mlir::LogicalResult | verifyTypesMatch (mlir::ValueTypeRange< T > originTypes, mlir::ArrayRef< mlir::Type > tgtTypes, const char *aspect) |
| Check arity and namespace-aware type compatibility, emitting call-site diagnostics. | |
| mlir::LogicalResult | verifyTemplateInstantiation (polymorphic::TemplateOp tgtOpParent) |
| Verify instantiations against the enclosing template. | |
Shared signature and template-instantiation checks for a resolved call-like target.
OriginOp must provide the LLZKCallLikeOpInterface methods, template parameters, and a callee attribute. TargetOp must provide a function type and symbol name. Operation-specific eligibility checks and error aggregation remain with the caller.
Definition at line 27 of file KnownTargetVerifier.h.
|
inline |
Definition at line 29 of file KnownTargetVerifier.h.
|
inline |
Return the resolved target for operation-specific checks.
Definition at line 34 of file KnownTargetVerifier.h.
|
inline |
Return the target signature used for input and output verification.
Definition at line 37 of file KnownTargetVerifier.h.
|
inline |
Verify instantiations against the enclosing template.
Explicit values are optional only when every template parameter appears in the target signature; provided values must agree with both declared restrictions and signature inference.
Definition at line 66 of file KnownTargetVerifier.h.
|
inline |
Check arity and namespace-aware type compatibility, emitting call-site diagnostics.
Definition at line 41 of file KnownTargetVerifier.h.