[Mlir-commits] [mlir] 8f0c673 - [MLIR] fix arith dialect build failure
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Oct 6 16:40:38 PDT 2021
Author: Mogball
Date: 2021-10-06T23:39:10Z
New Revision: 8f0c673d20e73452e6aa41a81eb34815a22e6f1e
URL: https://github.com/llvm/llvm-project/commit/8f0c673d20e73452e6aa41a81eb34815a22e6f1e
DIFF: https://github.com/llvm/llvm-project/commit/8f0c673d20e73452e6aa41a81eb34815a22e6f1e.diff
LOG: [MLIR] fix arith dialect build failure
Missing function defs causes errors on some build configs.
Added:
Modified:
mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp b/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
index 8e2fd2f637c8b..cae88015eaae5 100644
--- a/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
+++ b/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
@@ -493,6 +493,55 @@ OpFoldResult arith::ExtSIOp::fold(ArrayRef<Attribute> operands) {
return {};
}
+// TODO temporary fixes until second patch is in
+OpFoldResult arith::TruncFOp::fold(ArrayRef<Attribute> operands) {
+ return {};
+}
+
+bool arith::TruncFOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
+ return true;
+}
+
+OpFoldResult arith::TruncIOp::fold(ArrayRef<Attribute> operands) {
+ return {};
+}
+
+bool arith::TruncIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
+ return true;
+}
+
+bool arith::ExtUIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
+ return true;
+}
+
+bool arith::ExtSIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
+ return true;
+}
+
+bool arith::ExtFOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
+ return true;
+}
+
+OpFoldResult arith::ConstantOp::fold(ArrayRef<Attribute> operands) {
+ return {};
+}
+
+bool arith::SIToFPOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
+ return true;
+}
+
+bool arith::UIToFPOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
+ return true;
+}
+
+bool arith::FPToSIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
+ return true;
+}
+
+bool arith::FPToUIOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
+ return true;
+}
+
//===----------------------------------------------------------------------===//
// IndexCastOp
//===----------------------------------------------------------------------===//
More information about the Mlir-commits
mailing list