Files
clang-p2996/flang/lib/Optimizer/Dialect/Inliner.cpp
Valentin Clement ccaaeca910 [flang][NFC] Move current inliner files in Dialect directory
This patch just move the files from the Transforms directory to
the Dialect directory.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D117661
2022-01-20 13:34:44 +01:00

26 lines
963 B
C++

//===-- Inliner.cpp -------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "flang/Optimizer/Dialect/FIRDialect.h"
#include "llvm/Support/CommandLine.h"
static llvm::cl::opt<bool>
aggressivelyInline("inline-all",
llvm::cl::desc("aggressively inline everything"),
llvm::cl::init(false));
/// Should we inline the callable `op` into region `reg`?
bool fir::canLegallyInline(mlir::Operation *, mlir::Region *, bool,
mlir::BlockAndValueMapping &) {
return aggressivelyInline;
}
bool fir::canLegallyInline(mlir::Operation *, mlir::Operation *, bool) {
return aggressivelyInline;
}