mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 05:56:05 +00:00

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
47 lines
1.5 KiB
C++
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(); }
|