← Back to events
ActiveAIRelease

trunk/144ddcdbb75247abac3c9fb01776dd4df1828267: Use C++20 <bit> instead of c10::llvm bit helpers in c10 (#187002)

What happened

Description drafted with an AI assistant, quoted below; I've reviewed the change. Replaces the c10::llvm bit helpers with their C++20 equivalents in c10 and ATen. CachingHostAllocator.h and CUDACachingAllocator.cpp stay on the wrapper per review, since the functions only accept unsigned types. The one added include is include-what-you-use, not collateral: DispatchKeySet.cpp uses llvm::maskTrailingZeros / findFirstSe…

Summary assembled by rule from the sources below

Why it's spreading

Sources