reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

gen/lib/Target/Hexagon/HexagonGenDAGISel.inc
72622   return isPowerOf2_64(V) && Log2_64(V) < 32;
72631   return isPowerOf2_64(V) && Log2_64(V) >= 32;
72682   return isPowerOf2_64(NV) && Log2_64(NV) < 32;
72691   return isPowerOf2_64(NV) && Log2_64(NV) >= 32;
gen/lib/Target/Mips/MipsGenDAGISel.inc
30128     return isPowerOf2_64(Imm) && (Imm & 0xffffffff) == Imm;
30141     return isPowerOf2_64(Imm) && (Imm & 0xffffffff00000000) == Imm;
gen/lib/Target/X86/X86GenDAGISel.inc
254007   return !isUInt<32>(Imm) && !isInt<32>(Imm) && isPowerOf2_64(~Imm);
254147   return !isInt<32>(Imm) && isPowerOf2_64(Imm);
gen/lib/Target/X86/X86GenFastISel.inc
   21   return !isUInt<32>(Imm) && !isInt<32>(Imm) && isPowerOf2_64(~Imm);
   26   return !isInt<32>(Imm) && isPowerOf2_64(Imm);
gen/lib/Target/X86/X86GenGlobalISel.inc
  642   return !isInt<32>(Imm) && isPowerOf2_64(Imm);
  649   return !isUInt<32>(Imm) && !isInt<32>(Imm) && isPowerOf2_64(~Imm);
include/llvm/ADT/APInt.h
  465       return isPowerOf2_64(U.VAL);
