mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 17:26:06 +00:00
[flang][NFC] remove duplicate fir::toInt definition 4/6
Differential Revision: https://reviews.llvm.org/D143082
This commit is contained in:
parent
18ed49d255
commit
cdd5f34969
@ -35,13 +35,6 @@ inline llvm::StringRef toStringRef(const Fortran::parser::CharBlock &cb) {
|
||||
return {cb.begin(), cb.size()};
|
||||
}
|
||||
|
||||
namespace fir {
|
||||
/// Return the integer value of a arith::ConstantOp.
|
||||
inline std::int64_t toInt(mlir::arith::ConstantOp cop) {
|
||||
return cop.getValue().cast<mlir::IntegerAttr>().getValue().getSExtValue();
|
||||
}
|
||||
} // namespace fir
|
||||
|
||||
/// Template helper to remove Fortran::common::Indirection wrappers.
|
||||
template <typename A>
|
||||
const A &removeIndirection(const A &a) {
|
||||
|
@ -16,7 +16,6 @@
|
||||
#include "flang/Lower/IntrinsicCall.h"
|
||||
#include "flang/Common/static-multimap-view.h"
|
||||
#include "flang/Lower/Mangler.h"
|
||||
#include "flang/Lower/Support/Utils.h"
|
||||
#include "flang/Optimizer/Builder/BoxValue.h"
|
||||
#include "flang/Optimizer/Builder/Character.h"
|
||||
#include "flang/Optimizer/Builder/Complex.h"
|
||||
@ -36,6 +35,7 @@
|
||||
#include "flang/Optimizer/Builder/Todo.h"
|
||||
#include "flang/Optimizer/Dialect/FIROpsSupport.h"
|
||||
#include "flang/Optimizer/Support/FatalError.h"
|
||||
#include "flang/Optimizer/Support/Utils.h"
|
||||
#include "flang/Runtime/entry-names.h"
|
||||
#include "mlir/Dialect/Complex/IR/Complex.h"
|
||||
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user