LLZK
0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
BuilderHelper.h
Go to the documentation of this file.
1
//===-- BuilderHelper.h -----------------------------------------*- C++ -*-===//
2
//
3
// Part of the LLZK Project, under the Apache License v2.0.
4
// See LICENSE.txt for license information.
5
// Copyright 2025 Veridise Inc.
6
// SPDX-License-Identifier: Apache-2.0
7
//
8
//===----------------------------------------------------------------------===//
9
10
#pragma once
11
12
#include <mlir/IR/Builders.h>
13
#include <mlir/IR/Location.h>
14
15
namespace
llzk
{
16
17
template
<
typename
OpClass,
typename
... Args>
18
inline
OpClass
delegate_to_build
(mlir::Location location, Args &&...args) {
19
mlir::OpBuilder builder(location->getContext());
20
return
builder.create<OpClass>(location, std::forward<Args>(args)...);
21
}
22
23
}
// namespace llzk
llzk
Definition
CallGraph.cpp:29
llzk::delegate_to_build
OpClass delegate_to_build(mlir::Location location, Args &&...args)
Definition
BuilderHelper.h:18
include
llzk
Util
BuilderHelper.h
Generated by
1.13.2
Copyright 2025 Veridise Inc. under the Apache License v2.0.