aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorMatthias Gehre <matthias.gehre@xilinx.com>2022-09-12 14:27:04 +0100
committerMatthias Gehre <matthias.gehre@xilinx.com>2022-09-12 17:06:16 +0100
commitc1502425ba2d10d75c35e8c00a29aabd8c8e59ba (patch)
tree7a3bdfe40cb36ba2e595af45cd3fbddda74939c4 /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent210e6a993dd518703ebc6438539c000a012414f8 (diff)
downloadllvm-c1502425ba2d10d75c35e8c00a29aabd8c8e59ba.zip
llvm-c1502425ba2d10d75c35e8c00a29aabd8c8e59ba.tar.gz
llvm-c1502425ba2d10d75c35e8c00a29aabd8c8e59ba.tar.bz2
Move TargetTransformInfo::maxLegalDivRemBitWidth -> TargetLowering::maxSupportedDivRemBitWidth
Also remove new-pass-manager version of ExpandLargeDivRem because there is no way yet to access TargetLowering in the new pass manager. Differential Revision: https://reviews.llvm.org/D133691
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 0994936..8eaf1bb 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -724,6 +724,8 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm) : TM(tm) {
// with the Target-specific changes necessary.
MaxAtomicSizeInBitsSupported = 1024;
+ MaxDivRemBitWidthSupported = llvm::IntegerType::MAX_INT_BITS;
+
MinCmpXchgSizeInBits = 0;
SupportsUnalignedAtomics = false;