include/llvm/ADT/DenseMap.h
  860   static_assert(isPowerOf2_64(InlineBuckets),
include/llvm/ExecutionEngine/JITLink/JITLink.h
  146     assert(isPowerOf2_64(Alignment) && "Alignment must be power of 2");
  160     assert(isPowerOf2_64(Alignment) && "Alignment must be power of 2");
include/llvm/MC/MCFragment.h
  391     assert(isPowerOf2_64(PolicyMask) &&
include/llvm/Support/Alignment.h
   79     assert(llvm::isPowerOf2_64(Value) && "Alignment is not a power of 2");
  135     assert((Value == 0 || llvm::isPowerOf2_64(Value)) &&
  378   assert(llvm::isPowerOf2_64(Divisor) &&
  385   assert(llvm::isPowerOf2_64(Divisor) &&
include/llvm/Support/MathExtras.h
  566   static_assert(kValue > 0 && llvm::isPowerOf2_64(kValue),
lib/Analysis/IVDescriptors.cpp
  151   if (!isPowerOf2_64(MaxBitWidth))
lib/Analysis/VFABIDemangling.cpp
  274     if (!isPowerOf2_64(Val))
lib/Analysis/VectorUtils.cpp
  479     if (!isPowerOf2_64((uint64_t)MinBW))
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
 6038   if (Neg.getOpcode() == ISD::AND && isPowerOf2_64(EltSize)) {
lib/CodeGen/SelectionDAG/FastISel.cpp
  635         cast<BinaryOperator>(I)->isExact() && isPowerOf2_64(Imm)) {
  642         isPowerOf2_64(Imm)) {
 1976   if (Opcode == ISD::MUL && isPowerOf2_64(Imm)) {
 1979   } else if (Opcode == ISD::UDIV && isPowerOf2_64(Imm)) {
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
 3916   if (!isPowerOf2_64(VSelVT.getSizeInBits()))
lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp
   76   if (!isPowerOf2_64((uint64_t)sys::Process::getPageSizeEstimate()))
lib/IR/DataLayout.cpp
  293       if (!isPowerOf2_64(PointerABIAlign))
  306         if (!isPowerOf2_64(PointerPrefAlign))
  355       if (ABIAlign != 0 && !isPowerOf2_64(ABIAlign))
  368       if (PrefAlign != 0 && !isPowerOf2_64(PrefAlign))
  390       if (Alignment != 0 && !llvm::isPowerOf2_64(Alignment))
  409       if (Alignment != 0 && !llvm::isPowerOf2_64(Alignment))
lib/IR/Verifier.cpp
 4209     Assert(isPowerOf2_64(Align),
 4389       return isPowerOf2_64(Alignment) && ElementSizeVal.ule(Alignment);
lib/MC/MCCodePadder.cpp
  216   assert(isPowerOf2_64(MaxWindowSize) &&
  219   assert(isPowerOf2_64(SectionAlignment) &&
lib/MC/MCParser/AsmParser.cpp
 3318     if (!isPowerOf2_64(Alignment))
 4915       if (!isPowerOf2_64(Pow2Alignment))
 5711   if (!isPowerOf2_64(IntValue))
lib/Target/AArch64/AArch64FastISel.cpp
  727       if (!isPowerOf2_64(NumBits))
  811       if (!isPowerOf2_64(NumBits))
lib/Target/AArch64/AArch64ISelLowering.cpp
 4741             isPowerOf2_64(LHS.getConstantOperandVal(1))) {
 4757             isPowerOf2_64(LHS.getConstantOperandVal(1))) {
 9141     if (!isPowerOf2_64(NumBits))
lib/Target/AArch64/AArch64InstrInfo.cpp
 4818     if (!isPowerOf2_64(Mask))
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
 4276     if (Align < 0 || !isPowerOf2_64(Align))
 5480   if (!isPowerOf2_64(GroupSize)) {
 5504   if (!isPowerOf2_64(GroupSize)) {
 5524   if (!isPowerOf2_64(GroupSize)) {
lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
 1245                isPowerOf2_64(XorMask + 1)) {
 1256           isPowerOf2_64(GroupSize) &&
lib/Target/ARM/ARMISelLowering.cpp
 4808       isPowerOf2_64(PosVal + 1)) {
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
  756     if (!isPowerOf2_64(ByteAlignment))
  770     if (!isPowerOf2_64(AccessAlignment))
lib/Target/Hexagon/HexagonHardwareLoops.cpp
  825   if (!isPowerOf2_64(std::abs(IVBump)))
lib/Target/Mips/MipsAsmPrinter.cpp
  548       if (!isPowerOf2_64(MO.getImm()))
lib/Target/PowerPC/PPCISelLowering.cpp
14441       if (Value > 0 && isPowerOf2_64(Value))
lib/Target/X86/X86ISelLowering.cpp
 9317     assert(isPowerOf2_64(Scale) && "Illegal variable permute shuffle scale");
10037   if (isPowerOf2_64(NonZeros) && Zeros != 0 && NonZeros > Zeros &&
10055   if (NonZeros == 0 || isPowerOf2_64(NonZeros)) {
20404           isPowerOf2_64(AndRHSVal)) {
38001   if (isPowerOf2_64(MulAmt & (MulAmt - 1))) {
38139   if (isPowerOf2_64(C->getZExtValue()))
38173       (isPowerOf2_64(MulAmt2) ||
38176     if (isPowerOf2_64(MulAmt2) &&
38185     if (isPowerOf2_64(MulAmt1))
38192     if (isPowerOf2_64(MulAmt2))
38211     if (isPowerOf2_64(AbsMulAmt - 1)) {
38222     } else if (isPowerOf2_64(AbsMulAmt + 1)) {
38232     } else if (SignMulAmt >= 0 && isPowerOf2_64(AbsMulAmt - 2)) {
38239     } else if (SignMulAmt >= 0 && isPowerOf2_64(AbsMulAmt + 2)) {
lib/Target/X86/X86SelectionDAGInfo.cpp
  219   assert(isPowerOf2_64(Align) && "Align is a power of 2");
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  741   if (isPowerOf2_64(TypeSize) &&
lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
  115     if (isPowerOf2_64(DiffUnitsAbs))
lib/Transforms/Scalar/DeadStoreElimination.cpp
  918   if (!(isPowerOf2_64(LaterOffset) && EarlierWriteAlign <= LaterOffset) &&
lib/Transforms/Vectorize/SLPVectorizer.cpp
 5168   if (!isPowerOf2_64(MaxBitWidth))
tools/clang/include/clang/Basic/TargetInfo.h
  634             llvm::isPowerOf2_64(AtomicSizeInBits / getCharWidth()));
tools/clang/lib/ARCMigrate/ObjCMT.cpp
  820       if (!llvm::isPowerOf2_64(EnumVal))
tools/clang/lib/AST/ASTContext.cpp
 2194       if (!llvm::isPowerOf2_64(Width))
tools/clang/lib/AST/RecordLayoutBuilder.cpp
 1800         if (!llvm::isPowerOf2_64(TypeSize.getQuantity())) {
 1826             llvm::isPowerOf2_64(TypeSize.getQuantity()))
 1991     assert(llvm::isPowerOf2_64(NewAlignment.getQuantity()) &&
 1997     assert(llvm::isPowerOf2_64(UnpackedNewAlignment.getQuantity()) &&
tools/clang/lib/AST/Type.cpp
  150   if (llvm::isPowerOf2_64(ElementSize)) {
tools/clang/lib/CodeGen/CGStmt.cpp
 1829       if (Size <= 64 && llvm::isPowerOf2_64(Size)) {
tools/clang/lib/CodeGen/TargetInfo.cpp
 3993     if (Width > 64 || !llvm::isPowerOf2_64(Width))
 4115     IsIndirect = Width > 64 || !llvm::isPowerOf2_64(Width);
tools/clang/lib/Sema/SemaDeclAttr.cpp
 3719     if (!llvm::isPowerOf2_64(AlignVal)) {
tools/clang/lib/StaticAnalyzer/Checkers/PaddingChecker.cpp
   92     assert(llvm::isPowerOf2_64(RL.getAlignment().getQuantity()));
  253       assert(llvm::isPowerOf2_64(RetVal.Align.getQuantity()));
tools/lld/COFF/Driver.cpp
 1307     if (!isPowerOf2_64(config->fileAlign))
 1461     if (!isPowerOf2_64(config->align))
tools/lld/ELF/Driver.cpp
 1273   if (!isPowerOf2_64(val))
 1288   if (!isPowerOf2_64(val))
tools/lld/ELF/InputSection.cpp
   77   if (!isPowerOf2_64(v))
tools/lld/ELF/ScriptParser.cpp
  771     if (!isPowerOf2_64(alignment)) {
tools/lld/lib/Driver/DarwinLdDriver.cpp
  534     if (!llvm::isPowerOf2_64(alignValue)) {
tools/llvm-jitlink/llvm-jitlink.cpp
  164   static_assert(isPowerOf2_64(DumpWidth), "DumpWidth must be a power of two");
  337     if (!isPowerOf2_64(PageSize)) {
unittests/Support/MathExtrasTest.cpp
  187   EXPECT_FALSE(isPowerOf2_64(0));
  188   EXPECT_TRUE(isPowerOf2_64(1LL << 46));
  189   EXPECT_TRUE(isPowerOf2_64(1LL << 12));
  190   EXPECT_FALSE(isPowerOf2_64((1LL << 53) + 3));
  191   EXPECT_FALSE(isPowerOf2_64(0xABCDEF0ABCDEF0LL));