Home
last modified time | relevance | path

Searched refs:APAlign (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLoads.cpp32 const APInt APAlign(Offset.getBitWidth(), Alignment.value()); in isAligned() local
33 assert(APAlign.isPowerOf2() && "must be a power of 2!"); in isAligned()
34 return BA >= Alignment && !(Offset & (APAlign - 1)); in isAligned()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp6307 Optional<APInt> APAlign = getAPInt(A, *this, *Align); in updateImpl() local
6308 if (!APAlign) { in updateImpl()
6317 if (APAlign->ugt(llvm::Value::MaximumAlignment) || in updateImpl()
6318 !APAlign->isPowerOf2()) { in updateImpl()
6319 LLVM_DEBUG(dbgs() << "[H2S] Invalid allocation alignment: " << APAlign in updateImpl()