We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbcc75b commit 00aabfaCopy full SHA for 00aabfa
IGC/WrapperLLVM/include/llvmWrapper/ADT/APInt.h
@@ -40,7 +40,10 @@ inline SignedDivisionByConstantInfo getAPIntMagic(const llvm::APInt &value) {
40
}
41
42
inline UnsignedDivisionByConstantInfo getAPIntMagicUnsigned(const llvm::APInt &value, const unsigned LeadingZeros = 0) {
43
-#if LLVM_VERSION_MAJOR >= 14
+#if LLVM_VERSION_MAJOR >= 16
44
+ // Basing on this: [https://reviews.llvm.org/D140924]
45
+ return UnsignedDivisionByConstantInfo::get(value, LeadingZeros, false);
46
+#elif LLVM_VERSION_MAJOR >= 14
47
return UnsignedDivisionByConstantInfo::get(value, LeadingZeros);
48
#else
49
return value.magicu(LeadingZeros);
0 commit comments