1 //===- Intrinsics.cpp - MLIR Operations for Declarative Builders ----------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "mlir/Dialect/StandardOps/EDSC/Intrinsics.h"
10 #include "mlir/IR/AffineExpr.h"
11 
12 using namespace mlir;
13 using namespace mlir::edsc;
14 
std_br(Block * block,ValueRange operands)15 BranchOp mlir::edsc::intrinsics::std_br(Block *block, ValueRange operands) {
16   return OperationBuilder<BranchOp>(block, operands);
17 }
18 
std_cond_br(Value cond,Block * trueBranch,ValueRange trueOperands,Block * falseBranch,ValueRange falseOperands)19 CondBranchOp mlir::edsc::intrinsics::std_cond_br(Value cond, Block *trueBranch,
20                                                  ValueRange trueOperands,
21                                                  Block *falseBranch,
22                                                  ValueRange falseOperands) {
23   return OperationBuilder<CondBranchOp>(cond, trueBranch, trueOperands,
24                                         falseBranch, falseOperands);
25 }
26