Files
llvm-tms34010/mlir/lib/Interfaces/InferIntDivisibilityOpInterface.cpp
Alan Li 862ba4798e Reland "[MLIR] Add IntegerDivisibilityAnalysis and InferIntDivisibilityOpInterface" (#198110)
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.
2026-05-18 16:01:06 -04:00

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"