forked from OSchip/llvm-project
[mlir] StandardToLLVM conversion: remove dead code
This code is unused since 04ed07bc17
,
but it was not removed in that commit.
This commit is contained in:
parent
2e9d223dba
commit
802bb8b5c2
|
@ -1087,6 +1087,7 @@ void nDVectorIterate(const NDVectorTypeInfo &info, OpBuilder &builder,
|
|||
fun(position);
|
||||
}
|
||||
}
|
||||
////////////// End Support for Lowering operations on n-D vectors //////////////
|
||||
|
||||
/// Replaces the given operaiton "op" with a new operation of type "targetOp"
|
||||
/// and given operands.
|
||||
|
@ -1128,29 +1129,6 @@ LogicalResult LLVM::detail::oneToOneRewrite(
|
|||
return success();
|
||||
}
|
||||
|
||||
////////////// End Support for Lowering operations on n-D vectors //////////////
|
||||
namespace {
|
||||
template <typename SourceOp, unsigned OpCount>
|
||||
struct OpCountValidator {
|
||||
static_assert(
|
||||
std::is_base_of<
|
||||
typename OpTrait::NOperands<OpCount>::template Impl<SourceOp>,
|
||||
SourceOp>::value,
|
||||
"wrong operand count");
|
||||
};
|
||||
|
||||
template <typename SourceOp>
|
||||
struct OpCountValidator<SourceOp, 1> {
|
||||
static_assert(std::is_base_of<OpTrait::OneOperand<SourceOp>, SourceOp>::value,
|
||||
"expected a single operand");
|
||||
};
|
||||
|
||||
template <typename SourceOp, unsigned OpCount>
|
||||
void ValidateOpCount() {
|
||||
OpCountValidator<SourceOp, OpCount>();
|
||||
}
|
||||
} // namespace
|
||||
|
||||
static LogicalResult handleMultidimensionalVectors(
|
||||
Operation *op, ValueRange operands, LLVMTypeConverter &typeConverter,
|
||||
std::function<Value(LLVM::LLVMType, ValueRange)> createOperand,
|
||||
|
|
Loading…
Reference in New Issue