llvm-project/mlir/lib/IR/ValueRange.cpp
lipracer 10a4f03335 Split class ValueRange to a new file
When we apply parent patch : https://reviews.llvm.org/D129475
The prompt I get with the clang compiler is: ValueRange is imcomplete type,ValueRange is a forward declaration in the file TypeRange.h, and the file OperationSupport.h already includes the file TypeRange.h.The class TypeRange and the class ValueRange depend on each other.

Reviewed By: rriddle, Mogball

Differential Revision: https://reviews.llvm.org/D130332
2022-07-25 15:33:21 -06:00

47 lines
1.5 KiB
C++

//===- ValueRange.cpp - Indexed Value-Iterators Range Classes -------------===//
//
// 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 "mlir/IR/ValueRange.h"
#include "mlir/IR/TypeRange.h"
using namespace mlir;
//===----------------------------------------------------------------------===//
// TypeRangeRange
TypeRangeRange OperandRangeRange::getTypes() const {
return TypeRangeRange(*this);
}
TypeRangeRange OperandRangeRange::getType() const { return getTypes(); }
//===----------------------------------------------------------------------===//
// OperandRange
OperandRange::type_range OperandRange::getTypes() const {
return {begin(), end()};
}
OperandRange::type_range OperandRange::getType() const { return getTypes(); }
//===----------------------------------------------------------------------===//
// ResultRange
ResultRange::type_range ResultRange::getTypes() const {
return {begin(), end()};
}
ResultRange::type_range ResultRange::getType() const { return getTypes(); }
//===----------------------------------------------------------------------===//
// ValueRange
ValueRange::type_range ValueRange::getTypes() const { return {begin(), end()}; }
ValueRange::type_range ValueRange::getType() const { return getTypes(); }