Relands #197728, which was reverted in #198048 because it broke shared-library builds. ## Summary of build fix: `IntegerDivisibilityAnalysis.cpp` calls `mlir::getConstantIntValue(OpFoldResult)`, which is defined in `mlir/lib/Dialect/Utils/StaticValueUtils.cpp`. Without this link dependency, shared-library builds of `libMLIRAnalysis.so` fail with undefined references. This was the root cause of https://github.com/llvm/llvm-project/pull/198048.
12 lines
499 B
C++
12 lines
499 B
C++
//===- InferIntDivisibilityOpInterface.cpp - Integer divisibility inference ==//
|
|
//
|
|
// 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/Interfaces/InferIntDivisibilityOpInterface.h"
|
|
|
|
#include "mlir/Interfaces/InferIntDivisibilityOpInterface.cpp.inc"
|